Viewing 15 posts - 1 through 15 (of 29 total)
Mark-101232 (6/27/2012)
SELECT s.ID, s.PDate, score, code
FROM #mytable S ...
June 27, 2012 at 10:59 am
Nevermind 🙂 I worked it out by adding <= for the effective date, and it works perfectly now. Thanks Lynn!
June 26, 2012 at 5:33 pm
Hi Lynn,
I poked around with the code, and added a few records. The main one that is most important is the case where I marked it My New Added record....
June 25, 2012 at 1:33 pm
Thanks Lynn! This looks very close to the results that I need. I'll poke around with it.
June 22, 2012 at 5:31 pm
Lynn, there are only a few that actually are 'Continuously' active though. They have to be active in December 2011, and January, February, March, April, May, and June of 2012...
June 22, 2012 at 11:13 am
Here is a larger code set with some actual data. I need to select only those ID's who have an effective date on or before 12/01/2011, and I need to...
June 22, 2012 at 10:30 am
Lynn Pettis (6/21/2012)
June 21, 2012 at 5:07 pm
I just want the ID as long as it is continuously eligible from let's say January through June.
June 21, 2012 at 4:08 pm
Sorry, the post was posted before I was done with it, and it then posted twice. I've made edits to the post that actually describe my challenge. Thanks!
June 21, 2012 at 3:32 pm
Lynn Pettis (5/16/2012)
May 16, 2012 at 2:27 pm
mldardy (5/11/2012)
I tried both Daniel and burninator's code and it seems to be better but not calculating correctly for the totals. This is probably something I'm doing wrong but...
May 14, 2012 at 1:08 pm
Also found this neat little function, in case you are interested:
create function ProperCase(@Text as varchar(8000))
returns varchar(8000)
as
begin
declare @Reset bit;
declare @Ret varchar(8000);
declare @i...
May 14, 2012 at 1:02 pm
drew.allen (5/14/2012)
themangoagent (5/14/2012)
Is Cross Apply something that can be used on SQL Server 2000 tables?No, it's SQL 2005 or greater.
Drew
Sadness.
At least it will come in handy after these tables are...
May 14, 2012 at 10:54 am
drew.allen (5/10/2012)
There are other issues with your code, though. You should use...
May 14, 2012 at 10:46 am
Hey everyone, thanks for all of your thoughts and ideas. I stripped the code down to the very basic, hitting only 1 table once, but still keeping my parameter but...
May 14, 2012 at 10:39 am
Viewing 15 posts - 1 through 15 (of 29 total)