plz help me out in writing a small query

  • DepartmentIDDepartmentName

    1Human Resources

    2Information Technology

    3Marketing

    4Legal

    Table: Department

    Table: Employee

    EmployeeIDEmployeeNameDepartmentID

    1 Paul3

    2 John1

    3 Mary4

    4 JosephNull

    5 Leo1

    6 Mark3

    7 Scott3

    6.List all the departments that don’t have any employees. (Without using sub query)

    7.List the departments with the number of employees.

    9.How will you check the locks on a table?

    Thanks,
    Chinna

    Its the Journey which gives you Happiness not the Destination-- Dan Millman

  • Posting homework is bad enough. Cross-posting homework is getting a bit over the line. See my response on the other thread.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

  • Y, seriously dude... we can't do your homework for you.

    Watch my free SQL Server Tutorials at:
    http://MidnightDBA.com
    Blog Author of:
    DBA Rant – http://www.MidnightDBA.com/DBARant

    Minion Maintenance is FREE:

  • use your text book and skat...

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply