Forum Replies Created

Viewing 5 posts - 16 through 21 (of 21 total)

  • RE: Create a text file from SQL data

    Hello Juan.

    Once the file is generated(bcp step is complete), you can run this dos command as next step in the process. This will rename the file, append date to the...

    --------------------------------------------------------------------------------------
    Save our world, its all we have! A must watch video Pale Blue Dot[/url]

  • RE: Is it possible to do it in one query?

    I guess we need a group by on date?

    Changed a bit of test data, fixed the checkout times of employee 2 on '3/11/2008'

    Create Table Punches(empid int, time_in Datetime, time_out datetime)

    insert...

    --------------------------------------------------------------------------------------
    Save our world, its all we have! A must watch video Pale Blue Dot[/url]

  • RE: retrieving duplicate consecutive records.

    Thanks for the review. I thought no one will bother looking at the query as the original poster was satisfied with Mark's solution.

    One of the issues I saw above is...

    --------------------------------------------------------------------------------------
    Save our world, its all we have! A must watch video Pale Blue Dot[/url]

  • RE: retrieving duplicate consecutive records.

    I changed the test data a bit, My understanding could be wrong here.

    SELECT 1,1,getdate() UNION ALL --suspicious entry

    SELECT 1,1,getdate() UNION ALL --suspicious entry

    SELECT 2,1,getdate() UNION ALL -- Employee 2 Login

    SELECT...

    --------------------------------------------------------------------------------------
    Save our world, its all we have! A must watch video Pale Blue Dot[/url]

  • RE: using a case statement with Where clause

    A lil change:

    Where isnull(a.director, b.director) = b.director

    --------------------------------------------------------------------------------------
    Save our world, its all we have! A must watch video Pale Blue Dot[/url]

Viewing 5 posts - 16 through 21 (of 21 total)