CS-18 Practical Paper Solution
CS-18 Practical Paper Solution
BCA SEM -3
DECEMBER-2024
CS-18 PRACTICAL
(c) List All Employees Name and Designation from Employee table.
Select Name, Designation from employees;
(e) List All Employees who are not belonging to DeptID 10,20,30.
Select * from employees where DeptID not in (10,20,30);
OR
(b) List all Managers and add 200 rupees in each Salary.
update employees set salary=salary+200 where designation='Manager';
(c) List all Employees and add 1000 rupees and subtract 500 rupees in each Salary.
Update employees set salary=salary+1000;
Update employees set salary=salary-500;
(d) Find those Employees whose Designation not start with ‘M’.
select * from employees where designation not like 'M%';