Viewing 15 posts - 2,686 through 2,700 (of 5,502 total)
What would be your expected result if there are more than one row per id where either one row has the value 9999.9999 or all rows or sum = 9999.9999...
October 20, 2010 at 1:37 pm
I noticed this is at least the 4th thread you opened on the very same issue (with minor changes to the required output but all requests are related to the...
October 20, 2010 at 1:33 pm
I strongly recommend NOT to use a VARCHAR() column to store date information (including not using a lenght of 12 when you know there's always a lngth of 3...) :pinch:
It...
October 20, 2010 at 1:13 pm
Here's my approach.
I took a while since I had to figure out how the calcualtion is done...
If my reverse-engineering failed you have to modify the aggregation to meet your requirement....
October 20, 2010 at 12:26 pm
PaulB-TheOneAndOnly (10/19/2010)
LutzM (10/16/2010)
Before going any further I'd like to know the true reason why you don't use the simple DELETE statement.
Well... imagine we are in the year 2030 and...
October 20, 2010 at 10:22 am
sqwasi (10/19/2010)
October 19, 2010 at 4:40 pm
I'm not sure if the c.u.r.s.o.r. will provide the results you're looking for...
It would really help a lot if you could provide some more details (table def, sample data and...
October 19, 2010 at 4:20 pm
Cldewar (10/19/2010)
LutzM (10/19/2010)
Cldewar (10/19/2010)
I encountered a problem where...
October 19, 2010 at 4:13 pm
Well, when using a *cough* c.u.r.s.o.r. you're processing one row at a time (also called RBAR - row by agonizing row). SQL Server is optimized to deal with sets. A...
October 19, 2010 at 4:04 pm
jaffrey (10/17/2010)
LutzM (10/16/2010)
jaffrey (10/16/2010)
Before going any further I'd like to know the true reason why you don't use the simple DELETE statement. Also, please describe the business case you're working...
October 19, 2010 at 3:32 pm
Cldewar (10/19/2010)
I encountered a problem where the delete...
October 19, 2010 at 3:28 pm
Option 1:
move the FETCH part from the IF section to the outer section.
So, instead of
if (@ProfCOD1 <> 'YES')
...
October 19, 2010 at 3:24 pm
I'm very sorry, but the main reason you didn't get an answer yet is still an incomplete requirement: We have the table and the data in a ready to use...
October 19, 2010 at 2:58 pm
Unfortunately, your sample data cannot be used since there are a few tabl DDL missing. Please modify.
October 19, 2010 at 2:33 pm
It looks like it's possible to replace one or two of the UNION with a CASE statement.
It also migt be a good idea to use the "divide'n'conquer" method, meaning to...
October 19, 2010 at 2:26 pm
Viewing 15 posts - 2,686 through 2,700 (of 5,502 total)