Sunteți pe pagina 1din 3

ASSIGNMENT PROGRAM: BSc (IT) SEMESTER-II Subject Name : ORACLE A1922713031(el) EL2013-01-BIT0001-2573 : BOITUMELO SELELO (MR)

Permanent Enrollment Number (PEN) : Roll Number Student Name :

ASSIGNMENT A

1. What is Structured Query Language? Explain in brief different type of SQL Sub Languages? 2. What do you mean by Integrity Constraint? Explain in brief different integrity Constraints available in SQL? 3. Differentiate the Procedures, Functions and Triggers. What are the advantages of having subprograms rather than the normal PL/SQL blocks? 4. How the various SQL statements are executed within a PL/SQL block. What are the advantages of using SQL statements within PL/SQL block rather than executing them separately? 5. What are exceptions? How they declared and used in PL/SQL block. What are the main differences between user-defined exceptions and system-defined exception? Write any five system-defined exception used in Oracle.

Assignment B 1. CREATE SALESPEOPLE, CUSTOMER AND ORDER TABLE WITH FOLLOWING ATTRIBUTES AND INSERT VALUES IN THEM.

2. a) b) c) d) e) f) g) h) i) j)

On the Basis of Below three tables (Salesppl, Customer & Order_dept) solve COUNT THE NUMBER OF SALESPEOPLE GETTING COMMISSION >20 GIVE MAXIMUM AMOUNT ORDER DETAILS DATEWISE. GIVE TOTAL AMOUNT OF ORDERS ON '01-JAN-99'. QUERY THAT SELECT THE HIGHEST RATING IN EACH CITY. WRITE THE QUERY STATEMENT THAT DISPLAYS SALESPERSON GETTING SAME COMMISSION. QUERY THAT GIVES THE NAMES OF BOTH THE SALESPERSON AND CUSTOMER FOR EACH ORDER NUMBER. QUERY THAT GIVES THE ORDER DETAILS OF ALL THE CUSTOMERS WHO ARE FROM CITY 'BOMBAY'. QUERY THAT GIVES THE CUSTOMER DETAILS WITH ORDER AMOUNT>15000. QUERY THAT GIVES THE DETAILS OF SALESPEOPLE HAVING MORE THAN 1 CUSTOMER. WRITE AN UPDATE STATEMENT TO INC. THE RATING OF ALL BOMBAY CUSTOMERS BY 50.

3. What are cursors and for what purpose these are used in PL/SQL block. Explain various cursor attributes.

Assignment C

S-ar putea să vă placă și