1. What are the advantages and disadvantages of SQL?

advertisement
1. What are the advantages and disadvantages of SQL?
2. Describe the eight base data type in SQL
3. Discuss the functionality and importance of the integrity enhancement feature
(IEF).
4. Discuss each of the clauses of the CREATE TABLE statement.
5. Discuss the advantages and disadvantages of view
6. Describe how the process of view resolution works
7. What restrictions are necessary to ensure that a view is updatable?
8. What is a materialized view and what are the advantages of a maintaining a
materialized view rather than using the view resolution process?
9. Describe the difference between discretionary and mandatory access control.
What type of control mechanism does SQL support?
10. Describe how the access control mechanism of SQL work.
Table
Student
Attribute
Student_Id (PK)
Name
Class
Major
Type
Char
Varchar
Char
Char
Length
10
50
1
2
Null
No
No
No
No
Course
Course_Id (Pk)
CourseName
CreditHours
Department
Char
Varchar
SmallInt
Char
8
30
2
4
No
No
No
No
Section
SectionIdentifier
Course_Id
Semester
Year
Instructor
Char
Char
Varchar
Char
Varchar
3
8
15
2
25
No
No
No
No
No
Char
Char
Char
10
3
1
No
No
No
Grade_Report Student_Id
SectionIdentifier
Grade
Prerequisite
Course_Id
Char
8
Prerequisite_Id
Char
8
Figure 1. A Database that stores student and course information
No
No
11. Consider the tables shown in Figure 1, write SQL DDL statements to :
a. Create Schema or Database
b. Define the database (Create Table).
c. Change attribute
d. Drop a Table
e. Create View
Download