Viewing 15 posts - 1 through 15 (of 44 total)
thx - kinda looking for some t-sql code/script to do this. Any ideas? 🙂
May 11, 2013 at 4:48 pm
Hi, thx for your reply.
What I want was that @Type would be only 1 parameter, and all the selected values/choices would be part of @Type.
@Type=A or B or C
A= AND...
March 29, 2013 at 7:29 am
Thx. Yeah, I wanted to do that, but guess what, the db is suddenly in the middle of restore (prod to dev nightly), so I'll have to wait until...
December 13, 2011 at 1:41 am
Thanks!! I have an issue with this part you added:
inner join dbo.people p with(nolock)
on r.people_id = p.people_id
You'd think there'd...
December 13, 2011 at 1:35 am
Here you go sir! THANKS! Cool, never used that feature....
December 13, 2011 at 12:57 am
OK, so how would I post the Execution Plan here? (Let me think)
The plan indicates the Sort operation is 89% cost of the query, 8% Index Seek, etc.
Any general...
December 13, 2011 at 12:45 am
I posted, and then edited to cut and paste - you're too quick! See my solution in the previous thread.
August 19, 2011 at 2:11 pm
Thanks, Sean! That is a valid solution I thought of. I wanted a single query pass. I essentially figured it out using OVER(). I was...
August 19, 2011 at 2:08 pm
No takers?
August 19, 2011 at 10:28 am
Thanks, all! Yeah, the rule is where execution count > 1
June 29, 2011 at 8:07 am
Thanks. Which part sounds right? The first where last_elapsed > avg_elapsed, or where last_elapsed > ~previous avg_elapsed? THx
June 29, 2011 at 7:41 am
Thank you, Jeff! I see quite a lot of activity around my post (which doesn't really have anything to do w/my original question 🙂 But, I am quite...
June 13, 2011 at 8:47 am
Thx for the quick reply. That was kinda silly - I thought I tried that, but works 🙂
I did want to ask a follow-up, is it possible to...
June 12, 2011 at 7:43 am
Sorry for the misconfusion, Wayne! In the heat of having to finish these, and not having the source system available I had to take a leap of faith and...
June 1, 2011 at 1:23 pm
I don't have the source system right now, but based on our test environment, I think this might be the answer:
SELECT Year, Month, Week, PeriodBegin,PERIODEND, COUNT(task_id) AS No_of_Issues
FROM
(
SELECT DATEPART(YEAR,create_time) Year,...
June 1, 2011 at 12:20 pm
Viewing 15 posts - 1 through 15 (of 44 total)