Viewing 15 posts - 11,521 through 11,535 (of 15,376 total)
How about some ddl and an explanation of what you are trying to do?
June 22, 2012 at 7:55 am
Angitha (6/21/2012)
Someone pls help me....how to find grand total in a separate field using pivot table?
You should start your own thread instead of jumping onto another one.
Before you start...
June 22, 2012 at 7:50 am
vs.satheesh (6/22/2012)
No Brother ,,,Its secrity related Question only....
The point is that you have a thread trying to resolve this already. If you just start a new thread it fragments the...
June 22, 2012 at 7:46 am
But what is the error message?
June 22, 2012 at 7:41 am
Take a look at the links in my signature about cross tabs. The first one covers PIVOT and some alternative ways to do the same thing. The second one talks...
June 22, 2012 at 7:39 am
SQL_Kills (6/22/2012)
Thanks for your advice so far and what you have shown me.
The table you created QuestionFieldsNormalized was what the table originally looked like that when pulling the data from...
June 22, 2012 at 7:15 am
etirem (6/21/2012)
Also..the software need to identify the objects while typing.
Do you mean intellisense? There is a version built into SSMS 2008 but...it is less than optimal. Redgate sql prompt is...
June 21, 2012 at 3:26 pm
OK so once we have this somewhat normalized this type of data manipulation becomes a whole lot more manageable.
Something like this produces the desired results from your sample data.
declare @MappedField...
June 21, 2012 at 3:20 pm
At the very least you should normalize your EAV pairs. This is worst of the two worst data structures combined into a single table. This just makes we want to...
June 21, 2012 at 3:11 pm
Lynn Pettis (6/21/2012)
Sean Lange (6/21/2012)
Can you explain the rules behind why ID 1 returns 1 value and ID 5 would return 2?
Because there are two columns with the value...
June 21, 2012 at 3:03 pm
sql1411 (6/21/2012)
Thanks Sean. This helped me to get what I was looking for now. I'll keep your suggestion for the future posts.Once again thanks so much
You are very welcome. Glad...
June 21, 2012 at 3:01 pm
Can you explain the rules behind why ID 1 returns 1 value and ID 5 would return 2?
June 21, 2012 at 2:43 pm
ScottPletcher (6/21/2012)
Is there a sql statement that could turn it into this?
Yes, look at PIVOT as well.
Check out the articles, they discuss pivot as well. 😛
June 21, 2012 at 2:41 pm
First things first...I formatted this so myself and others can read it. You can help the legibility of your long code posts better by using IFCode shortcuts.
<-- They are...
June 21, 2012 at 12:38 pm
Yes there is. Take a look at the cross tabs articles referenced in my signature.
June 21, 2012 at 12:35 pm
Viewing 15 posts - 11,521 through 11,535 (of 15,376 total)