Declaration.: Problem 1: Create Two Tables Department & Department 1 As Per Given Below Data &
Declaration.: Problem 1: Create Two Tables Department & Department 1 As Per Given Below Data &
declaration.
Problem 4: Create & execute after insert trigger A_I on table Department to insert
new data in to Department table & same data (Dept_ID) will auto inserted to table
department1 with edit time.
Problem 5: Create & execute after update trigger A_U on table Department to update
department information. For example you want to update Dept_ID =1005 for HR dept in
department table & these Changes must be reflected into both tables. Means you will
update only department table & Department1 will be updated automatically. (In this
operation the OLD id will be exist in the department1 table, to remove that ID you can
run a delete query with in the same begin-end block).
Problem 6: Create & execute after delete trigger A_D on table Department to delete
the record of HR department & changes must be reflected into both tables. Means you
will delete the record from the table Department & same record will be deleted from
department1 automatically.
*Display all the triggers in DBMS2017 & Drop Them
Date: 24/03/17
1. Create a Function AddTwoNo (to add two numbers) that take input from the user.
4. Create & Call a Stored Procedure Insert_Record to insert data into table Empl by
stored procedure as mentioned below:
5. Display table Empl.
6. Create & Call a Stored Procedure Update_Record to update data into table Empl
Set Emp_Name as ABC whose Emp_ID id 1001.
.
7. Create & Call a Stored Procedure Select_Record to display the table Empl
8. Create & Call a Stored Procedure Simple_Proc to count the number of employees
using out keyword.
Create two tables as per given below structure under DBMS17 _CSD21 & insert data as
mentioned below:
Structure forTable1: Employee
A.
A.
Intersection:
Select all details from both tables i.e. Employe-Emp_Name & Manager_ID with the help of
Dept_ID
A.
Index:
(a). Create an index First_Index on the table employee on filed Emp_Name in
descending order.
A.
(b). Display the information of First_Index