DBMS Practice Problem SET-1
DBMS Practice Problem SET-1
2. Suppose you want to build a video site similar to YouTube. Consider each of the points listed
in Section 1.2, as disadvantages of keeping data in a file-processing system. Discuss the
relevance of each of these points to the storage of actual video data, and to metadata about the
video, such as title, the user who uploaded it, tags, and which users viewed it.
3. List four significant differences between a file-processing system and a DBMS.
4. Explain the concept of physical data independence, and its importance in database systems.
5. Explain the difference between two-tier and three-tier architectures. Which is better suited for
Web applications? Why?
On the basis of given database tables shown above, solve the following
query-
Query 0. Retrieve the birth date and address of the employee(s) whose name is ‘John B. Smith’.
FROM EMPLOYEE
Query 1. Retrieve the name and address of all employees who work for the ‘Research’ department.
Query 2. For every project located in ‘Stafford’, list the project number, the controlling department
number, and the department manager’s last name, address, and birth date.
Query 3. For each employee, retrieve the employee’s first and last name and the first and last name
of his or her immediate supervisor.
WHERE E.Super_ssn=S.Ssn;
SELECT Ssn
FROM EMPLOYEE;
Queries 5 -Select all combinations of EMPLOYEE Ssn and DEPARTMENT Dname in the database.
SELECT *
FROM EMPLOYEE
WHERE Dno=5;
Output tables:
Query 7: Retrieve the salary of every employee.
FROM EMPLOYEE;
FROM EMPLOYEE;
WHERE Lname=‘Brown’;
WHERE Dno=5;
Query 11: Change the location and controlling department number of project number 10 to ‘Bellaire’
and 5, respectively.
UPDATE PROJECT
WHERE Pnumber=10;