stigissimo
Technical User
Can someone help me make a query?
I have a table with a companyid, employee_id and a interest_id,This could look like this:
comp_id...empl_id...int_id
1...............1.................1
1...............1.................2
1...............1.................3
1...............2.................2
2...............8.................1
2...............8.................3
I'am looking employees of companies who are only interested in 1 and 3( in this case only com 2 empl 8, and not com 1 empl 1). I'am also looking for employees of companies who are only interested in id 2(that would be only com 1 empl 2)
I hope someone can help me with this.
Kind regards
Erik
I have a table with a companyid, employee_id and a interest_id,This could look like this:
comp_id...empl_id...int_id
1...............1.................1
1...............1.................2
1...............1.................3
1...............2.................2
2...............8.................1
2...............8.................3
I'am looking employees of companies who are only interested in 1 and 3( in this case only com 2 empl 8, and not com 1 empl 1). I'am also looking for employees of companies who are only interested in id 2(that would be only com 1 empl 2)
I hope someone can help me with this.
Kind regards
Erik