When we can declare a column as Unique and Not Null both at
the same time. What is the use pf Primary Key then?
Answers were Sorted based on User's Feedback
Answer / thanga prabu.n
Unique Key creates Non-Cluster index in default,
But in Primary Key creates Cluster index in default
Is This Answer Correct ? | 16 Yes | 1 No |
Answer / swapna
The concept of adding an unique key and not null constraint
to a column as well as adding as unique index to it , you
will assume to get the benefits of adding an primary key
to that column.
But use it for the purpose of referential integrity will
not allow to do so.
That's what PK is so useful. You will use it for
normalization purpose.
Is This Answer Correct ? | 12 Yes | 6 No |
how to include numeric values in sql statements? : Sql dba
How do you write an inner join query?
What is delimiter in pl sql?
What is ttitle and btitle?
what is a trigger in mysql? Define different types of trigger. : Sql dba
what is online transaction processing (oltp)? : Sql dba
What is dynamic SQl and how you will create and execute dynamic sql?
What is the use of stored procedures?
Why stored procedure is better than query?
what is the difference between implicit and explicit trigger
what is denormalization. : Sql dba
What is the difference between cluster and non-cluster index?