Assignment BCA SEM-V (BCA-501)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

DEPARTMENT OF COMPUTER APPLICATION

(Bachelor in Computer Application)


RAJ NARAIN COLLEGE, Hajipur, (Vaishali), Bihar-844101

Submit your Assignment & Lab Book before PRACTICAL Examination (27-02-2024)

Q1. What is Constraint? Explain different types of Constraint with example?

Q2. Explain Ten SQL functions that are used to manipulate data items and return a result. Also

explain Data conversation functions with example?

Q3. What is INDEX? Write the syntax create, Modify and Drop Index?

Q4. What is View? What are the different criteria for updateable View?

Q5. What is Sequences? Write the syntax create, Modify and Drop Sequences?

Q6. Explain PL/SQL block Structure? Explain different types of PL/SQL datatypes?

Q7. What is LOCK? Explain different types of Lock?

Q8. What is a CURSOR? Explain different types of cursor with example?

Q9. What are Procedures? Write the syntax how to create and replace the Procedures? What are

the advantages of Procedure?

Q10. What are Functions? Write the syntax how to create and replace the Function? What are the

advantages of Function?

Q11. What are Triggers? Write the syntax how to create and replace the Function? What are the

different types of Triggers?

Q12. Explain different types of Control structure (Sequence, if-then-else, loop) use in PL/SQL with

example?
LAB PROGRAME BCA-501 ORACLE (PL/SQL)

P1. Write Sql query to create table using appropriate data type and constraints.

a. Member (MID, MNAME, MTYPE,COURSE,YEAR,MADDRESS,EMAIL)

b. Book ( BID, BNAME, AUTHOR, PUBL, NO_OF_COPY,BOOK_PRICE,EDITION_YEAR)

c. Book_tran (MID, BID, ISSUE_DATE, RETURN_DATE)

P2. Write 20 Sql queries related to Library functions using SQL functions, Join and Sub queries.

P3. Write a PL/SQL Program to enter Product Code and display Product information. Using

Exception if product record not found display message “Product does not exist”.

P4. Write a PL/SQL Program for Inversing a given number e.g. number 76345 when inverted

must display output as 54367.

P5. Write a PL/SQL Program for update all employee salary with 20% of basic salay.

P6. Write a Procedure to insert auto generated Emp_code when insert record in employee

table.

P7. Write a PL/SQL Program for using loop for a counter from 1 to 100.

P8. Write a Procedure to demonstrate use of INOUT parameter.

P9. Write a PL/SQL Program for a quantity can be issued if the total amount is below a

sanctioned amount. Where sanctioned amount is Rs. 1000.

P10. Write a trigger for not allowing work on weekends.

You might also like