Viewing 15 posts - 361 through 375 (of 1,241 total)
drew.allen (12/14/2016)
Matt Miller (#4) (12/14/2016)
drew.allen (12/12/2016)
SQLUSERMAN (12/10/2016)
To me the query for the...
December 15, 2016 at 12:39 pm
ChrisM@Work (12/15/2016)
Shekhu (12/15/2016)
Check the below code, ISNULL function should help to resolve this.declare @var INT
select top 10 * from tableName where ColumName= ISNULL(@Var,tableName)
Actually it won't, it's the same problem....
December 15, 2016 at 12:06 pm
I'm with you there 🙂 . The question is a ambiguous as "week" can be interpreted differently. Still had to point out , for anyone who may be looking to...
December 14, 2016 at 12:59 pm
Jacob Wilkins (12/14/2016)
MMartin1 (12/14/2016)
James Tran (12/13/2016)
CREATE FUNCTION [dbo].udfGetWeeksAndDays
(
@StartDate DATETIME
...
December 14, 2016 at 11:54 am
James Tran (12/13/2016)
CREATE FUNCTION [dbo].udfGetWeeksAndDays
(
@StartDate DATETIME
,@EndDate DATETIME
)
RETURNS...
December 14, 2016 at 11:32 am
Seems like the OP got his answer to this old thread.
Plus
DATEDIFF(wk, @StartDate, @EndDate)
Is cleaner and more readable, answers the one question posted here.
December 14, 2016 at 11:25 am
Koen Verbeeck (12/14/2016)
Igor Micev (12/14/2016)
So the answer is not...
December 14, 2016 at 11:09 am
Quick answers,
a) Creating a surrogate key should be a normal routine
b) If there is no business ID (primary key usually) in your source data , try communicating to the...
December 14, 2016 at 10:41 am
Thanks for the feedback Kevin. That looks like a star schema coming together now. What about the account type? That can be an attribute in the account dimension. As far...
December 13, 2016 at 11:06 am
spectra (12/11/2016)
I have run that query ...and I checked those files are not present in the returned physical path result.seems ...I can safely delete those files.
You may want to archive...
December 12, 2016 at 11:51 am
JesseBizInt (12/12/2016)
December 12, 2016 at 11:41 am
I would bet this is the type of situation where the script is easy and fast to run and the fix is complex to where they keep putting it off...
December 9, 2016 at 7:20 pm
exec sp_executesql N'select TherapyAdmin_ID, VisitObservation_ID, 1 as RowVersionNumber from hcs.AdminObservation
where TherapyAdmin_ID in (select TherapyAdmin_ID from hcs.PatientOrder,hcs.TherapyAdmin where PatientOrder.Order_ID=TherapyAdmin.Order_ID
and PatientOrder.PatientVisit_ID=@Parameter1) order by VisitObservation_ID',N'@Parameter1 bigint',@Parameter1=264377212
Do you have any index on...
December 9, 2016 at 6:56 pm
spidey73 (12/6/2016)
December 9, 2016 at 6:34 pm
Referring to the article on the calendar table, you could add a [month] column that would makes this easy for you.
You would create the field and update it by...
December 9, 2016 at 3:57 pm
Viewing 15 posts - 361 through 375 (of 1,241 total)