Viewing 15 posts - 1,651 through 1,665 (of 1,923 total)
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...
April 28, 2010 at 4:03 am
lmu92 (4/28/2010)
You'll (hopefully) find your answer over at stackoverflow... π
LOL, Lutz π
April 28, 2010 at 3:55 am
In the update statement, divide it by 100.00 .. THen you wil get the 2 point precision..
April 28, 2010 at 3:55 am
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...
April 28, 2010 at 3:40 am
Wow, nice to hear that my code helped you..Pleasure!
April 28, 2010 at 3:05 am
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')...
April 28, 2010 at 2:47 am
jwellington (4/28/2010)
April 28, 2010 at 1:54 am
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...
April 28, 2010 at 12:50 am
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...
April 28, 2010 at 12:30 am
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...
April 27, 2010 at 11:52 pm
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...
April 27, 2010 at 11:46 pm
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...
April 27, 2010 at 11:39 pm
ps. (4/27/2010)
ColdCoffee (4/24/2010)
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...
April 27, 2010 at 12:31 pm
You're welcome Lee!!
April 27, 2010 at 8:25 am
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...
April 27, 2010 at 7:46 am
Viewing 15 posts - 1,651 through 1,665 (of 1,923 total)