Forum Replies Created

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

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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. 😉

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: dates sql query

    Drew: Sweet 🙂

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

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

    Do you want this to read 20510 or 2051 ??

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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?

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • 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...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Fixed to varying length

    Good question and a good reminder.

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

  • RE: Converting from NVarchar to DateTime

    Jacob... this may help you understand the chart. Single digit styles are for character strings that show only the last two digits of year. Three...

    __________________________________________________

    Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
    Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills

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