If we declare constraints Unique and Not null on a single
column then it will act as a Primary key, so what is the use
of primary key??
Answers were Sorted based on User's Feedback
Answer / neha sinha
1) Primary key creates clustered index and unique key
creates non-clustered index. Performance wise clustered
index is fast so we need Primary key.
2)if we need more then one primary key in table than we can
use unique key+NOT NULL becous it behave as Primary key but
we cant define more than one column as primary key. :)
Is This Answer Correct ? | 23 Yes | 1 No |
Answer / neha sinha
1) Primary key creates clustered index and unique key
creates non-clustered index. Performance wise clustered
index is fast so we need Primary key.
2)if we need more then one primary key in table than we can
use unique key+NOT NULL becous it behave as Primary key but
we cant define more than one column as primary key. :)
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ashok
Internally , There is same as primary key and unique not null.
You can say unique + not null is higher step of primary key .
So there is no basic difference between this two.
Is This Answer Correct ? | 7 Yes | 11 No |
what are %TYPE and %ROWTYPE? what is the difference?
7 Answers ICICI, Saama Tech, Sail,
select sal from emp group by sal
What is lexical units in pl sql?
Is crud a cuss word?
What is clustered index in sql?
what are the performance and scalability characteristics of mysql? : Sql dba
What are the different ddl commands in sql?
What are the query optimization techniques?
What is materialized view. What are different methods of refresh?
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
Is record in pl sql?
Initially question was asked to mention the types of indexes. Then asked about BITMAP INDEX and B-Tree Index