Forum Replies Created

Viewing 15 posts - 2,491 through 2,505 (of 4,080 total)

  • RE: Merge Multipal views into one

    There is no "SQL command". You code with views as if they were tables. So the tools you have to work with are the standard JOINS,...

    __________________________________________________

    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?

    Errrrr... ummmm... ahhhh....

    __________________________________________________

    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: find the position of the charcter in delimited string

    Glad to, Riz 🙂 On my machine, the loop is taking 29-30 milliseconds, on the average, to run. A couple of times it dropped to 16,...

    __________________________________________________

    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?

    Congratulations, Roy !! Keep up the good work.

    __________________________________________________

    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 Server not evaluating WHERE before Casting?

    It would be helpful to see the full WHERE clause.

    Given the 'A999A' pattern, I assume it contains something like this?

    WHERE someCol like '[A-Z][0-9][0-9][0-9][0-9][A-Z]'

    __________________________________________________

    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: find the position of the charcter in delimited string

    Hey Seth 🙂

    You inspired me to convert my CTE solution to an inline table valued function (at the bottom). Use it with a cross apply and it's not...

    __________________________________________________

    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: find the position of the charcter in delimited string

    select '4*2,4*4,6'

    Might as well make some more assumptions. 😉

    __________________________________________________

    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: find the position of the charcter in delimited string

    A straightforward procedural solution, but it really needs to be tested against other patterns. Unless the OP (original poster) tells us otherwise, we can't assume that there will...

    __________________________________________________

    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?

    As time moves along, you would expect to see a change in the pattern / methodology that a person posts. If there is no change in pattern, then I...

    __________________________________________________

    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: Selection Help

    TRAVEL (ItemID = 'TR')

    --------

    1) SO Type of Relocation, because it hasn't been mapped to this part yet, and there are still combinations available.

    2) Time Log Install, because it hasn't been...

    __________________________________________________

    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?

    You all do realize that in some cases SSC is the automatic transmission compared to the manual-shift F1 key? All the volunteers enable (some) people to multitask. ...

    __________________________________________________

    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: Selection Help

    Chris, I'm looking at your sample data right now. What would really help me is for you to give me sample inputs and outputs. Draw...

    __________________________________________________

    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: Update values from Table Two with values from Table One

    I have to agree that coalesce is better overall in that it can handle more than two.

    __________________________________________________

    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: check if value is integer

    One additional comment:

    If you are ever working with FLOAT datatypes you can't use the modulo (%) operator. In that case, you can use ROUND with...

    __________________________________________________

    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: Using Merge to insert/update table

    Mh (8/27/2009)


    Actually this code is for the source:

    No, this is where you defined the source:

    USING ( SELECT --@OrderID,

    @orderName,

    @orderType,

    @orderNumber

    ) AS source

    Per your example I shall insert this...

    __________________________________________________

    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,491 through 2,505 (of 4,080 total)