Forum Replies Created

Viewing 15 posts - 2,341 through 2,355 (of 10,144 total)

  • RE: How to shortening this sql code?

    HerryMarkowitz (7/10/2015)


    Hi kyagi.jo,

    Thanks for re-organized that code.

    But my main question is about how to shorten that code.

    I mean I dont want to enter every line from INVENNO 101 to INVENNO...

  • RE: Are the posted questions getting worse?

    rodjkidd (7/10/2015)


    ChrisM@Work (7/10/2015)


    rodjkidd (7/10/2015)


    ChrisM@Work (7/10/2015)


    Alvin Ramard (7/6/2015)


    New question: Is the sanity of those trying to answer posted questions getting worse?

    Mine sure is! :hehe:

    Yeah! Stopped answering questions for a...

  • RE: Are the posted questions getting worse?

    rodjkidd (7/10/2015)


    ChrisM@Work (7/10/2015)


    Alvin Ramard (7/6/2015)


    New question: Is the sanity of those trying to answer posted questions getting worse?

    Mine sure is! :hehe:

    Yeah! Stopped answering questions for a few days....

  • RE: Are the posted questions getting worse?

    Alvin Ramard (7/6/2015)


    New question: Is the sanity of those trying to answer posted questions getting worse?

    Mine sure is! :hehe:

    Yeah! Stopped answering questions for a few days. No sign...

  • RE: Convert Varchar to Int

    Minnu (7/8/2015)


    Numeric values in the first query should be converted to INTEGER.

    This isn't helpful and doesn't answer the questions which have been posted. Can you please post a table showing...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (7/8/2015)


    Okay, bite the tongue, keep the sarcasm off the thread Silver Spoon just posted. Nothing you can do there but get yourself in trouble.

    There, I feel a...

  • RE: Convert Varchar to Int

    Minnu (7/8/2015)


    Hi,

    first query result :

    1

    2

    11

    20

    32

    68

    100

    124

    246

    256

    second query result

    A1

    A10

    A11

    AB1

    AB10

    B1

    B2

    B21

    B31

    want to generate the complete output in single select statement.

    select

    ColA = CASE WHEN CastableToInt = 1 THEN cast(Data as int) ELSE NULL END,

    ColB...

  • RE: Convert Varchar to Int

    @sqletl (7/8/2015)


    When using CAST /CONVERT you cannot convert a field to a different data type if not all the values can actually be converted or are compatible. All the INT...

  • RE: Convert Varchar to Int

    Minnu (7/8/2015)


    Hi Team,

    I have a table with column "Data" as VARCHAR, with entries like below.

    1

    11

    2

    A1

    A10

    A11

    246

    AB1

    AB10

    100

    256

    B1

    B2

    124

    20

    B21

    B31

    32

    68

    i want to select the data by converting varchar to int for numberic values and...

  • RE: TVF is slower when running as paramerized

    phosplait (6/16/2015)


    So it seems this is definitely an issue of parameter sniffing.

    While option(recompile) did nothing, option(optimize for unknown) brought the dynamic query down to 3 seconds. Still slower, but I...

  • RE: Are the posted questions getting worse?

    Alvin Ramard (7/7/2015)


    Ed Wagner (7/7/2015)


    andrew gothard (7/7/2015)


    Grant Fritchey (7/2/2015)


    Since I am usually the harbinger of ill tidings on the thread, you guys should know, Skynet seems to be going live.

    "the...

  • RE: Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs

    robert.sterbal 56890 (7/7/2015)


    Is there a simple way to get a single row table with variable numbers of columns to output with 2 columns?

    i.e.

    colA colB colC

    1 5 23

    colA...

  • RE: huge number of rows in table spool

    Grant Fritchey (7/7/2015)


    I'm just surprised you didn't get a table spool in 2008 with a recursive CTE. That's pretty common.

    A recursive CTE plan always features spools. It's not a recursive...

  • RE: Turning datediff minutes into dd:hh:mm

    karen.blake (7/7/2015)


    Hi John,

    Thanks for your reply, you might have lost me on that one could you explain that further?

    Chris the datatype is datetime for that field if that helps.

    Thanks. Couple...

  • RE: Turning datediff minutes into dd:hh:mm

    I'm with John on this one. What datatype is aetr.CREATE_DATE ?

Viewing 15 posts - 2,341 through 2,355 (of 10,144 total)