Viewing 15 posts - 1,636 through 1,650 (of 1,920 total)
Jinx-640161 (4/29/2010)
The error I get is: Incorrect syntax near '.'.
Can one use a variable like...
April 29, 2010 at 5:04 am
Beuatifully asked question and i-hope-it-is-beautiful code 😀
Here you go
;WITH perid_CTE (ID, c1, c2, c3) AS
(
SELECT ID1, [1] PERIOD1,[2] PERIOD2,[3] PERIOD3 FROM
(SELECT ID1, PERIOD1, ROW_NUMBER() OVER(PARTITION BY ID1 ORDER BY...
April 29, 2010 at 4:49 am
jwellington (4/29/2010)
Thanks for your post. I understand your frustration. Thanks so much for the information you have helped me with so far. It has certainly put me on the...
April 29, 2010 at 1:46 am
Wellington, as i had already asked, i need to see the records in your table (i dont want your orginal data, you may very well cook-up data that looks similar...
April 29, 2010 at 12:39 am
Ok, as you have decided to forgo the date fomat, it becomes my duty to provide you the code that will replace NULL dates with 'N/A'.
Here is that final (presumably...
April 28, 2010 at 11:27 pm
My pleasure, explaining and learning with you, George!
April 28, 2010 at 8:36 pm
Oh Oh.. thats what..i was scratching my head to find this out.. Thanks Peter 🙂
April 28, 2010 at 7:05 am
Peter, i have got one doubt actually.. not related to the OP's request, but general doubt..
in your code , you have given the INSERT statement as
INSERT INTO @MissingNumbers
VALUES (1),(2),(4),(5),(7),(8),(11),(12),(13),(15),(17),(19),(20)
When i...
April 28, 2010 at 6:57 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 28, 2010 at 6:01 am
Yana, you will have to use Dynamic SQL if you are unsure of the start and end dates.. Here is that piece of code..
SET NOCOUNT ON
IF OBJECT_ID('TEMPDB..#SomeTable1') IS NOT...
April 28, 2010 at 5:24 am
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
Viewing 15 posts - 1,636 through 1,650 (of 1,920 total)