Just a quick question regarding a problem I'm having with a query...
In it's shortest summary the problem is simply to narrow down a table that describes an N:N relationship to a 1:1 relation ship...
If the table in question looks like this :
------------------------
ID | userID | shiftID |
------------------------
0 0 A
1 1 A
2 0 B
3 1 B
------------------------
The query would ideally return the following :
------------------------
ID | userID | shiftID |
------------------------
0 0 A
3 1 B
------------------------
(or)
------------------------
ID | userID | shiftID |
------------------------
1 1 A
2 0 B
------------------------
So each "userID" will be distinctly associated with a single "shiftID" and vice versa (each "shiftID" will be distinctly associated with a single "userID")...
This seems like a really simple problem (and one that would be common place) but for whatever reason I can't seem to come up with the results I desire...
Thanks in advance for any help, I'm starting to suffer from this headache
-Brett
In it's shortest summary the problem is simply to narrow down a table that describes an N:N relationship to a 1:1 relation ship...
If the table in question looks like this :
------------------------
ID | userID | shiftID |
------------------------
0 0 A
1 1 A
2 0 B
3 1 B
------------------------
The query would ideally return the following :
------------------------
ID | userID | shiftID |
------------------------
0 0 A
3 1 B
------------------------
(or)
------------------------
ID | userID | shiftID |
------------------------
1 1 A
2 0 B
------------------------
So each "userID" will be distinctly associated with a single "shiftID" and vice versa (each "shiftID" will be distinctly associated with a single "userID")...
This seems like a really simple problem (and one that would be common place) but for whatever reason I can't seem to come up with the results I desire...
Thanks in advance for any help, I'm starting to suffer from this headache
-Brett