Forum Replies Created

Viewing 15 posts - 11,401 through 11,415 (of 15,381 total)

  • RE: Import Export

    Sounds like you either have too much text (6 characters into a 5 character field) OR you have characters that won't work in a varchar field (Meaning characters from the...

  • RE: last day of any year

    tim.cloud (7/6/2012)


    For my business, it begins on the first day of October and ends on the last day of the following September.

    Well the last day of September is always the...

  • RE: Need SQL queries please for string patterns

    challapal (7/6/2012)


    string starts with 3 digit same number Example 111Y,333Y, 555 H etc

    string starts with NULL

    string that starts with sequential digits Example 123g, 567jku

    string that...

  • RE: Index Types

    mtassin (7/6/2012)


    Sean Lange (7/6/2012)


    KWymore (7/6/2012)


    Points back, Steve?

    I think you just figured how to get them back yourself. 😉

    Nah that gets you a point post... if you look at your correctness...

  • RE: How to use nested IF's to work like a SQL CASE ?

    Well your first case condition is wrapped with double quotes. If that doesn't fix it you need to provide ddl and sample data that is readily consumable (meaning I can...

  • RE: Index Types

    KWymore (7/6/2012)


    Points back, Steve?

    I think you just figured how to get them back yourself. 😉

  • RE: How to use nested IF's to work like a SQL CASE ?

    isuckatsql (7/6/2012)


    Sean,

    Thanks for you help!

    A case of 'you can't see the woods, for the trees!'

    Ian

    You're welcome. Glad that worked for you.

  • RE: How to use nested IF's to work like a SQL CASE ?

    If a users enters @Degree data, that mean that they want all the candidates with a specific degree.

    The problem is that since people may have up to three degrees, i...

  • RE: Need help with difficult Dynamic SQL query

    zxxz (7/5/2012)


    I have updated the top post to add some sample data. Thanks guys.

    That is better but...nobody can run that. We are all volunteers around here and nobody wants to...

  • RE: How to use nested IF's to work like a SQL CASE ?

    isuckatsql (7/5/2012)


    I got the syntax to work, but the results are incorrect.

    if (@Degree <> 0)

    Begin

    if (' p.Degree1id ' > ' p.Degree2id ' and ' p.Degree1id ' > ' p.Degree3id ')...

  • RE: Need help with difficult Dynamic SQL query

    And FWIW from the description and the cursor you posted I don't think there is any need at all for a cursor. Cursors are notoriously slow and should be avoided...

  • RE: Need help with difficult Dynamic SQL query

    It isn't just the links but making them a bit more clear helps. From what you posted nobody can run anything. It is impossible to test sql when there are...

  • RE: Locate row with bad data

    Bobby Glover (7/5/2012)


    Probably an easy one but I have a table (TABLE A) which is nserting data into another table (TABLE B).

    The data types on the tables are not in...

  • RE: Index Types

    Rich Weissler (7/5/2012)


    Sean Lange (7/5/2012)


    You have to answer it correct according to BOL AND read the authors mind at the same time.

    It's worse than that. The author said...

  • RE: query help

    pnpsql (7/5/2012)


    i am begginer and knowlede of cross apply , if it can be done by cte it is more helpfuly for me to understand and modify as...

Viewing 15 posts - 11,401 through 11,415 (of 15,381 total)