Jump to content

Unique Question


bschultz

Recommended Posts

I need to set up a DB so that only one entry can be made per time period (period's are set each half hour...) for each corporate entity.

 

So, for 1:00am, I can only have 1 entry in the DB for Business A, one entry for Business B, and one entry for Business C

 

The DB structure is as such:

 

row_number (primary key, auto increment)

date (varchar) - - - by the way, this isn't really a date, but a name (eve for Christmas eve, day for Christmas day)

time (varchar) - - - entries will be from a form select of each half hour...12:00am, 12:30, 1:00am...etc)

station (varchar) - - - this is where I need a unique field...I can only have have one match for station...for each TIME

 

How can I set up these unique columns?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.