Hi,
I have jobs, jobapprover table. Job submitter can be a approver for another job. i.e one to many relationship with these fields
JobID SubmitterEmail JobName
1 aaa@company.com job1
2 bbb@company.com job2
3 abc@company.com job3
4 cdc@company.com job4
2nd table jobapprover
JobAssignedid jobid approveremail
1 1 approver1@compa ny.com
2 2 aaa@company.com
3 1 approver2@compa ny.com
4 4 aaa@company.com
I want the result set i.e i will be passing email address
ex: aaa@company.com email i want the record he submitted and the job assigned to him in a single query
JobID JobName Email
1 job1 aaa@company.com
2 job2 aaa@company.com
4 job4 aaa@company.com
I have jobs, jobapprover table. Job submitter can be a approver for another job. i.e one to many relationship with these fields
JobID SubmitterEmail JobName
1 aaa@company.com job1
2 bbb@company.com job2
3 abc@company.com job3
4 cdc@company.com job4
2nd table jobapprover
JobAssignedid jobid approveremail
1 1 approver1@compa ny.com
2 2 aaa@company.com
3 1 approver2@compa ny.com
4 4 aaa@company.com
I want the result set i.e i will be passing email address
ex: aaa@company.com email i want the record he submitted and the job assigned to him in a single query
JobID JobName Email
1 job1 aaa@company.com
2 job2 aaa@company.com
4 job4 aaa@company.com
Comment