M
Matthew
Hello,
Here's my structure:
tblClients
*ClientID
....
tblAddresses
*AddressID
....
tblClientAddresses
*ClientAddressID
ClientID
AddressID
Preferred (y/n)
I want to make sure that every client has no more than one preferred
address. I've identified those with more than one preferred, and it's a
small enough number that I can clean that up manually.
But what about clients who have one or more addresses, but none are marked
as preferred? How can I make sure that each unique client in
tblClientAddresses has at least one (and preferably only one) of their
addresses marked as Preferred?
Many thanks in advance!!
Matthew
Here's my structure:
tblClients
*ClientID
....
tblAddresses
*AddressID
....
tblClientAddresses
*ClientAddressID
ClientID
AddressID
Preferred (y/n)
I want to make sure that every client has no more than one preferred
address. I've identified those with more than one preferred, and it's a
small enough number that I can clean that up manually.
But what about clients who have one or more addresses, but none are marked
as preferred? How can I make sure that each unique client in
tblClientAddresses has at least one (and preferably only one) of their
addresses marked as Preferred?
Many thanks in advance!!
Matthew