Combine tables

moustafa

Registered User.
Local time
Today, 07:56
Joined
Aug 27, 2014
Messages
30
Good Morning every one;
i have two tables as the following :
table 1 fields : customer_name, type , qty , price , total , delivery_no , delivery_date , grade

table 2 field : customer_name, type , qty , price , total , delivery_no , delivery_date , grade

** i need to make query that get the following data from both tables **
Customer _ name , qty , total , type , grade , delivery_date (by month ) .

** :confused::confused: please some help ....;);)
 
Last edited by a moderator:
Why is that you have two tables with similar structure ?? Did you try using UNION Query?
 
dear pr2 ;
thanks for your respond ;
the two tables has different data
i need to union them
but i dont know the sql statments;
 
Did you read through the link I provided? The code should be something like.
Code:
SELECT table1.fieldName1, table1.fieldName2, table1.fieldName3 FROM table1
UNION
SELECT table2.fieldName1, table2.fieldName2, table2.fieldName3 FROM table2;
 

Users who are viewing this thread

Back
Top Bottom