I have a SQL select query which has to give back the following:
Select all records from one unit out of 21 that have an enquiry type of Enquiry or Provisional and a timestamp that is not greater than today.
I can do it in two SELECT statements like this :
$query = "SELECT FROM enquiry WHERE chasedate!>'$today' AND orighotelid='$ccslocation' AND enquiry_type='Enquiry'";
AND
$query2 = "SELECT FROM enquiry WHERE chasedate!>'$today' AND orighotelid='$ccslocation' AND enquiry_type='Provisional'";
But this is too messy and I would like only one statement.
Any takers ?