Viewing 15 posts - 901 through 915 (of 4,081 total)
Sorry, but from reading your text description, I have no idea what you are trying to accomplish. Could you please show some examples?
November 27, 2011 at 8:01 pm
Here is the query to give you the results you want.
I assume you can write the stored procedure to pass in a parameter to a WHERE clause.
;with...
November 26, 2011 at 10:49 pm
Is there an upper limit to how many descriptions might have to be concatenated?
If so, how many? 10? 20? 100? 1000?
November 24, 2011 at 8:27 pm
Glad it's working for you. I just hope you don't have too many rows in these user tables, because that is NOT going to scale well.
November 23, 2011 at 10:58 pm
You're welcome. I'm sure you'll find enough to get you started, but don't hesitate to come back if you have specific questions.
By the way, PIVOT is an...
November 23, 2011 at 5:07 pm
Sorry to take so long. My daughter called from NZ and she gets priority 🙂
Anyway, I think this will give you the results you want. Use...
November 23, 2011 at 4:50 pm
But the IDs should remain the same, only the sort value will change on each row. Right?
November 23, 2011 at 2:39 pm
I think I understand the problem now. He wants the [Sort] columns for all rows with a number equal to or greater to the "moved" row to be...
November 23, 2011 at 2:37 pm
What troubles me is the idea that you are trying to store rows in a specific order in a table. This isn't a spreadsheet or a flat file,...
November 23, 2011 at 2:27 pm
The output you want is commonly referred to as a PIVOT or cross-tab ("crosstab"). If you'll search this site using those terms, you'll find plenty of examples....
November 23, 2011 at 2:14 pm
:crazy:
November 18, 2011 at 12:30 pm
We need some use cases. Please post up what your current source table(s) look like and the query as it has been developed so far. ...
November 15, 2011 at 1:42 pm
It helps to remember that CASE is an expression, not a statement.
CASE is basically like a function with "if logic" built in, a more powerful version of ISNULL() or COALESCE().
November 15, 2011 at 1:36 pm
drew.allen (11/9/2011)
November 9, 2011 at 11:59 am
Viewing 15 posts - 901 through 915 (of 4,081 total)