Need help with the following, fairly new to sql.
The inner join is not working correctly because the transactiondate has an actual time and the fulldate has all zeros so I just want to join on the dates, how do I strip off the time and accomplish this????
select
r.startcall,
r.skillset,
r.transactiondate,
r.calltime,
d.fulldate,
d.dayofweek
from
dbo.vw_reportinginboundcalldata r
inner join dbo.dim_date d on r.transactiondate = d.fulldate
where
r.startcall between '08/01/2010' and '08/07/2010' and
r.skillset = 'GRAYS' and
r.calltime not like 'After%' and
d.dayofweek in ('2','3','4','5','6')
The inner join is not working correctly because the transactiondate has an actual time and the fulldate has all zeros so I just want to join on the dates, how do I strip off the time and accomplish this????
select
r.startcall,
r.skillset,
r.transactiondate,
r.calltime,
d.fulldate,
d.dayofweek
from
dbo.vw_reportinginboundcalldata r
inner join dbo.dim_date d on r.transactiondate = d.fulldate
where
r.startcall between '08/01/2010' and '08/07/2010' and
r.skillset = 'GRAYS' and
r.calltime not like 'After%' and
d.dayofweek in ('2','3','4','5','6')