I have to query the table to search for given conditions :
order_no specified in the range must exist.
Example: I am getting a request for a range of order_no: 003 - 007. So, I want to check whether all the order_no mentioned in range exist or not.If not exist return false.
The order_status of ALL order_no must be 1. If not exist return false.
Order_string Order_no Order_status ABE 1 1 ABE 2 1 ABE 3 0 PSB 4 0 PSB 5 1 PSB 6 0 REL 7 0 REL 8 1 REL 9 1 REL 10 1
I was trying EXIST and BETWEEN but unable to query the DB.