Forum Replies Created

Viewing 15 posts - 2,416 through 2,430 (of 4,081 total)

  • RE: dates sql query

    I forgive you for any of my time you may have taken up, and I'll bet that Lutz and Drew feel the same. It was our choice to...

  • RE: Notifications

    Have you tried looking in BOL (books online) under "Subscriptions [SQL Server query notifications]"?

    You might also try out the entries from this results link. I went to...

  • RE: Are the posted questions getting worse?

    Sigh.... my Rebels beat Tiger High, but it wasn't pretty.

    Hope you weren't emotionally invested in the game, Alvin. 😉

  • RE: trouble writing query

    This will work as well

    ;with cte as

    (SELECT *,ROW_NUMBER() OVER (PARTITION BY itemID ORDER BY endDate DESC) as rowID

    FROM #tab1 a

    )

    SELECT * FROM cte WHERE rowID = 1

  • RE: dates sql query

    Drew: Sweet 🙂

  • RE: dates sql query

    I don't think Lutz meant it was wrong for you to ask a question on Sunday. I'm sure he was happy to help. After all, we...

  • RE: brocken

    Please show small example of names and subgroups.

    Many of us have the Adventureworks database, as a standard.

    We can't solve your problem without seeing your tables, data and schema.

  • RE: dates sql query

    Hey "Forum Member"

    Please take time to read the article posted under Lutz' signature. There are some very good rewards for you, if you follow the procedures outlined...

  • RE: brocken

    Just a few points, and one question:

    (1) The code you posted will not execute, please fix it.

    (2) Posting header lines above query results is not done in TSQL, but in...

  • RE: This removes all zeroes, I need the trailing zero removed

    There are any number of ways to convert M205100 to 20510. You could use LEFT() and RIGHT() nested. You could STUFF() the first and last characters...

  • RE: This removes all zeroes, I need the trailing zero removed

    Do you want this to read 20510 or 2051 ??

  • RE: SUM Problem

    I'm not following your description. Could you please draw a picture of the table as it should look with the rows calculated correctly?

  • RE: Need help for SQL query

    T-SQL does not prompt a user automatically, the way that Access does for example. Prompting for user input is a function of the user interface, including Access...

  • RE: Indexes

    Data type "bool"? What are you running?

    Also, your statement is only true for the small number of rows in your example. Its a...

  • RE: Fixed to varying length

    Good question and a good reminder.

Viewing 15 posts - 2,416 through 2,430 (of 4,081 total)