Date : 18-08-2016
PART A (2 x 9 = 18)
1.
2.
3.
4.
5.
7.
8.
A database object is any defined object in a database that is used to store or reference data. Some
examples of database objects include tables, views, clusters, sequences, indexes and synonyms.
Define SQL.
SQL is a standard common set used to communicate with the relational database
management systems. All tasks related to relational data management-creating tables, querying, modifying,
and granting access to users, and so on can be done using SQL.
What are the different data types supported by SQL
Character
Small int
Date
Varchar
Real,double
Time
precision
Numeric
Time stamp
Float
Integer
9.
Define Trigger.
A trigger is a statement that the system executes automatically as a side effect of a modification to
the database. Triggers are useful mechanism for altering humans for starting certain tasks automatically
when certain conditions are met.
PART B (2 X 16 = 32)
10 a) Explain the following with examples
i). DDL
CREATE: syntax, example
ALTER: syntax, example
DROP : syntax, example
RENAME : syntax, example
TRUNCATE: syntax, example
ii). DML
SELECT: syntax, example
INSERT: syntax, example
UPDATE: syntax, example
DELETE: syntax, example
10 b) Explain the following
i). Triggers
Definition, features
Syntax
Example
ii). Procedures and functions
Definition
Syntax
Examples
11 a) Explain about
i) Embedded SQL
Definition, features, Advantages
Example
Static vs Dynamic SQL
ii) Aggregate Functions
Definition
AVG, SUM, MAX, MIN, COUNT,
Examples
11 b) Give a detailed description about Query processing and optimization. Explain the cost estimation of query
optimization.
Query Processing Definition
Diagram
Query Optimization
Example
Cost estimation of query optimization