Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: ^ : T-SQL

    ronmoses (11/20/2009)


    daniel.gardiner (11/20/2009)


    I answered correctly but didn't get the point, the answer page tells me that the correct selection is '1' because 'Joe' is the only match (which is the...

  • RE: ^ : T-SQL

    I answered correctly but didn't get the point, the answer page tells me that the correct selection is '1' because 'Joe' is the only match (which is the fourth selection...

  • RE: T-SQL

    I would consider them the "same" if I could use either one in my code and receive the same results. However, queries like the following:

    select datediff(hh, '2009-11-17 7:57:00', GETDATE())

    select...

  • RE: need a logic to find out the previous week for previous week for any given date

    I don't define 'week', that's determined by SQL, and a quick Google search shows that the first day of the week can be changed with SET DATEFIRST. The original...

  • RE: need a logic to find out the previous week for previous week for any given date

    I'm not certain of the SQL functions but is it possible to:

    subtract 7 days from the current date

    determine the 'week' part of this date

    select records with dates from this 'week'

Viewing 5 posts - 1 through 5 (of 5 total)