0
Good evening friends,
Can anyone tell me why the query below returns OK?
SELECT Count(*) as Dias_uteis FROM Owner.dias_uteis d WHERE d.data_util BETWEEN (select ts.creatión from Owner.tabela ts Where ts.chamado in('1455678','1459783') group by ts.chamado) AND now()
I need to count to how many days a call was opened if I step only one condition the counter works. However when I search more than one called mysql returns only OK and nothing to view.
Note that your subselect can return multiple dates and not just one.
– anonimo
This sql runs !? Returns "ok" in a "Count" !?
– Motta