1️⃣ Create Employee Table
2️⃣ Add Columns HRA, PF, DA with Domain (numeric)
3️⃣ Insert 5 Records (Using Keyboard / Manual Insert)
4️⃣ Update HRA, PF, DA (Percent of Salary)
HRA = 12%, PF = 10%, DA = 65%
5️⃣ Deduct PF from Salary Column
6️⃣ Delete Employees with EmpID 105, 107, 109 AND City in ('ALLD','KNP','Lucknow')
Note: Ye deletion condition me OR use kiya kyunki aapne dono criteria diye hain (empid OR city)
7️⃣ Delete the Column City
8️⃣ List Name, Salary, Total Salary (Salary + HRA + PF + DA)
✅ Explanation of Steps:
-
Table created with basic employee info.
-
HRA, PF, DA columns added separately with numeric domain.
-
5 sample records inserted.
-
HRA, PF, DA calculated as % of Salary.
-
PF deducted from Salary column.
-
Unwanted employees deleted using EmpID or City criteria.
-
City column removed from table.
-
Final output displays employee name, net salary after PF deduction, and total salary including HRA, PF, DA.
No comments:
Post a Comment