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 |
What will you get by the cursor attribute sql%notfound?
When is the update_statistics command used?
How is Oracle 10g helpful when compared to oracle 9i and what is grid computing
Difference between IN and EXISTS
one of the column in my table contains the data like SAL ---- 1000 1000 2000 3000 3000 So my requirement is i want output like SAL --- 1000 2000 3000 it mean i want to delete duplicate rows only how should u write query?
what are properties of a transaction? : Sql dba
What is the best strategy to use COMMIT in a pl/sql loop?
What are the syntax and use of the coalesce function?
What are the advantages of pl sql?
what is difference between decode and case function?
I want to execute a piece of code before calling a procedure. How to achieve it?
What are procedures used for?