Hello, how can I filter results with a query for every day with a specific time , for example:
Schedule | Results
08:00:00 am - 13:00:00 pm | cod_prod = 2142567 , dateDatabase = '2022-08-06 09:39:40'
cod_prod = 2142567 , dateDatabase = '2022-08-06 11:58:10'
cod_prod = 0978672 , dateDatabase = '2022-08-06 12:04:23'
I have this code:
select cod_prod, dateDatabase from table1 where time_format(dateDatabase,'%r') between '01:00:00' and '02:52:55' ;
Because I am going to put a the query in a graphic in ignition and then show the information for a specific schedule