In response to
"Simple queries aren’t bad…more complex things get tricky quick -- nm"
by
Will Hunting
|
it's like this..
Posted by
colin (aka colinski)
Aug 2 '22, 19:18
|
this is the code for new tickets per week for a specific customer. this then populates the rest of the report section that lets me build tables, etc. it seems fairly simple in that it just pulls in the right columns then i work with how it looks outside of the code.
select
faultid as [Ticket ID]
, convert(date,dateadd(week, datediff(week, 0, dateoccured), 0)) as [Week Commencing]
, username as [User]
, symptom as [Summary]
, aareadesc as [Customer]
from
faults
join area on aarea=areaint
where
dateoccured > @startdate
and dateoccured < @enddate
and requesttypenew in (select rtid from requesttype where rtisproject=0 and rtisopportunity=0)
|
Responses:
|