You are on page 1of 4

Course Code: IT257 Roll_Number:20IT011

Course Name: DBMS Date:28/03/2022


Lab Teacher: Nirav Bhatt Class-I / II : I
------------------------------------------------------------------------------------------------------------------------
Practical-8
P1 Aim:
To apply the concept of integrity/data constraints while creating or altering table.

Questions:

Create Table Salespeople where Snum number(4) P.K, Sname varchar2(20)NOT NULL, City
varchar2(15), Comm number(5,2).
Output(Screenshot):

P2 Problem:

Create Table customer where Cnum number (4) P.K, Cname varchar2(20)NOT NULL, City
varchar2(20), Rating number(3) DEFAULT 10, Snum number(4) F.K.(where snum refer
salespeople table).

Output (Screenshot):

P3 Problem:
Create table Order where Order_no number(4) P.K, Amount number(5), Odate
varchar2(10), Cnum number(4) F.K, (where cnum refer customer table). Snum
number(4) F.K (where snum refer salespeople table).

1
Smt. KundanbenDinsha Patel Department of Information Technology
ACADEMIC YEAR: 2020-21
Course Code: IT257 Roll_Number:20IT011
Course Name: DBMS Date:28/03/2022
Lab Teacher: Nirav Bhatt Class-I / II : I
------------------------------------------------------------------------------------------------------------------------
Output(Screenshot):

P4 Problem:
Table: Sales_order

Errors:

P5 Problem:
Table: Sales_order

2
Smt. KundanbenDinsha Patel Department of Information Technology
ACADEMIC YEAR: 2020-21
Course Code: IT257 Roll_Number:20IT011
Course Name: DBMS Date:28/03/2022
Lab Teacher: Nirav Bhatt Class-I / II : I
------------------------------------------------------------------------------------------------------------------------

Output (Screenshot):

P6 Problem:
Table: Sales_order

3
Smt. KundanbenDinsha Patel Department of Information Technology
ACADEMIC YEAR: 2020-21
Course Code: IT257 Roll_Number:20IT011
Course Name: DBMS Date:28/03/2022
Lab Teacher: Nirav Bhatt Class-I / II : I
------------------------------------------------------------------------------------------------------------------------

Output (Screenshot):

4
Smt. KundanbenDinsha Patel Department of Information Technology
ACADEMIC YEAR: 2020-21

You might also like