Forum Replies Created

Viewing 15 posts - 3,901 through 3,915 (of 4,080 total)

  • RE: Referencing and sorting by calculations

    As long as we're mentioning 2005, you can just order by the assigned name of your calculated column without bothering with a CTE. The following runs just fine...

    __________________________________________________

    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: Deleting rows and later reusing the Identiify value

    The horror... the horror...

    __________________________________________________

    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: CURRENT_TIMESTAMP

    😛

    __________________________________________________

    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: SQL help filtering numbers

    Winash, I would have gone with not like '%[0-9]%' being most elegant. What have you got that tops it?

    __________________________________________________

    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: SQL help filtering numbers

    Clarification please. Do you want to select only rows without numbers or do you want to return all strings, only with numbers removed?

    __________________________________________________

    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: Query to get all days of a month

    The CTE "Days" is an example of a "Recursive" query. Just search the word "recursive" in the search block above and you will find a number of...

    __________________________________________________

    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: i want to include some logic for a column called payment ype

    Please help us out by telling us what "Some Error" is.....

    Remember, we don't have your tables on our servers, so we can't just cut and paste your code into 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: Deleting rows and later reusing the Identiify value

    Porkchop Traumatic Stress Disorder

    __________________________________________________

    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: query to excel

    If he moves the USE, won't the variables be okay? Looks like all he's doing is getting values for today and yesterday.

    __________________________________________________

    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: query to excel

    Try moving that USE docnet to the first line of your query, it's just good practice.

    Now

    [font="Courier New"]

    WHERE do.LastModifiedTime BETWEEN @Yesterday AND @Today

    AND en.DischargeDate <>...

    __________________________________________________

    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: How to use case in where clause

    You're welcome. I just want to make it clear that I don't recommend it in any situation where performance is, or may become, an issue. ...

    __________________________________________________

    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: How to use case in where clause

    My intention was to suggest something that would perform well, since simple is going to run poorly.

    Here is the original suggestion from my first post.

    It is...

    __________________________________________________

    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: How to use case in where clause

    I deleted my earlier query because I forgot to think outside the box. Can you work with this?

    declare @integrityTbl table (integrity int primary key)

    if @integrity = 'all classified'

    ...

    __________________________________________________

    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: Deleting rows and later reusing the Identiify value

    :w00t:

    __________________________________________________

    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: Regd Small Query

    if self then here comes the problem

    then i need to join this table1 with lookuptable based on center_id and get the name from table 2 as order_source ....

    just join table...

    __________________________________________________

    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 - 3,901 through 3,915 (of 4,080 total)