Viewing 15 posts - 1 through 15 (of 70 total)
Hi,
Try:
select
RowNum,
Inputstring,
case when patindex('%[AR]%', Inputstring) = 0
then...
October 20, 2020 at 6:09 pm
Try:
select colA1, colA2, colA3, colA4, colA5, colB2
from tableA A
left join tableB B on A.ColA1 = ColB1
where
colA4 = 'case' and
(ColB1 is...
July 23, 2015 at 11:18 am
Hi,
Try a test using Pivot. Ex:
select
PersonID,
[Woke Up] as WakeUpTime,
[Had Breakfast] as BreakFastTime,
[Got Dressed] as...
July 1, 2015 at 7:00 am
Hi,
Try something like this:
SELECT
a.ParentObject,
STUFF( (SELECT DISTINCT
...
June 25, 2015 at 9:01 am
Try:
with CTE_Min as
(
select MIN([Timestamp]) as [Timestamp] from Spec1
)
select
s.*,
DATEADD(MILLISECOND,
...
June 19, 2015 at 8:25 am
Try something like this:
with CTE_RN as
(
select
[Week],
[Month],
...
June 18, 2015 at 12:09 pm
Try:
FOR XML PATH(''), TYPE).value('.', 'varchar(max)')
,1, 1, '')
instead
...
June 15, 2015 at 1:40 pm
Hi,
Try:
SELECT
count(hc),
CS,
S_W,
COUNT(case when Reg_Temp = 'Reg' then 1 end) as [RegOnly]
FROM...
June 15, 2015 at 12:58 pm
Try s.AIMS_Preop_Concept_ID instead preop.AIMS_Preop_Concept_ID.
June 15, 2015 at 12:53 pm
Try:
SELECT
preop.Case_ID,
STUFF( (SELECT ',[' + s.Name + ']'
FROM dbo.TBL_Preop as s
...
June 15, 2015 at 12:21 pm
I do not know if I understand correctly but try:
SELECT
MHD_MONTH_SHEET.Calender_Date AS Expr2,
Pay_Emp_Master.Emp_Code AS Expr3,
Pay_Emp_Master.Dept_Code...
June 14, 2015 at 12:29 pm
Try:
where
MSDate < DATEADD(MONTH,
6,...
May 19, 2015 at 11:21 am
Hi,
Try:
with
CTE_Months as
(
select DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0) as MonthYear
...
May 13, 2015 at 8:41 am
Hi,
Try using Cross Apply:
SELECT
-- ...
a.LastVisitDate,
a.LastVisitDesc
FROM -- ...
CROSS APPLY
(
Select Top(1) a.dbPatApptTime as LastVisitDate, a.dbSchTypeDesc as LastVisitDesc
from appointments as a
where a.dbPFStatus = 1 and a.clientref = p.clientref
order by a.dbPatApptTime desc
) as a
WHERE...
March 24, 2015 at 7:01 am
Try something like this:
with CTE_RN as
(
select
FromDate,
ToDate,
...
February 23, 2015 at 12:50 pm
Viewing 15 posts - 1 through 15 (of 70 total)