I have three tables Orders table and customers table and orderstatus table, both order and customer table have customerid as common field,and order and orderstatus have order_status_id as common field
customer table have firstname, lastname, phone and email address fields.
Now if I have to search/select the orders according to customer firstname and/or lastname and/or phone and/or email and/or orderid, then what should be a mysql format of join query so that I can combine all the three tables to get the results from orders table along with orderstatus from orderstatus table?