Viewing 15 posts - 3,361 through 3,375 (of 4,087 total)
You have a value for BID in your C table that doesn't have a corresponding value for BID in your B table. The best way to resolve this is...
January 18, 2012 at 12:16 pm
SQL Kiwi (1/12/2012)
What is exactly your point?
My point is that it's not only possible, but extremely likely to read your comments as recommending using an rCTE for new development for...
January 12, 2012 at 12:38 pm
SQL Kiwi (1/12/2012)
drew.allen (1/12/2012)
...the OP doesn't have ANY code in place and is looking for the best solution...
The thread starter was not Bob Cullen (the chap playing around with an...
January 12, 2012 at 9:23 am
SQL Kiwi (1/12/2012)
You've missed the point I was making, and have chosen to assume that I am either (a) not aware of the performance issues involved; or (b)...
January 12, 2012 at 8:06 am
drew.allen (1/11/2012)
I think it's actually even simpler.
SQL Kiwi (1/11/2012)
That has a different semantic though. Example:
That's true, but this statement from the original poster sounds like the GROUP BY is...
January 11, 2012 at 3:04 pm
SQL Kiwi (1/11/2012)
Greg Snidow (1/11/2012)
The 'B' shows up no matter what I put in for the length parameter of CHAR. I still don't know what it means.
So 'B' is...
January 11, 2012 at 1:44 pm
I think it's actually even simpler.
SELECT StudentID, Programme, Min([Year]) AS [Year]
FROM #Students
GROUP BY StudentID, Programme
HAVING Min([Year]) = 2009
You may not even need the HAVING clause depending on what you are...
January 11, 2012 at 1:33 pm
SQL Kiwi (1/11/2012)
January 11, 2012 at 8:51 am
SQL Kiwi (1/11/2012)
drew.allen (1/11/2012)
Bob Cullen-434885 (1/10/2012)
I started to look at an alternative approach, using a recursive CTE to generate a continuous list of dates that covered the report range
Jeff Moden...
January 11, 2012 at 7:46 am
Bob Cullen-434885 (1/10/2012)
I started to look at an alternative approach, using a recursive CTE to generate a continuous list of dates that covered the report range
Jeff Moden has an article...
January 11, 2012 at 6:51 am
GSquared (1/9/2012)
January 9, 2012 at 3:15 pm
halifaxdal (1/9/2012)
Table 1: has...
January 9, 2012 at 2:53 pm
This is sometimes done using a trigger, but you may not have rights to create a trigger on the table being updated. Another option is to use the OUTPUT...
January 9, 2012 at 1:53 pm
ChrisM@home (1/5/2012)
You've lost me Drew - I understand that the query I posted is incorrect, but how does the (theoretical) sample data I posted violate normalization?
I didn't notice that you...
January 5, 2012 at 12:58 pm
CELKO (1/5/2012)
But IDENTITY is a sequential count of insertion attempts. PHYSICAL insertion attempts. Not a LOGICAL concept at all. So how do you number these rows?
You're confusing what IDENTITY is...
January 5, 2012 at 12:35 pm
Viewing 15 posts - 3,361 through 3,375 (of 4,087 total)