Forum Replies Created

Viewing 15 posts - 3,571 through 3,585 (of 3,957 total)

  • RE: Theorhetical MERGE Question

    GSquared (5/17/2012)


    Considering that you need to do two actions if you get a match (create new and cancel old), Merge isn't the right solution.

    It is quite awkward that you cannot...

  • RE: Generating n-Tuples with SQL

    dwain.c (5/17/2012)


    An example would be a grocer who wishes to assemble for sale gift baskets consisting of various combinations of items that fall within a total cost range (so that...

  • RE: Generating n-Tuples with SQL

    Mark-101232 (5/17/2012)


    I think you can use CUBE/ROLLUP for this.

    SELECT CASE WHEN n1.strcol IS NULL THEN 0 ELSE 1 END +

    CASE WHEN...

  • RE: Generating n-Tuples with SQL

    Jeff Moden (5/17/2012)


    SQL Kiwi (5/17/2012)


    Jeff Moden (5/17/2012)


    Heh... I have the proof. I just haven't posted it. Time for someone else to prove it besides me. 🙂

    Well that doesn't...

  • RE: Generating n-Tuples with SQL

    SQL Kiwi (5/17/2012)


    Jeff Moden (5/17/2012)


    Shifting gears, just changing it to a While Loop using the exact same logic will make it more efficient.

    It's not like you to make such a...

  • RE: Organically cancel a resultset from proc if rowcount is zero?

    sturner (5/17/2012)


    "SET @sql = 'KILL @@SPID'

    EXEC (@SQL)"

    Killing ones self is a depressing solution.

    Ah yes, but suicide by SP is less depressing than say jumping off a building.

    Perhaps there's another...

  • RE: Generating n-Tuples with SQL

    Jesse McLain (5/17/2012)


    Jesse McLain (5/17/2012)


    chris.stuart (5/17/2012)


    I always enjoy reading the articles, but this one got me a bit stumped. Where would you actually use this?:unsure:

    I used this method in an...

  • RE: Generating n-Tuples with SQL

    Jeff Moden (5/17/2012)


    dwain.c (5/17/2012)


    I get it! Change RBAR in your avatar to Dwain.C and there you have it.

    Heh... considering the tagline in your signature, I do have to question...

  • RE: Generating n-Tuples with SQL

    Jeff Moden (5/17/2012)


    dwain.c (5/17/2012)


    Seriously, I'm smiling (:-D) because I figure that if I can stir up the emotions of the staunchly rigid and proper SQL aristocracy then I've done my...

  • RE: Generating n-Tuples with SQL

    Jesse McLain (5/17/2012)


    chris.stuart (5/17/2012)


    I always enjoy reading the articles, but this one got me a bit stumped. Where would you actually use this?:unsure:

    I used this method in an algorithm to...

  • RE: Generating n-Tuples with SQL

    Jeff Moden (5/17/2012)


    SQL Kiwi (5/17/2012)


    It still seems that your issues are more with the author (and Craig Freedman) rather than me.

    ... apologies but you weren't meant to be the target...

  • RE: Problem with XML content into SQL

    grecci1077 (5/17/2012)


    Thank you to both of you guys. You have saved me so much time. By the way I am not all that verse with SQL. Was the method that...

  • RE: Re-code to avoid using stored procedures

    Grant Fritchey (5/17/2012)


    Security of their systems, not the ones being built would be why you wouldn't want to give people permission to create stored procs. Still weird.

    I've dealt with at...

  • RE: Organically cancel a resultset from proc if rowcount is zero?

    Jan Van der Eecken (5/17/2012)


    dwain.c (5/17/2012)


    Knowing that it probably wouldn't work, I was playing around with this anyway and of course it didn't work.

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE PROCEDURE dbo.Test...

  • RE: Generating n-Tuples with SQL

    chris.stuart (5/17/2012)


    I always enjoy reading the articles, but this one got me a bit stumped. Where would you actually use this?:unsure:

    Oh my! So it's practical that you seek.

    In my...

Viewing 15 posts - 3,571 through 3,585 (of 3,957 total)