Viewing 5 posts - 31 through 36 (of 36 total)
Have you tried to use any joins using a charindex or patindex clause such as:
DELETE t1
FROM table1 t1
JOIN table2 t2
...
November 4, 2011 at 6:14 pm
What about using Jeff Moden's Tally table to parse the comma-delimited @Stores parameter. Store the parsed values into a temp table to directly join to the dbo.Stores table.
DISCLAIMER: The sample...
November 4, 2011 at 11:51 am
You may have to clarify what you need, as I am not certain about your exepected end result. I assume you want the "RegNo", along with the four calculated columns....
November 4, 2011 at 11:15 am
One possible method is to create a simple scalar function to return the value.
November 4, 2011 at 10:11 am
I assume you mean to not hard code the column names for the dynamic method. If you did intend to hard-code columns, then you can manually fill in the @tableCols...
November 3, 2011 at 9:40 pm
Viewing 5 posts - 31 through 36 (of 36 total)