DELETE FROM tbBooks
WHERE BookId IN (SELECT TOP 2 BookId FROM tbBooks ORDER BY BookId ASC)
Loading
DELETE FROM tbBooks
WHERE BookId IN (SELECT TOP 2 BookId FROM tbBooks ORDER BY BookId ASC)
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(*) from emp group by dept order by dept descWrite a query based on the below records in the table
Empid Empname Dept
1 Praveen IT
2 Mahesh IT
3 Scott HR
4 Leslie Admin
5 Mary HR
Write a SQL query which returns the following result
Dept No of Employees
IT 2
HR 2
Admin 1