Viewing 15 posts - 1 through 15 (of 41 total)
Thanks very much to you both.
Scott, I'm going to go with yours because I can better understand what it is doing. (By the way, I didn't need the SUM, but...
July 27, 2012 at 3:53 pm
*Stu_ID 11111 doesn't have 15 or more credits on Enr_ID 7765. However, since 11111 has 40 credits associated with Enr_ID 9876, he won't be in the result set.
*22222 does have...
July 27, 2012 at 1:35 pm
Hi Vinu - Thanks for your reply. What is the simpler query? To put make the cte a subquery in the from clause? That is the only thing I could...
July 3, 2012 at 7:20 am
...after rereading Jeff's article over lunch, I realized I can use MAX instead of SUM. So tweaking the THEN clauses, I came up with the below query that works! I...
July 2, 2012 at 12:48 pm
Thanks, Imex. I think that will do it.
July 2, 2012 at 7:30 am
DataAnalyst110 (6/29/2012)
June 29, 2012 at 3:47 pm
Hi Craig - What does the > 0 do in your query? I looked on MSDN to find out what CHARINDEX does. But I haven't seen anything like that in...
June 29, 2012 at 3:30 pm
...I just stumbled upon the DelimitedSplit8K. Looks really good, although I've never seen anything quite like it before. I'm going to push it around in my test environment, but I...
June 29, 2012 at 12:44 pm
...I just wanted to bump my last question one time to see if anyone had suggestions. Thanks!
June 28, 2012 at 3:52 pm
Lowell,
Thank you for the reply - that works perfect! Would you mind explaining how it works. I found a PARSENAME article on MSDN. But you're adding in the REPLACE also....
June 28, 2012 at 12:46 pm
I think that will work. The only variable between the table/query I supplied and the other query I'm working with is the data. For some reason, the cte with a...
June 28, 2012 at 9:13 am
Also - and this is a side question - sometimes SSMS will print 1 row with NULLs when no results are returned. Other times it prints 0 rows. Does anyone...
June 28, 2012 at 7:21 am
Yes, I would like the one above. (The one which returned 0's). Thanks so much for the help.
June 28, 2012 at 7:12 am
I would like to return the value in the PIVOT. If no rows are returned I would like to print 0. If I need to give more details please let...
June 27, 2012 at 4:36 pm
...I went ahead and setup an example (see below). Switching the SUM to COUNT in the below query will print a 0. However, from some reason that isn't working on...
June 27, 2012 at 2:48 pm
Viewing 15 posts - 1 through 15 (of 41 total)