Results 1 to 4 of 4

Thread: Create a composite key in Microsoft Access

  1. #1
    Join Date
    Apr 2009
    Posts
    79

    Create a composite key in Microsoft Access

    I need to have duplicate values in my ms access table. There are two different table with composite key and primary key. Can you explain me the difference between Composite Keys and Primary and Secondary keys?

  2. #2
    Join Date
    Dec 2008
    Posts
    371

    Re: Create a composite key in Microsoft Access

    In relational database design, a unique key or primary key is a candidate key to uniquely identify each row in a table. A unique key or primary key comprises a single column or set of columns. A composite key is a primary key that consists of more than one column. Oracle will create a composite primary key index on the table to implement and enforce the composite key.

  3. #3
    Join Date
    May 2008
    Posts
    4,345

    Re: Create a composite key in Microsoft Access

    To create composite key in table, select table design mode and select first key field and after that hold CTRL key and select second key field. After you select both the field, click on the key icon to add composite key in your table.

  4. #4
    Join Date
    May 2008
    Posts
    4,570

    Re: Create a composite key in Microsoft Access

    Composite key can declare or define as given in following example :


    LINE_ITEMS table may have a composite key on {empid, empnumber}:
    CREATE TABLE line_items (
    empid NUMBER,
    empnumber NUMBER,
    branchId NUMBER,
    age NUMBER,
    PRIMARY KEY (empid, empnumbe));

Similar Threads

  1. How to create a toolbar in Microsoft Access?
    By Flaco in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 02:35 AM
  2. Replies: 7
    Last Post: 27-11-2009, 12:31 AM
  3. How to create access clear button in the form using MS ACCESS
    By T0tal L0$$ in forum Software Development
    Replies: 3
    Last Post: 09-06-2009, 10:59 AM
  4. Replies: 5
    Last Post: 18-04-2009, 12:42 AM
  5. Microsoft Image Composite Editor 1.2 to create Panoramic Images
    By WindowsUser in forum Windows Software
    Replies: 1
    Last Post: 04-12-2008, 05:09 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,260,899.75084 seconds with 17 queries