Professional Documents
Culture Documents
DBMS – E1UA320B
Rohit Verma – 22SCSE1560001
Submitted To Submitted By
Mr. Shobhit Kumar Rohit Verma
Experiment - 4
Implement various types of Integrity constraints on databases.
Integrity constraints are a set of rules. It is used to maintain the quality of information.
2. Entity Integrity Constraints – The entity integrity constraint states that primary
key value can't be null.
2. Group By Function
Experiment - 6
Perform various type of set operation in MySQL.
Queries –
use univarsal;
create table table1(
id int primary key,
name varchar(100),
age int,
add_no varchar(20)
);
1. Union
2. Intersect
3. Except
Experiment 7
Consider the following schema:
Suppliers(sid,integer, sname: string, address: string)
Parts(pid, integer, pname: string, color: string)
Catalog(sid,integer, pid: integer, cost: real)
1. Find the names of suppliers who supply some red part.
2. Find the sids of suppliers who supply some red or green part.
3. Find the sids of suppliers who supply some red part
4. Find the sids of suppliers who supply some red part and some green part.
5. Find the sids of suppliers who supply every part.
2. Find the sids of suppliers who supply some red or green part.
3. Find the sids of suppliers who supply some red part
4. Find the sids of suppliers who supply some red part and some green part.
As there is not even a single supplier who supply every color part.