Practice Questions
Practice Questions
Practice Questions
2. Write the name any five DBMS that are based on Network Data Model.
3. Write the name any Ten DBMS that are based on Relational Data Model. Also write the name
of the companies who are the owner that DBMS.
4. Write the name any five DBMS that are based on Object-Oriented Data Model.
5. Write the name any five DBMS that are based on Object-Relational Data Model.
6. What is Referential Integrity Constraint? Who it can be practically implemented using SQL?
Explain with an example.
7. What is the use of On delete cascade and on update cascade? Explain with example.
8. What is the difference between char, varchar & number? Which is faster and which is
memory efficient.
9. How Roll Back and Save point command can be practically implemented in SQL.
10. What is the difference between delete, drop & Truncate command? Explain with example.
11. Write the command in SQL to add a new column in an existing table.
12. Write the command in SQL to delete column from an existing table.
13. Write the command in SQL to change the name of a column in an existing table.
14. Write the command in SQL to change data type and size of a column in an existing table.
15. What is the use of Referential Integrity Constraint? Explain with example.
16. Write commands in SQL to Create fallowing tables and also write commands
in SQL to perform fallowing Queries.
Employee Table
EMP_ ADDR
EMP_NAME DESIGNATION DOJ SALARY DEPT_NO
NO
Department Table
DEPT DEPT DEPT_LOC
NO NAME
10 MARKETIN LONDON
G
20 ACCOUNTS AMERICA
30 SALES NEWYORK
40 SOFTWARE BOSTON
50 PRODUCTI BOSTON
ON
ALLOWANCE TABLE
17. Write the name any five DBMS that are based on Hierarchical Data Model.
18. Write the name any five DBMS that are based on Network Data Model.
19. Write the name any Ten DBMS that are based on Relational Data Model. Also write the name
of the companies who are the owner that DBMS.
20. Write the name any five DBMS that are based on Object-Oriented Data Model.
21. Write the name any five DBMS that are based on Object-Relational Data Model.
22. What is Referential Integrity Constraint? Who it can be practically implemented using SQL?
Explain with an example.
23. What is the use of On delete cascade and on update cascade? Explain with example.
24. What is the difference between char, varchar & number? Which is faster and which is
memory efficient.
25. How Roll Back and Save point command can be practically implemented in SQL.
26. What is the difference between delete, drop & Truncate command? Explain with example.
27. Write the command in SQL to add a new column in an existing table.
28. Write the command in SQL to delete column from an existing table.
29. Write the command in SQL to change the name of a column in an existing table.
30. Write the command in SQL to change data type and size of a column in an existing table.
31. What is the use of Referential Integrity Constraint? Explain with example.
32. Convert the above relational schema into tables with proper constraints that are required.
Employee
FName Minit LName SSN BDate Address Sex Salary SuperSSN DepNo
Department
DName DepNo MgrSSN MgrSDate
Dept_Locations
DepNo DLocation
Project
Works_On
Dependent