I'm writing a query that consists of an expense approval sumission table, an approver table, and an associative table connecting the two. Some submissions have two approvers, and some have only one. The way my query works right now, I get two duplicate rows, except for the approver field, when there are two aprovers:
SubmissionID SubmitDate Approver
------------ ---------- --------
999999999999 09092002 Bill
999999999999 09092002 Bob
I would like this data to just come out like this:
SubmissionID SubmitDate Approver 1 Approver 2
------------ ---------- ---------- ----------
999999999999 09092002 Bill Bob
Right now I just have a standard select/from/where structure. I'm guessing I might have to change that up. Does anyone know what I'm going to have to do?
SubmissionID SubmitDate Approver
------------ ---------- --------
999999999999 09092002 Bill
999999999999 09092002 Bob
I would like this data to just come out like this:
SubmissionID SubmitDate Approver 1 Approver 2
------------ ---------- ---------- ----------
999999999999 09092002 Bill Bob
Right now I just have a standard select/from/where structure. I'm guessing I might have to change that up. Does anyone know what I'm going to have to do?