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

SQL Lab Assignment On Normalization

This document contains instructions for an assignment involving creating and populating database tables in SQL. It defines two tables - a client master table with client details and a product master table with product inventory information. It provides sample data to insert into each table. It then lists 10 queries to run on the tables to retrieve requested information, such as lists of client names, products, clients in certain cities, products within a price range, and clients not in a particular state.

Uploaded by

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

SQL Lab Assignment On Normalization

This document contains instructions for an assignment involving creating and populating database tables in SQL. It defines two tables - a client master table with client details and a product master table with product inventory information. It provides sample data to insert into each table. It then lists 10 queries to run on the tables to retrieve requested information, such as lists of client names, products, clients in certain cities, products within a price range, and clients not in a particular state.

Uploaded by

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

(Deemed to be University u/s 3 of UGC Act 1956)

OFF CAMPUS NOIDA


A-7, Sector 1, Noida-201301, Uttar Pradesh, India
DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING

CLASS : MCA SEMESTER : I DTAE : 25/05/2021


SUBJECT NAME & CODE : Database Design and Concepts Lab (CA-408) SESSION : MO-20/SP-21
DATE OF SUBMISSION : 31/05/21

ASSIGNMENT-I

Q1.
Create the following tables:
i. client master
columnname datatype size
client_no varchar2 6
name varchar2 20
address1 varchar2 30
address2 varchar2 30
city varchar2 15
state varchar2 15
pincode number 6 
bal_due number 10,2

ii. Product_master
Columnname datatype size
Product_no varchar2
Description varchar2
Profit_percent number
Unit_measure varchar2
Qty_on_hand number
Reoder_lvl number
Sell_price number
Cost_price number

Q2-
Insert the following data into their respective tables:
Clientno Name city pincode state bal.due
0001 Ivan Bombay 400054 Maharashtra 15000
0002 Vandana Madras 780001 Tamilnadu 0
0003 Pramada Bombay 400057 Maharashtra 5000
0004 Basu Bombay 400056 Maharashtra 0
0005 Ravi Delhi 100001 Delhi 2000
0006 Rukmini Bombay 400050 Maharashtra 0

Data for Product Master:


Product No. Desciption Profit_ % Unit Qty Record Sell Cost
Measure on hand lvl Price Price
P00001 1.44floppies 5 piece 100 20 525 500
P03453 Monitors 6 piece 10 3 12000 11200
P06734 Mouse 5 piece 20 5 1050 500
P07865 1.22 floppies 5 piece 100 20 525 500
P07868 Keyboards 2 piece 10 3 3150 3050
P07885 CD Drive 2.5 piece 10 3 5250 5100
P07965 540 HDD 4 piece 10 3 8400 8000
P07975 1.44 Drive 5 piece 10 3 1050 1000
P08865 1.22 Drive 5 piece 2 3 1050 1000

Q3:- On the basis of above two tables answer the following Queries :
1. Find out the names of all the clients.
2. Retrieve the list of names and cities of all the clients.

3. List the various products available from the product_master table.


4. List all the clients who are located in Bombay.

5. Display the information for client no 0001 and 0002.

6. Find the products with description as ‘1.44 drive’ and ‘1.22 Drive’.
7. Find all the products whose sell price is greater then 5000.

8. Find the list of all clients who stay in in city ‘Bombay’ or city ‘Delhi’ or ‘Madras’.

9. Find the product whose selling price is greater than 2000 and less than or equal to 5000.
10. List the name, city and state of clients not in the state of ‘Maharashtra’

*********************************END OF ASSIGNMENT-I **************************************

You might also like