Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
colby
Starting Member
6 Posts |
Posted - 2000-11-17 : 00:35:28
|
| have it were it would look like this but want it were it will go period 1, period 2 and so forth until all weeks have ended.how do i put those statement in my sql but will show for all the three statements.want it to look like thisName Week 1 open close Week 2 closed Week 3 open closedand so forth here is sqlSelect count(t.ticket_id) ,s.status_type_name ,a.analyst_first_name ,a.analyst_last_name ,datepart(ww, t.ticket_request_d ) From Ticket t JOIN Requestor r ON (t.req_id = r.req_id) left outer Join Company c ON (c.company_id = r.company_id) Join Analyst a ON (t.assigned_to_id = a.analyst_id) Join Status_type s ON (t.status_type_id = s.status_type_id) Where a.analyst_id = 3 and (ticket_request_d between '01/01/2000 ' and '11/17/2000 ') GROUP BY s.status_type_name,a.analyst_first_name ,a.analyst_last_name ,datepart(ww, t.ticket_request_d) |
|
|
|
|
|