Forum Replies Created

Viewing 15 posts - 2,536 through 2,550 (of 3,957 total)

  • RE: Customery Survey Query with no Duplicates

    Take a look at using ROW_NUMBER() in MS BOL.

    If you can't figure it out post some DDL and sample data (consumable form) where your query would return duplicates. Identify...

  • RE: Getting Year-Over-Year growth data

    This should also work:

    ;WITH YOY AS (

    SELECT Years = DATENAME(year, EnrollDate)

    ,COUNT(MemberID) as TotalMembers

    FROM dbo.Enrollment...

  • RE: Alphanumeric number generation

    Eugene Elutin (10/30/2012)


    Jeff Moden (10/30/2012)


    dwain.c (10/29/2012)


    Jeff Moden (10/29/2012)


    It's a fun problem but I wouldn't actually help anyone put such a thing into production for the reasons I've already stated.

    Sorry about...

  • RE: Routine Dependency Visualizer

    angelrapallo 90775 (10/30/2012)


    yes i have seen it yeah hey is not perfect

    i could handle dynamic maybe in the future, becuase i use little dynamic, i use a different technique

    to avoid...

  • RE: A maths puzzle for anyone up for a challenge!

    Jeff Moden (10/30/2012)


    dwain.c (10/30/2012)


    Definitely can't wait to see what Jeff comes up with. The man is in a class all by himself.

    Thanks for the compliment :blush: but seriously not...

  • RE: A maths puzzle for anyone up for a challenge!

    webtekkie (10/30/2012)


    Eugene - I didn't even notice your post earlier as I was posting at the same time. It's an excellent solution but sadly fails for the same reason...

  • RE: A maths puzzle for anyone up for a challenge!

    webtekkie (10/30/2012)


    Dwain - that's impressive! I'm going through it now to see understand what's going on here.

    Jeff - I've checked with the data sourcing team - they have told...

  • RE: char(??) vs varchar(??)

    Or you could construct a query against your table as follows to check total actual string lengths for both scenarios.

    Assume the column (Your_Column) in your table (YourTable) is VARCHAR(100):

    SELECT VARCHAR=SUM(2...

  • RE: try..catch and union all

    eugene.pipko (10/29/2012)


    What about any other error? There is no front end. The result is emailed to the user.

    I guess what I am trying to do is to let the other...

  • RE: MAX Function Problem

    Jason-299789 (10/30/2012)


    dwain.c (10/30/2012)


    In the future, you should provide DDL and consumable sample data in the format I've included below.

    -- DDL

    DECLARE @T TABLE

    (RecordID INT, ItemID INT, MaxOfCost...

  • RE: MAX Function Problem

    In the future, you should provide DDL and consumable sample data in the format I've included below.

    -- DDL

    DECLARE @T TABLE

    (RecordID INT, ItemID INT, MaxOfCost MONEY)

    -- Consumable...

  • RE: Are the posted questions getting worse?

    SQLRNNR (10/30/2012)


    L' Eomot Inversé (10/29/2012)


    I (installed and) ran SUPERAntiSpyware. It told me "I've found three things infected; I won't tell you what with, and I won't tell you which...

  • RE: Routine Dependency Visualizer

    Angel,

    This is indeed a pretty cool script.

    I ran it against a small database of mine, after changing '[msdb]' to '[My database].' Aside from some of the information printed still...

  • RE: Alphanumeric number generation

    Jeff Moden (10/29/2012)


    It's a fun problem but I wouldn't actually help anyone put such a thing into production for the reasons I've already stated.

    Sorry about that! Just couldn't help...

  • RE: A maths puzzle for anyone up for a challenge!

    Jeff Moden (10/29/2012)


    webtekkie (10/29/2012)


    Eugene - Max size for Value1 is 7 chars and for Value2 is 10 chars.

    Just to be sure, Value 1 will only contain 1 to 7 characters...

Viewing 15 posts - 2,536 through 2,550 (of 3,957 total)