473,396 Members | 1,915 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to create a multiple column unique constraint

Dear All,

I want to achieve that the combination of values over multiple columns
in a table are unique.
I know this works for SQL Server, but how do I declare this in an
ACCESS 2000 data base (prefereable in table design ) ?

Any help is welcome

Rolf

Nov 13 '05 #1
1 11981
<Ke*****@ee.nec.de> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Dear All,

I want to achieve that the combination of values over multiple columns
in a table are unique.
I know this works for SQL Server, but how do I declare this in an
ACCESS 2000 data base (prefereable in table design ) ?

Any help is welcome

Rolf


While looking at the design view of the table select View>Indexes from the
menu. Give the new index a name such as MyIndex and add a select a field
(e.g. FirstName) then move your cursor to the cell below and select a second
field (e.g. LastName). Then put your cursor back in the cell containing the
name 'MyIndex' and look at the properties for this index at the bottom left
of this dialog box. Change the Unique proerty to Yes, then close and save
the table.
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: vishal | last post by:
i have one form on which the data is stored in database and suppose the user clicks the back button of browser and again click on submit button then the data will be saved in database again. so...
1
by: js | last post by:
I am trying to create a primary key constraint on a view in the following statement. However, I got an error ORA-00907: missing right parenthesis. If the CONSTRAINT clause is removed, then the...
6
by: christopher.secord | last post by:
Is there any advantage to doing this: ALTER TABLE testtable ADD CONSTRAINT PK_sysUser PRIMARY KEY NONCLUSTERED (UserID) WITH FILLFACTOR = 100, CONSTRAINT IX_sysUser UNIQUE NONCLUSTERED...
6
by: Christopher Harrison | last post by:
Is there a way to store an indefinite number of keys in one field and self join them? Imagine, for example, you have a table of users with a "friends" column. Say user 1 is friends with users 9, 7,...
4
by: David Garamond | last post by:
SQL Server only allow one NULL in a unique constraint column (it's the unique index that does that, so the unique constraint behaves like that too). The question is, what is the best way to...
0
by: BRINER Cedric | last post by:
Synopsis CREATE { TEMPORARY | TEMP } ] TABLE /table_name/ ( { /column_name/ /data_type/ ] | /table_constraint/ } ) ) ] ... ...
0
by: BostonNole | last post by:
Is there a way to create an index (non-unique) constraint on a DataTable column? Here is some code sample I would like to run, but the constraint can not be unique. Dim IDDataColumn As...
3
by: askohen | last post by:
I have this CREATE TABLE statement: CREATE TABLE howto ( id INT IDENTITY(1,1) PRIMARY KEY, title VARCHAR(100) UNIQUE NOT NULL, url VARCHAR(20) UNIQUE NOT NULL, order_on_homepage SMALLINT...
6
by: Alvin SIU | last post by:
Hi all, I have a table in Db2 v8 like this: Team Name Role ------ -------- --------------------- A Superman Leader A Batman Member A WonderWoman Member B ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.