Help!! with Transact SQL

Last post 09-26-2008 11:19 AM by preethi. 2 replies.
Page 1 of 1 (3 items)
Active Topics My Discussions Unanswered Sort Posts: Previous Next
  • 09-25-2008 5:32 PM

    Help!! with Transact SQL

    Hi!!, My name is Lucas and I have trouble with 3 points from a test.

    The problems are:
     
     1- Get all employees who worked every day from 01-05-2006 to 10-05-2006 (dd-mm-yyyy) and not worked since the day 11-05-2006 until 20-05-2006 day ( dd-mm-yyyy).
     
    2- Get the total number of hours worked per employee for the month of May 2006, considering only those employees supervised by Pedro.
     
    3- Get the total number of hours worked per employee in 2006.
     
    For this I have two tables Employees_1 a call and another call Employees_2.
    In Table Employees_1 I have three columns employee_id, Name_Employe, Surname_Employee.
    In Table Employees_2 I have thre columns employee_id, Start_Date, End_Date (In the columns Star_Date and End_Date I have such data as "01-05-2006 10:12:00 // "01-05-2006 18:00:00"").

    I need help, I do not know how to solve these problems.

    Thanks!!!!

  • 09-25-2008 11:46 PM In reply to

    Re: Help!! with Transact SQL

    Sorry, but if we answer these questions, this might help you with your test, but you really gain nothing in the end.

    --
    Frank Kalis
    Microsoft SQL Server MVP
    Contributing Editor, Writer & Forum Moderator http://www.sql-server-performance.com
    Webmaster: http://www.insidesql.org
    View Frank Kalis's profile on LinkedIn

    XING
  • 09-26-2008 11:19 AM In reply to

    • preethi
    • Top 100 Contributor
    • Joined on 07-01-2003
    • Sri Lanka
    • Posts 169

    Re: Help!! with Transact SQL

    Please Read SELECT statement in BOL. It will help you to understand the logic behind. If we give you the answer, we (including you) might be guilty of "Impersonation" or some thing equal to that.

    Cheers,
    Preethiviraj Kulasingham
    MCITP:DBA
Page 1 of 1 (3 items)
Active Topics   My Discussions    Unanswered Posts


© 2000 - 2007 vDerivatives Limited All Rights Reserved.