DELETE FROM tbBooksWHERE BookId IN (SELECT TOP 2 BookId FROM tbBooks ORDER BY BookId ASC)
select Count(Dept) as No_Of_Emp,Dept from Emp Group By(Dept) Order by Dept DEsc
Select dept, count(dept) from emp group by Dept
when developer get issue then its a bug.
when tester got an issue then its a error
and when production side got any issue tne its a defect.
select dept,count(empid) as 'No of Employees' from tablename
select dept, count(*) from emp group by dept order by dept desc
select
Write a query based on the below records in the table
Empid Empname Dept1 Praveen IT2 Mahesh IT3 Scott HR4 Leslie Admin5 Mary HR
Write a SQL query which returns the following result
Dept No of Employees
IT 2HR 2Admin 1