Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Ensuring Unique Records in one-many table

$
0
0
Hello all,

A database beginner here. Tried searching but couldn't find the right answer.... :eek:

I have two tables as shown below. In this case, I want it so that I want a unique Dips record for each site for each DipDate.

http://i118.photobucket.com/albums/o...rmis/table.png

That is, I shouldn't have a a record in Dips table with an identical DeliverySite_ID and a DipDate.

How can I accomplish this in an elegant manner? Do I need to rethink how I set up my tables, or does it have to be done through some kind of validation?

Viewing all articles
Browse latest Browse all 13329

Trending Articles