Dbs Lab 1
Dbs Lab 1
Dbs Lab 1
Ans) - - select
select * from "Employees"
● Write an SQL query to display the employees who belong to the
"Sales" department.
Ans) - - select
select * from "Employees" where 'Sales' = Department
Ans) - - select
select * from "Employees" ORDER BY LastName ASC
Ans) - - select
select avg (datediff (year,Dateofbirth,getdate())) from "Employees"
● Write an SQL query to create a new table named "Salary" with the
following columns:
1. Employee ID (integer)
2. Salary (float)