Forum Replies Created

Viewing 15 posts - 46 through 60 (of 69 total)

  • RE: Query Help Please

    Try this:

    SELECT

    A.Account,

    A.Symbol,

    A.PandL,

    Min(A.Timee),

    CASE

    WHEN Min(A.Timee) BETWEEN '00:00:01' AND '09:30:00' THEN 'BeforeMktOpen'

    WHEN Min(A.timee) BETWEEN '09:30:00' AND '10:00:00' THEN 'FirstHalfHour'

    WHEN Min(A.timee) BETWEEN '10:00:00' AND '15:30:00' THEN 'Day'

    WHEN Min(A.timee) BETWEEN '15:30:00' AND '16:00:00' THEN 'LastHalfHour'

    ELSE...

  • RE: Query help

    Thank you dwain!

  • RE: Query help

    Thank you Howard!

    You are correct, I was looking for the same output you query provided.

  • RE: Collate and except

    Thank you Paul!

  • RE: Collate and except

    Thank you Adi!

  • RE: Query question

    Hi Jeff,

    I am using it to populate list of values for my report. And it is not going to change in the future (As per User), So I took Sean's...

  • RE: Query question

    Got it Sean, Thanks!

    Thanks Dave!

  • RE: Query question

    Thank you Sean!

    I have tried something like this:

    select program, pstatus, form from

    (select * ,

    ROW_NUMBER() over (partition by program order by len(form)) as RowNum

    from #pt

    group by program, pstatus, form) x...

  • RE: Row to column

    Thank you Drew!

  • RE: Recursive loop

    Thank you all for your comments, All very helpful articles and book for a newbie.

  • RE: Recursive loop

    This is not an exercise Celko, I am a SQL newbie. Thank you for the comment and suggesting the book.

  • RE: Recursive loop

    Thanks Chris!

  • RE: Recursive loop

    Thanks you Jeff!

  • RE: Recursive loop

    Thanks Malleswarareddy!

  • RE: Recursive loop

    Thank you mhike2hale!

Viewing 15 posts - 46 through 60 (of 69 total)