Viewing 10 posts - 16 through 26 (of 26 total)
I did not realize the order didn't matter in the 'top' select statement.
I guess I just don't know data mining that well (obviously I'm a newb in the newb forum),...
February 1, 2011 at 5:30 am
But I cannot do "select 1,2,3,top(100)4"...
The 'top' portion has to be #1 in the select statement, no?
At least when I try to do "select 1,2,3,top(100)4" it gives me an 'incorrect...
February 1, 2011 at 4:36 am
Well, I've never started a query with anything other than 'select'! 🙂
So I don't quite get:
;With OrderSet (DrugID, OrderSetID, OrderID)
As (
but, I...
January 30, 2011 at 12:30 am
Oops, I got it! Don't use EXISTS I guess. If I end the query with
"where x.DrugID in (etc.)" it works!
Yay, good stuff, nice and pretty now. I...
January 29, 2011 at 5:39 am
Thanks for the 'union all' piece. But I don't know how to use it exactly. I can get all the info in 3 columns, so that's nice! ...
January 28, 2011 at 11:41 pm
It does help me, thank you both.
I can look at the complete code and break it down backwards and understand fairly well what it is doing. It's like a...
September 16, 2010 at 9:42 am
TY guys for the help. Celko, your code worked for what I was looking for. I do not understand the "DENSE_RANK() OVER" portion or how you referenced a...
September 15, 2010 at 8:45 am
CELKO (9/14/2010)
September 14, 2010 at 2:40 pm
Well, you guys are much better than me at this stuff. I need to query the table given to me, not create one, and I kinda get lost in...
September 14, 2010 at 9:23 am
but i cannot do "select 'a' and then 'union all' for millions of rows!
is there no other way?
September 12, 2010 at 5:51 pm
Viewing 10 posts - 16 through 26 (of 26 total)