AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: artidesai — October 6, 2006
    +4 votes
      + -

    A constraint allows you to apply simple referential integrity checks to a table.

    There are four primary types of constraints that are currently supported by SQL Server:

    PRIMARY/UNIQUE - enforces uniqueness of a particular table column.
    DEFAULT - specifies a default value for a column in case an insert operation does not provide one.
    FOREIGN KEY - validates that every value in a column exists in a column of another table.
    CHECK - checks that every value stored in a column is in some specified list

    Each type of constraint performs a specific type of action.

  2. Submitted By: user1 — October 6, 2006
    -2 votes
      + -

    Default is not a constraint.
    NOT NULL is one more constraint which does not allow values in the specific column to be null. And also it the only constraint which is not a table level constraint.

  3. Submitted By: Hotshot — October 6, 2006
    +1 votes
      + -

    Yes, DEFAULT is a constraint as per SQL Server.

    There are five kinds of constraints in all, Primary key, Foreign key, Unique, Check and Default.

  4. Submitted By: bvreddy — October 6, 2006
    +1 votes
      + -

    Along with above constraints also used to drop integrity checks like Primary key, Foriegn key…. when ever Administrator wants.

  5. Submitted By: swapna — November 3, 2006
    +1 votes
      + -

    A constraint is nothing but a conditon that is specified on the database

  6. Submitted By: Tina Nguyen — July 19, 2007
    +1 votes
      + -

    A constraint is a rule that the database manager enforces

  7. Submitted By: Khaled — April 25, 2008
    not yet rated
      + -

    Primary key and Unique key use to uniquely identified a row of a table but
    The difference between primary and Unique constraint is
    Primary key does not accept NULL value
    Unique key accept NULL value

  8. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.