I'm doing a sql query to extract orders from date to date. I think I need to use LIKE because dates are strings and has days, but I have to consider only year and month, for example: order date -> 2019-01-01 regex -> LIKE '%2019-01-%' (all orders in done in january) and then I have to to the same thing for another date (let's say '%2019-03-%'). After that I use the two dates to extract time with BETWEEN. The problem is that I don't know how to put these two things together.
datedata type, and life will become easier. - jarlh