Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

primary key

Discussion in 'Information Technology' started by shar, Jul 28, 2006.

Tags:
  1. shar

    shar
    Expand Collapse
    Guest

    how do you choose a proper field so as to be set as a primary key?
    thanks sharon
     
  2. Loading...

    Similar Threads Forum Date
    Controversial Surat school puts primary kids to agni pariksha Hard Talk Apr 22, 2010
    Singh Teaches Primary Pupils About Sikh Culture Sikh Sikhi Sikhism Jan 31, 2009
    Sikh News Cold wave shuts Punjab primary schools for a week (New Kerala) Breaking News Jan 31, 2008
    A Group Of Scientists Placed 5 Monkeys In A Cage And In The Middle, A Ladder With Bananas Inspirational Stories Apr 6, 2015
    Gurus When Guru Gobind Singh Ji played Hockey (ਪੰਜਾਬੀ) History of Sikhism Apr 13, 2014

  3. Joseph Meehan

    Joseph Meehan
    Expand Collapse
    Guest

    shar wrote:
    > how do you choose a proper field so as to be set as a primary key?
    > thanks sharon


    You would choose or create a field that would be unique for each record.
    That is there is and will not be any duplicates. Normally you would want
    that field to be small, like a number but there is no requirement.



    --
    Joseph Meehan

    Dia duit
     
  4. shar

    shar
    Expand Collapse
    Guest

    "Joseph Meehan" wrote:

    > shar wrote:
    > > how do you choose a proper field so as to be set as a primary key?
    > > thanks sharon

    >
    > You would choose or create a field that would be unique for each record.
    > That is there is and will not be any duplicates. Normally you would want
    > that field to be small, like a number but there is no requirement.
    >
    >
    >
    > --
    > Joseph Meehan
    >
    > Dia duit
    >
    > so if u had 4 fields: product ID, product name, discontinued and Unit price, the obvious ans would be product ID right?
    >
     
  5. shar

    shar
    Expand Collapse
    Guest

    "Joseph Meehan" wrote:

    > shar wrote:
    > > how do you choose a proper field so as to be set as a primary key?
    > > thanks sharon

    >
    > You would choose or create a field that would be unique for each record.
    > That is there is and will not be any duplicates. Normally you would want
    > that field to be small, like a number but there is no requirement.
    >
    >
    >
    > --
    > Joseph Meehan
    >
    > Dia duit
    >
    > so if you had 4 fields say product ID, product name, discontinued and unit price the primary key would be product ID right?
    >
     
  6. Joseph Meehan

    Joseph Meehan
    Expand Collapse
    Guest

    shar wrote:
    > "Joseph Meehan" wrote:
    >
    >> shar wrote:
    >>> how do you choose a proper field so as to be set as a primary key?
    >>> thanks sharon

    >>
    >> You would choose or create a field that would be unique for each
    >> record.
    >> That is there is and will not be any duplicates. Normally you would
    >> want
    >> that field to be small, like a number but there is no requirement.
    >>
    >>
    >>
    >> --
    >> Joseph Meehan
    >>
    >> Dia duit
    >>

    > so if u had 4 fields: product ID, product name, discontinued and
    > Unit price, the obvious ans would be product ID right?


    Likely. You would want to check to make sure there were no duplicates.
    Likely you would want to do that anyway. :)



    --
    Joseph Meehan

    Dia duit
     

Share This Page