I had written a sql query long time ago and when I was revisiting that query, I got confused in the where condition of the query. Here is the brief intro on what the sql should do: The sql tries to look for all the orders that were closed yesterday or all the orders that were in open status and has been open for more than 10 days. I had written a sql query long time ago and whe