0% found this document useful (0 votes)
43 views

Assignment 3

Uploaded by

barinderjitsaini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Assignment 3

Uploaded by

barinderjitsaini
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL Assignment

Contact us: [email protected] / © Copyright Intellipaat / All rights reserved


SQL Certification Training

Problem Statement:
You have successfully cleared the second semester. In your third semester you
will work with joins and update statements.

Tasks To Be Performed:
1. Create an ‘Orders’ table which comprises of these columns: ‘order_id’,
‘order_date’, ‘amount’, ‘customer_id’.

2. Insert 5 new records.


3. Make an inner join on ‘Customer’ and ‘Orders’ tables on the ‘customer_id’
column.
4. Make left and right joins on ‘Customer’ and ‘Orders’ tables on the
‘customer_id’ column.
5. Make a full outer join on ‘Customer’ and ‘Orders’ table on the ‘customer_id’
column.
6. Update the ‘Orders’ table and set the amount to be 100 where
‘customer_id’ is 3.

Contact us: [email protected] / © Copyright Intellipaat / All rights reserved

You might also like