Advanced SQL (April – 2015) [IDOL - Revised Course | Question Paper]



Click Here: (PDF Link 1) | Click Here: (PDF Link 2) | Click Here: (PDF Link 3)

Click Here: (Image View) | Click Here: (Text View)


B.Sc.IT: Semester – III
[Advanced SQL]
Question Paper (April – 2015) [Revised Course]

Time: 3 Hours
Total Marks: 100

N.B.:      (1) All Questions are Compulsory.

Q.1 Attempt Both The Question: (10 Marks)
(A) Explain the following operators:
      (i) %TYPE
      (ii) %ROWTYPE
(B) Explain any five Aggregate functions with example.

Q.2 Attempt Any Three From The Following: (15 Marks)
(A) Consider the following database Salesman(SID, Date_Sale, Sale, Target,_Area, Branch_ID)
      Branch(Branch_ID, Bname, Loc)
      (i) List all the salesman whose name’s second character is ‘a’.
      (ii) List all the salesman whose sale is in between 10000 to 50000.
      (iii) List all the branches names located in Delhi.
      (iv) List the salesman whose salary is maximum in the mouth of April.
      (v) List all the salesman of Delhi branch.
(B) What is Primary Key Constraint? Explain with example.
(C) What is View? Give example for creating, updating and deleting the view.
(D) What is a sequences? Explain the syntax for creating a sequence.

Q.3 Attempt Any Three From The Following: (15 Marks)
(A) Explain different types of set operators with example.
(B) What is a Privilege? Explain Grant and Revoke commands with example.
(C) What is Scalar Subquery? Explain with suitable example.
(D) What is a Hierarchical Query? Explain with example.

Q.4 Attempt Any Three From The Following: (15 Marks)
(A) What are the benefits of PL/SQL? Explain the PL/SQL Block.
(B) Explain the purpose ROLLBACK AND SAVEPOINT with example.
(C) What is an Identifier? What are the rules for naming them?
(D) Explain the different types of operators used in PL/SQL.

Q.5 Attempt Any Three From The Following: (15 Marks)
(A) Explain IF-THEN-ELSE statement with example.
(B) Explain Index By Table with the help of example.
(C) Write a PL/SQL Block of code to print even number in between 1 to 100.
(D) What are the different types of Cursors? Explain with an example.
Q.6 Attempt Any Three From The Following: (15 Marks)
(A) What are a packages in PL/SQL? What are the advantages of packages?
(B) Write a PL/SQL Block of code for a procedure which displays the information of a student table.
(C) What is Stored Procedure? Explain how to create Stored Procedure.
(D) What are stored functions? Explain its creation and calling example.

Q.7 Attempt Any Three From The Following: (15 Marks)
(A) Define Triggers. Explain the syntax of creating triggers in the PL/SQL.
(B) Explain BEFORE and AFTER Trigger with example.
(C) Write a short note on Dynamic SQL.
(D) Create a trigger to change the commission amount to 2500. Every time the commission amount exceed 1500 an appropriate message is displayed.

0 Comments