Click here to Skip to main content
14,635,966 members
Rate this:
Please Sign up or sign in to vote.
See more:
Customer table as follows


Custid Firstname Lastname email address city

1 Ram Kumar ramkumar@gmail.com VernonHwy Chennai
2 Rajesh Kannan rajesh@gmail.com Hancock Chennai
3 Thomas Jaffer thomas@gmail.com Constitution Chennai
4 Paul Adams paul@gmail.com James Chennai
5 James Maddison maddison@gmail.com Hancock Chennai


Order table as follows

Orderid Orderdate Amount Customerid

1 07/04/2014 234 1
2 03/14/2015 79 3
3 05/23/2016 124 2
4 09/03/2017 66 3


From using above customer and order table i want to write the query for INNER JOIN and FULL JOIN and Get the output.


for that how can i write the query.

What I have tried:

Customer table as follows


Custid Firstname Lastname email address city

1 Ram Kumar ramkumar@gmail.com VernonHwy Chennai
2 Rajesh Kannan rajesh@gmail.com Hancock Chennai
3 Thomas Jaffer thomas@gmail.com Constitution Chennai
4 Paul Adams paul@gmail.com James Chennai
5 James Maddison maddison@gmail.com Hancock Chennai


Order table as follows

Orderid Orderdate Amount Customerid

1 07/04/2014 234 1
2 03/14/2015 79 3
3 05/23/2016 124 2
4 09/03/2017 66 3

From using above customer and order table i want to write the query for INNER JOIN and FULL JOIN and Get the output.


for that how can i write the query.
Posted
Updated 2-Mar-17 5:32am

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

See SQL Joins[^].
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100