6
Reply

SQL Query Question

Praveen Moosad

Praveen Moosad

Aug 25, 2009
6.4k
0

    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

    Ashu Dhaundiyal
    February 21, 2015
    0

    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.

    hariom
    September 06, 2010
    0

    select dept,count(empid) as 'No of Employees' from tablename

    group by dept order by empid desc

    yakoob pasha
    July 29, 2010
    0

    select dept, count(*) from emp group by dept order by dept desc

    Puran Mehra
    August 25, 2009
    0

    Write 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

    Praveen Moosad
    August 25, 2009
    0