Viewing 15 posts - 181 through 195 (of 431 total)
Would you be able to explain this query for me? I hate to just copy and paste without understanding the code. Also, can this be applied to other calculations such...
October 4, 2016 at 4:28 am
Thanx.
October 4, 2016 at 3:59 am
Thanx. I think this will work.
October 3, 2016 at 11:30 am
It's been one of those days but, yes, this does look good.
October 3, 2016 at 11:30 am
The results of this query show weeks ending for 5/14, 5/21, 5/28. None of these are Fridays. Also, there seem to be multiples. Any thoughts?
October 3, 2016 at 10:10 am
I was expecting to get a row for each Friday since the beginning of the data. Here is an example. I ran each of these weeks separately.
WeekEndingCount
5/13/2016 ...
October 3, 2016 at 9:39 am
I need to get a value for each week, ending with Friday, for the date range.
October 3, 2016 at 9:17 am
Thanx.
October 3, 2016 at 6:54 am
create table #Test
(
ResultValue varchar(30)
)
insert into #Test(ResultValue) values('1.1')
insert into #Test(ResultValue) values('110.1')
insert into #Test(ResultValue) values('90.9')
insert into #Test(ResultValue) values('0.9')
insert into #Test(ResultValue) values('Unable to Calculate')
insert into #Test(ResultValue) values('Unable to Calculate')
insert into #Test(ResultValue) values('1.2')
insert into...
October 3, 2016 at 5:02 am
Yes. I only used * to save on typing. I never use it in practice.
Thanx again.
September 29, 2016 at 6:31 am
Thanx.
declare @StartDate datetime,
@EndDate datetime;
set @StartDate='2016-09-01';
set @EndDate='2016-09-30';
--Get inpatient VisitID's to look up
selectHRVD.SourceID,
HRVD.VisitID,
PADQ.*
from livefdb.dbo.HimRec_VisitData HRVD
inner join livefdb.dbo.PcsAssmntData_Queries PADQ
on HRVD.SourceID=PADQ.SourceID
and PADQ.PcsAssmntDataID = HRVD.VisitID + '{A^GEN.ADMPART2}'
where HRVD.SourceID='BRO'
and HRVD.VisitType_MisRegTypeID='IN'
and HRVD.RegistrationDateTime>=@StartDate and HRVD.RegistrationDateTime<dateadd(day, 1,...
September 29, 2016 at 6:20 am
Would this be the best way? Replace the ???? with left(PADQ.PcsAssmntDataID,21)?
declare @StartDate datetime,
@EndDate datetime
set @StartDate='2016-09-01'
set @EndDate='2016-09-30'
--Get inpatient VisitID's to look up
selectHRVD.SourceID,
HRVD.VisitID,
PADQ.*
from livefdb.dbo.HimRec_VisitData HRVD
inner join livefdb.dbo.PcsAssmntData_Queries PADQ
on HRVD.SourceID=PADQ.SourceID
and HRVD.VisitID=left(PADQ.PcsAssmntDataID,21)
where HRVD.SourceID='BRO'
and...
September 29, 2016 at 6:17 am
like this? What would replace the ???? in the where clause?
declare @StartDate datetime,
@EndDate datetime
set @StartDate='2016-09-01'
set @EndDate='2016-09-30'
--Get inpatient VisitID's to look up
selectHRVD.SourceID,
HRVD.VisitID,
PADQ.*
from livefdb.dbo.HimRec_VisitData HRVD
inner join livefdb.dbo.PcsAssmntData_Queries PADQ
on HRVD.SourceID=PADQ.SourceID
and HRVD.VisitID=PADQ.????
where HRVD.SourceID='BRO'
and...
September 29, 2016 at 6:09 am
Pardon my ignorance but, how do I pass the values? Here is what I have so far. The first query will get me the VisitID's. The second query is what...
September 29, 2016 at 5:56 am
Viewing 15 posts - 181 through 195 (of 431 total)