Need to fetch current date records from SQL server 2008

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhargav042929
    New Member
    • Feb 2013
    • 1

    Need to fetch current date records from SQL server 2008

    Hi Experts,im a SAP PI consultant. im new to SQL server. i have a requirement where i need to fetch the records that are added today. i only have read access to the database. can some one help me with the query.

    My Fields are Date, Empcode, start_time, End_Time. these records i need to fetch from the database.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    SQL Server or MySQL? They are different things.

    What you are asking for is a very basic query that is covered by tutorials for beginners. If you are going to be doing a lot of work in SQL, you should probably invest some time in a tutorial. This is a good one to try: http://www.w3schools.com/sql/default.asp

    Comment

    • swathee
      New Member
      • Dec 2013
      • 9

      #3
      Code:
      WHERE CAST(Employee.[Date] AS DATE) = CAST(GETDATE() AS DATE)
      Last edited by Rabbit; Dec 9 '13, 05:14 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.

      Comment

      Working...