bcahillane
Technical User
Here is a simplified view of the tables and fields relevant to my query:
Table: Workorder
Fields: workorderid (key), requesterid
Table: Workorderstate
Fields: workorderid (key), technicianid
Table: User
Fields: userid(key), name
Workorder and Workorderstate are related by workorderid. Requesterid is related to userid. Technicianid is also related to userid. I am bound to using this table and relation structure.
I would like a query that pulls all workorderid's and lists the related technician's name and requester's name. My problem is that I do not know how to pull the name field from user twice in one query where one instance refers to the technician and another refers to the requester.
Table: Workorder
Fields: workorderid (key), requesterid
Table: Workorderstate
Fields: workorderid (key), technicianid
Table: User
Fields: userid(key), name
Workorder and Workorderstate are related by workorderid. Requesterid is related to userid. Technicianid is also related to userid. I am bound to using this table and relation structure.
I would like a query that pulls all workorderid's and lists the related technician's name and requester's name. My problem is that I do not know how to pull the name field from user twice in one query where one instance refers to the technician and another refers to the requester.