Viewing 15 posts - 1,231 through 1,245 (of 1,923 total)
because u are concatenating Gender with the Date and using this to match RiskStart..
Your @a+@b results in Riskstart = 'M2010-08-25 00:00:00.000'.. is it wat you have it in RiskStart column...
August 26, 2010 at 7:11 am
WayneS (8/26/2010)
ColdCoffee (8/26/2010)
August 26, 2010 at 6:08 am
Ok, i used correlated sub-query to accomplish this task without OVER (PARTITION BY)
Here is the SQL 2000 version of the code (Using the same concept from Peso)
DECLARE @Sample TABLE
...
August 26, 2010 at 12:16 am
WayneS (8/25/2010)
joemai (8/25/2010)
Thank you very much for your help. Yours worked for 2k5 perfectly. Unfortunately, we still had 2k. Is there a way to work around.Minh V.
Edit: Note that...
August 26, 2010 at 12:07 am
WayneS (8/25/2010)
Would you mind posting the name of the bank? I suddenly sense a need to move my accounts! :w00t:
+1
😀 :hehe:
August 25, 2010 at 11:10 pm
This thread will help you out:
http://www.sqlservercentral.com/Forums/Topic739604-360-1.aspx
~Edit : Fixed the IFCodes
August 23, 2010 at 12:50 am
Or,
DATEADD(dd, o, DATEDIFF(dd, 0,GETDATE()))
August 21, 2010 at 4:11 am
Deepthy, write a CLR procedure (essentially a C# code) to perform the "unpack and validate file" logic and call it in your T-SQL procedure..i cant think of a way to...
August 19, 2010 at 11:23 am
Krishnraj (8/19/2010)
Gilamonster...as he said -
Gila is not "HE"... GilaMonster @ Gail Shaw is a girl and SHE is a MVP in SQL Server as well...:-)
August 19, 2010 at 6:31 am
taz, I guess the Stored Procedure with a "lock" icon is a CLR procedure.. Just check the definition of the SP....
August 18, 2010 at 8:38 pm
Try this:
; WITH CTE AS
(
SELECT sum (amt) [SUM] FROM [abc]
)
SELECT T1.ac,T1.bal , T2.[SUM]
FROM [abc] T1
CROSS JOIN CTE T2
WHERE T1.[my_order] = 1
~Edit : Fixed...
August 18, 2010 at 9:41 am
ummfish (8/17/2010)
August 18, 2010 at 2:04 am
Try dynamic SQL.. build your final query using @Flag...
August 18, 2010 at 1:07 am
Viewing 15 posts - 1,231 through 1,245 (of 1,923 total)