How to get the columns from multiple tables into a single qu
I m doing a online shopping website and in dat I want a page dat fetches the order history of a customer but problem is the order table do not contain customer id and i want the customer id should be selected from customers table should I use nested query...plz any suggestion?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Mar 20, 2015, 8:42 PM EDT
for this you can use this method
select Table1.Col,Table2.Col, Table2.Col from Table1 cross join Table2
if i am wrong then Please you can clarify what type of O/P you require......
Harpreet SinghRank #312 · 8.1K reputationPosted Mar 20, 2015, 11:33 PM EDT
http://www.c-sharpcorner.com/UploadFile/219d4d/joins-in-sql-server/