Viewing 15 posts - 541 through 555 (of 616 total)
Steve Jones - SSC Editor (9/21/2012)
September 25, 2012 at 10:14 am
Hi Chris,
Here is my attempt doing this with a rCTE
;WITH retained AS (
SELECT t.retained, dropped
FROM testing t
WHERE NOT EXISTS (SELECT 1 FROM testing i WHERE i.dropped = t.retained)
UNION ALL
SELECT b.retained,...
September 25, 2012 at 9:43 am
Thanks Chris,
I'm looking at recursive CTEs but I don't think it will work. Well I've been trying for the last couple of hours and it's still not giving the same...
September 25, 2012 at 7:18 am
True... Based on the original sample data it does look like it would work based on maximum id.
See my previous reply to ChrisM.
As I said, I have a working solution...
September 25, 2012 at 6:34 am
ChrisM@Work (9/25/2012)
Hi Abu, thank you for the kind mention - I take it that phase of the project is now concluded.
Hi Chris, not quite! It's a looong story lol .......
September 25, 2012 at 4:59 am
Lynne's solution works if we assume that the retained ID is always the maximum.
But tthe solution doesn't work with the following record set:
drop table dbo.testing
create table dbo.testing (retained int,...
September 25, 2012 at 2:24 am
Nicely done Lynn,
I started doing the CTE but you beat me to it.....
Much appreciated!
September 24, 2012 at 10:32 am
Here is a quick example of how moving the filter from the join to the WHERE clause can have an effect on the result of your queries (if you're using...
September 24, 2012 at 8:39 am
as I said, this one question could last an entire interview.... it all depends on how nasty the interviewer wants to be!
I'm sure some expert will come along now and...
September 21, 2012 at 10:28 am
Thanks for the advice Steve. Please see my comments below:
The way I've done this is I have every server monitor itself. Make a small db (worst case, stick some tables...
September 21, 2012 at 10:17 am
Well I might get shot down for this but here goes nothing.
I'm no expert.. but if someone tells me a database is slow, I would want to check the machine...
September 21, 2012 at 10:07 am
Grant Fritchey (9/21/2012)
Abu Dina (9/21/2012)
You get a phone call from one the users. They tell you the database is slow. What do you do?
You answer that reasonably well, you're hired....
September 21, 2012 at 8:36 am
You get a phone call from one the users. They tell you the database is slow. What do you do?
You answer that reasonably well, you're hired. You start talking junk,...
September 21, 2012 at 8:19 am
Yvan Bouchard (9/19/2012)
Initiallly, you can run the Import Data wizard in SQL which will build and run an SSIS package to import the Access data into SQL,...
September 19, 2012 at 7:58 am
Viewing 15 posts - 541 through 555 (of 616 total)