flexible-search

Flexible Search Query UNION

别说谁变了你拦得住时间么 提交于 2020-01-07 07:59:25
问题 I would like to add a UNION to this query , Where exactly Should I put any UNION (doesn't matter the code of the UNION , I just want to know where can I put it) in the following Flexible Search Query (I'm not familiar with the Syntax) SELECT DISTINCT {o:pk} FROM ( {{ SELECT MAX({h.startTime}) AS startTime FROM {CronJobHistory AS h JOIN CronJobResult AS r ON {h.result} = {r.pk} } WHERE {h.cronJobCode} = 'ordersCronJob' AND {r.code} = 'SUCCESS' }} ) LAST, ( {{ SELECT MAX({h.startTime}) AS

Flexible Search Query UNION

有些话、适合烂在心里 提交于 2020-01-07 07:59:13
问题 I would like to add a UNION to this query , Where exactly Should I put any UNION (doesn't matter the code of the UNION , I just want to know where can I put it) in the following Flexible Search Query (I'm not familiar with the Syntax) SELECT DISTINCT {o:pk} FROM ( {{ SELECT MAX({h.startTime}) AS startTime FROM {CronJobHistory AS h JOIN CronJobResult AS r ON {h.result} = {r.pk} } WHERE {h.cronJobCode} = 'ordersCronJob' AND {r.code} = 'SUCCESS' }} ) LAST, ( {{ SELECT MAX({h.startTime}) AS