Forum Replies Created

Viewing 15 posts - 1,651 through 1,665 (of 1,923 total)

  • RE: Decimals being Dropped by Update

    Or further, to be fool proof, modify your UPDATE statment like this

    update #test

    Set Amount_Sterling =

    Case when local_amount is null then cast(amount as real)

    else cast(local_amount as real) / 100.00

    end

    Type-Cast...

  • RE: Help me to write a query

    lmu92 (4/28/2010)


    You'll (hopefully) find your answer over at stackoverflow... πŸ˜‰

    LOL, Lutz πŸ˜€

  • RE: Decimals being Dropped by Update

    In the update statement, divide it by 100.00 .. THen you wil get the 2 point precision..

  • RE: Trying to get the Parent Child details...

    Hey there, the following code will get you what you want

    NOTE : This is not my code, if found it somewhere in this forum; can't remember who coded it. So...

  • RE: Aviod multiple executions

    Wow, nice to hear that my code helped you..Pleasure!

  • RE: How to swap rows to columns

    Yana, here is the code for you.. But i recommend yout to provide your full table definitions etc etc so that we can give u the best possible code..

    IF OBJECT_ID('TEMPDB..#SomeTable1')...

  • RE: Output to view using PIVOT

    jwellington (4/28/2010)


    Your answer did get part of the way, but what I need is the detail you have provided as headings to the columns in the view, and then to...

  • RE: Data Type for fixed-length number?

    You cant control it that way for INT data-types... Do this instead - Make the column INT, create a CHECK CONSTRAINT on that column to allow only integers from 0...

  • RE: Output to view using PIVOT

    My poor soul, got lot of free time these days and i am utilizing it to LEARN..:w00t:

    Now that said, i have given my time in scripting the code for...

  • RE: Output to view using PIVOT

    Hi Buddy,how about you going through this following article and helping us help you?? πŸ™‚

    CLICK HERE FOR FORUM POSTING ETIQUETTES - JEFF MODEN[/url]

    When u do so, i am sure a...

  • RE: Aviod multiple executions

    A year will constitute 12 months. And thats the reason i have done a little tweak to my function. If my code should function as exactly the same as you...

  • RE: Aviod multiple executions

    Hey Jus, thanks for posting the DDLs..

    Here is a gift for you. This does not perform those 12 SELECT statements, but it still does what u wanted..

    Here is the CODE..

    ALTER...

  • RE: Where are you?

    ps. (4/27/2010)


    ColdCoffee (4/24/2010)


    Nice thread, imho!!

    Me born in , une fois par le territoire franΓ§ais (once a french territory) PONDICHERRY, in INDIA! πŸ˜‰

    And now working in chennai (again in INDIA) for...

  • RE: Query to count enties in row and display totals in column

    You're welcome Lee!!

  • RE: Error in indexed view !!!!!!!!

    Bhuvnesh (4/27/2010)


    Adding more info.

    two tables ( [CAMPAIGN] ,CAMPAIGN_CUSTOM_FIELD) exist in one database and other two (CUSTOM_FIELD,LU_CUSTOM_FIELD_TYPE)

    in different database

    FROM BOL

    All base tables referenced by the view must be in...

Viewing 15 posts - 1,651 through 1,665 (of 1,923 total)