Skip to content
Advertisement

count(*) doesn’t return 0

i have a sql problem ,please help me this is my query

attr_id is list value which contains 9158075158713931109(non-critical) and 9158075157713931109(critical)

I even tried for category_value .object_id in (select jobs.job_name from qrtz_triggers jobs where jobs.trigger_type =’SIMPLE’) but getting error command not properly ended

Advertisement

Answer

I think you actually want left joins, starting from the list_values table and then brining params and qrtz_triggers:

The conditions were a bit messy in the originaly query so I tried to re-arrange that – you might need to review that. I also used short and representative table aliases.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement