You are on page 1of 2

Index

Sr no Practical Number Page no Signature


1 Practical 1 3-6
2 Practical 2 7 - 10
3 Practical 3 11 - 14
4 Practical 4 15 - 18
5 Practical 5 19 - 22
6 Practical 6 23 - 26
7 Practical 7 27 - 32
8 Practical 8 33 - 36
9 Practical 9 37 - 39
10 Practical 10 40 - 42
11 Practical 11 43 - 45
12 Practical 12 46 - 47
13 Practical 13 48 - 51
14 Practical 14 52
15 Practical 15 53 - 54

1|Page
Practical Number 1

Question:
Consider the following tables Stationery and Consumer. Write the outputs for SQL statements (i) and (ii) and SQL statements
for (iii) to (vii).

Table: Stationery
Structure:
Field Name Data Type Size Constraint
S_id Char 10 Primary Key
Stationeryname Char 20
Company Char 10
Price Integer Not null
Data:
S_id Stationeryname Company Price
DP01 Dot pen ABC 10
PL02 Pencil XYZ 6
ER05 Eraser XYZ 7
PL01 Pencil CAM 5
GP02 Gel pen ABC 15
Table: Consumer
Structure:
Field Name Data Type Size Constraint
C_id Integer Primary Key
Consumername Char 20
Address Char 20
S_id Char 10 Foreign key referencing table
Stationery column S_id
Data:
C_id Consumername Address S_id
01 Good learner Delhi PL01
06 Write well Mumbai GP02
12 Topper Delhi DP01

2|Page

You might also like