Professional Documents
Culture Documents
1. List and briefly explain various data types that are allowed for SQL attributes.
2. Explain the following with their syntax and example.
i. CREATE TABLE command
ii. SELECT statement
iii. UPDATE command
iv. DROP command
3. How does SQL allow implementation of the entity integrity and referential
integrity constraints?
4. Explain the ALTER TABLE command. Explain how a new constraint can be
added and also an existing constraint can be removed using suitable
examples.
5. How do the relations (tables) in SQL differ from the relations defined
formally? Discuss the differences in terminology. Why does SQL allow
duplicate tuples in a table or in a query result?
6. Write short notes on Embedded SQL and transaction support in SQL.
7. Explain IN and EXISTS operator with suitable examples.
8. Explain the following with respect to SQL giving examples.
i) Views ii) Aggregate functions
9. Explain how GROUP BY clause works. What is difference between WHERE and
HAVING clause?
10.Explain insert, delete, and update statements in SQL with examples.
11.How is a view created and dropped? What problems are associated with
updating of views?
12.For the database schema, given below.
15.Discuss how NULLs are treated in comparison operators in SQL. How are
NULLs treated when aggregate functions are applied in an SQL query? How
are NULLs treated if they exist in grouping attributes?