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

SQL Module 3 PDF

The document outlines tasks for a 3rd semester database module assignment, including: creating an Orders table with order details; performing inner and left/right joins between Customer and Orders tables on the customer_id column; and updating the Orders table to set the amount to 100 where the customer_id is 3.

Uploaded by

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

SQL Module 3 PDF

The document outlines tasks for a 3rd semester database module assignment, including: creating an Orders table with order details; performing inner and left/right joins between Customer and Orders tables on the customer_id column; and updating the Orders table to set the amount to 100 where the customer_id is 3.

Uploaded by

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

Module-3 Assignment

Problem Statement:
You have successfully cleared the 2nd semester. In your 3rd semester you will work with joins and update
statement

Tasks to be done:

1. Create an ‘Orders’ table which comprises of these columns – ‘order_id’, ‘order_date’, ‘amount’,
‘customer_id’

2. Make an inner join on ‘Customer’ & ‘Order’ tables on the ‘customer_id’ column

3. Make left and right joins on ‘Customer’ & ‘Order’ tables on the ‘customer_id’ column

4. Update the ‘Orders’ table, set the amount to be 100 where ‘customer_id’ is 3

You might also like