Viewing 15 posts - 1 through 15 (of 23 total)
2 ChrisM@Work
or so
SELECT
[NewValue] = SUM(CASE WHEN OWN = 'PART' THEN BASEDPTH
...
November 5, 2014 at 6:11 am
select ta.*,b.id,b.CreatedDate
from @TableA ta cross apply
(select tb.id,tb.CreatedDate,ROW_NUMBER() over(partition by ta.id order by(abs(DATEDIFF(S,ta.CreatedDate,tb.CreatedDate)))) rn
from @TableB tb ) b
where rn=1
June 10, 2014 at 4:49 am
;with q1 as
(
select d,c
from (values('cse', 200),('it', 250),('eee', 312),('ece', 214),('mec', 337)) as t(d,c)
),
q2 as
( select ROW_NUMBER()over (order by (select null)) rn, d,c
from q1
),
q3 as
(
select 1 as rownum,d,c, c as sumq
from...
June 4, 2014 at 3:20 am
try this
with
q as (select CurrentDateFormat
,case when CurrentDateFormat=0
...
January 18, 2012 at 1:35 am
mic.con87 (1/18/2012)
@ VIG: Received error message'Invalid length parameter passed to the LEFT or SUBSTRING function.'
Probably there is data less than 7 characters
Give me an example of such data,...
January 18, 2012 at 12:40 am
with
q as (select CurrentDateFormat,right(CAST(CurrentDateFormat as varchar(8)),4) +
left(right(CAST(CurrentDateFormat as varchar(8)),6),2) +
...
January 17, 2012 at 12:36 pm
Better late than never 🙂
select cc.ClaCaseID,cc.NameID , cc.IncidentDate
,case when exists (select PaymentStatus
...
January 3, 2012 at 3:15 am
select [ACCOUNT_NUMBER]
,[End_Date]
,[LDC_Account_Num]
from
(select [ACCOUNT_NUMBER]
...
December 30, 2011 at 1:20 pm
ChrisM@home (12/30/2011)
it could still be interpretation. The same three missed payments are captured by two different event rows. The correct solution could be one or the other or both....
December 30, 2011 at 1:10 pm
Sorry,Chris
It was my mistake
select cc.ClaCaseID,cc.NameID , cc.IncidentDate
,case when exists (select PaymentStatus
from
...
December 30, 2011 at 12:21 pm
ChrisM@home (12/30/2011)
Hey VIG, this one's right up your street, been expecting you.Our results differ, I get two positive rows, you get one:
Why ???
ClaCaseIDNameIDIncidentDateMissed
37430 ...
December 30, 2011 at 11:17 am
select cc.ClaCaseID,cc.NameID , cc.IncidentDate
,case when exists (select *
from
...
December 30, 2011 at 10:28 am
DECLARE @time TIME = '20:10:10'
select total_seconds =DATEDIFF(second,0,cast(@time as datetime))
December 30, 2011 at 3:30 am
mikes84 (12/21/2011)
December 21, 2011 at 10:49 am
select [COLUMN]
from dbo.
WHERE [COLUMN] not like '%[A-Z]%' COLLATE Latin1_General_BIN
December 21, 2011 at 9:45 am
Viewing 15 posts - 1 through 15 (of 23 total)