Viewing 15 posts - 2,686 through 2,700 (of 5,504 total)
You need to use XQuery.
Side note: A great resource for several XQuery solutions is Jacob Sebastians blog
DECLARE @tbl TABLE
(
id INT,
col XML
)
INSERT INTO @tbl
SELECT 1,'<Product>
<name>car</name>
<color>red</color>
<type>sedan</type>
</Product>'...
October 20, 2010 at 1:56 pm
Your requirement is not clear.
What do you mean by "auto generate"? Are you looking for some kind of an identity column in a custom format?
To ensure you only have unique...
October 20, 2010 at 1:55 pm
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
Viewing 15 posts - 2,686 through 2,700 (of 5,504 total)