Viewing 15 posts - 1 through 15 (of 20 total)
Thanks for your suggestions guys.
Personally, I create all the databases out of TSQL code and check the code into a source control management system
That's pretty much what that link suggests,...
December 4, 2008 at 1:08 pm
Well..think I'm going to end up using scripting -
http://www.eggheadcafe.com/software/aspnet/29255866/copy-database-with-only-s.aspx
where you simply create a copy of the database structure. Not the ideal solution, cos it'll possibly be a pain...
December 3, 2008 at 8:31 pm
hmm..that definitely sounds like a neat approach! Unfortunately I don't have any knowledge on creating triggers and advanced techniques like the ones you've suggested..but I'll certainly do a bit of...
December 3, 2008 at 8:05 pm
That'll mean maintaining multiple copies of SQL eh? If we need to make a slight change to a script, or even add some new script, that means it needs to...
December 3, 2008 at 7:19 pm
Oh sorry..I used this inside a UDF so that I can easily pass in different thresholds I need. Just use:
declare @minHighBpsReqd int = 3, @minSysThresh int = 130, @minDiaThresh int...
November 25, 2008 at 7:31 pm
Well, we are doing retrospective quality audit..so it really depends on how far back we want to extract the data. At the moment it's a single practice with roughly 18-months...
November 25, 2008 at 7:29 pm
Ah..great. Thanks Steve! It seems to work just fine. It was taking about 14s to run on the full table I've got with ~14k records, but then I filtered out...
November 25, 2008 at 3:27 am
Hi guys
Just letting you know that I did manage to write some sequential code to do this. Don't think you can simply do it in a single sql statement..so I...
November 23, 2008 at 3:25 pm
Sorry for not explicitly stating my grouping requirements Steve. In the initial post I did mention:
I want to identify sequences where SYS>=130 and DIA>=80 for all the different patients. So...
November 21, 2008 at 4:02 pm
Initially I was thinking of an output like:
ID, MESDATE1, SYS1, DIA1, MESDATE2, SYS2, DIA2, MESDATE3, SYS3, DIA3
but I'm thinking that's a bit harder to do in SQL itself. Will be...
November 21, 2008 at 2:31 pm
Thanks guys. Appreciate your help.
hmm..I just tried both solutions and seems like both are close, yet there're a few issues 🙁
With Jerry's solution with temp tables, it kinda seems...
November 21, 2008 at 1:54 pm
Oh..sorry for the confusion. It wasn't really a missing row as such..but just a blank line I added to show the end of that particular patient who had a bunch...
November 20, 2008 at 3:39 pm
Thanks for the response Jerry. I'll try to clarify the problem further with a slightly different data set:
Here's some raw data:
DECLARE @BPTable TABLE (
MMID varchar(10),
MESDATE date,
SYSTOLIC int,
DIA int
)
INSERT @BPTable (MMID,...
November 20, 2008 at 1:19 pm
Thanks for the quick feedback Matt. Your 1st suggestion certainly helps. The criteria table itself is not entirely static cos we want to be able to say "these are the...
September 25, 2008 at 4:16 pm
Thanks guys. I wasn't exactly sure what Matt meant by a 'criteria' table though. The problem is the lists are created based on selected user inputs, which is why I...
September 25, 2008 at 3:25 pm
Viewing 15 posts - 1 through 15 (of 20 total)