Database System Final 2021 Paper
Database System Final 2021 Paper
Q1. is the given table in first normal form? In case of Yes/No justify your answer.
And normalize the given table up to 3 rd normal form.
Q4. Draw tables for the give ER diagram. And discuss the weak and strong entity from
the given diagram.
Q5. Separate DDL and DML Sql command s from the given queries.
I. CREATE TABLE EMPLOYEE(Name VARCHAR2(20), Email VARCHAR2(100),
DOB DATE);
II. DROP TABLE EMPLOYEE;
III. ALTER TABLE STU_DETAILS ADD (ADDRESS VARCHAR2(20));
IV. INSERT INTO javatpoint (Author, Subject) VALUES ("Sonoo", "DBMS");
V. UPDATE students SET User_Name = 'Sonoo' WHERE Student_Id = '3'
VI. DELETE FROM Studen_table WHER city= “Peshawar” ;
Q6. Write the relational algebra expression for the following queries
I. Find all tuples from player relation for which country is Pakistan
II. Select all the tuples for which runs are greater than or equal to 15000.
III. List all the countries in Player relation.