I need to write a query that wil return time booked to a project, grouped by client.
This is not a problem in itself, although I need to return time booked by support staff AND time booked by other staff.
All time booked is stored in the same tables.
I'm just wondering if the most effective/efficient way of doing this would be to have two nested SELECT statments in the FROM clause(one for support staff time, and one for non-support staff time).
and then just return the time portion of each of these in the main query's select statement.
OR, is there a better way of doing this kind of thing?
thanks in advance,
This is not a problem in itself, although I need to return time booked by support staff AND time booked by other staff.
All time booked is stored in the same tables.
I'm just wondering if the most effective/efficient way of doing this would be to have two nested SELECT statments in the FROM clause(one for support staff time, and one for non-support staff time).
and then just return the time portion of each of these in the main query's select statement.
OR, is there a better way of doing this kind of thing?
thanks in advance,