What I want to do is show the average number of minutes a technician has worked on each ticket, but only where the average is greater than or equal to the overall average minutes per ticket. But you can't use avg on datetime.
I know this is quite wrong, but this is what I'm starting with:
select user_firstname + ' ' + user_lastname as technician_name,
avg(ticket_requestdate - ticket_closeddate) as average_minutes_per_ticket
from hd_users
join hd_tickets on ticket_requestor_id=user_id
where user_is_technician = '1'
having avg(ticket_requestdate - ticket_closeddate) >=
(select avg(ticket_requestdate - ticket_closeddate) from hd_users)