Viewing 15 posts - 11,521 through 11,535 (of 15,381 total)
Not the best for performance because it isn't sargable but this should work.
;with Nums(Num)
as
(
select 100.00 union all
select 200.00 union all
select 350.01 union all
select 235.07 union all
select 38.10 union all
select 4.006...
June 22, 2012 at 8:46 am
Then you will need to become familiar with date routines.
Lynn has some great ones here. http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/%5B/url%5D
You can use that to figure out your starting date. Then you just need...
June 22, 2012 at 8:26 am
sunshine-587009 (6/22/2012)
I'm trying to get the last update statement to work and it is not work for me. I receive errors on the join. Any help appreciated!
Results I'm looking...
June 22, 2012 at 8:23 am
Koen Verbeeck (6/21/2012)
Lynn Pettis (6/21/2012)
OMGPlease, I really hope this person was joking.
Oh god not him.
He's the most important reason I have such a high post count. Trying to help him...
June 22, 2012 at 8:11 am
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
Viewing 15 posts - 11,521 through 11,535 (of 15,381 total)