Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can u create a primary key with out unique index.

Answers were Sorted based on User's Feedback



Can u create a primary key with out unique index...

Answer / ravin

Unique constraint and unique index are different things but
their goals might be similar.

Unique index is created implicitly with the creation of
Primary key and unique key both.
Hence no primary key can be created without a unique index.

Is This Answer Correct ?    19 Yes 0 No

Can u create a primary key with out unique index...

Answer / smita

Hi,
No , we cant create pk eithout unique index it
implicitelygenerater by oracle.
I want to clear that pk can b on one or more col but only
one pk.
While unique constraint can b one or more col and can b one
or morn unique key in a table

Is This Answer Correct ?    10 Yes 1 No

Can u create a primary key with out unique index...

Answer / deepak singh

No,
B'cas when you create d primary key then orcale
automatically created unique index

Is This Answer Correct ?    9 Yes 1 No

Can u create a primary key with out unique index...

Answer / nisith ranjan samal

Yes,you can create primary key without creating unique index.
Alter table table_name add constraint constraint_name primary key(colum_name) disable

Is This Answer Correct ?    0 Yes 0 No

Can u create a primary key with out unique index...

Answer / suneel

yes

Is This Answer Correct ?    4 Yes 6 No

Can u create a primary key with out unique index...

Answer / prashant

Primary key = Unique Index + Not NUll Constraint .

So we can create primary key without Unique index ..But it
is created as combination of both (Unique Index + Not NUll
Constraint ) in oracle databases.

We need not have to create Unique index . :)

Is This Answer Correct ?    1 Yes 5 No

Can u create a primary key with out unique index...

Answer / anil kumar jampana

YES WE CAN CREATE. FIRST CREATE NON UNIQUE INDEX THEN
CREATE PRIMARY KEY.

Is This Answer Correct ?    2 Yes 11 No

Can u create a primary key with out unique index...

Answer / sowmya k

Yes we can create a primary key without creating the Unique
key. The primary key concept is same similar to the unique
key. We can set primary key to only one column, but a
unique key constraint can be set to more then one column.

Is This Answer Correct ?    0 Yes 11 No

Post New Answer

More SQL PLSQL Interview Questions

Can you sum a count in sql?

0 Answers  


How do I start pl sql?

0 Answers  


oracle is compiler or interpretter,can any one tell me the answer?

9 Answers   Satyam,


how to check the 3rd max salary from an employee table? One of the queries used is as follows: select sal from emp a where 3=(select count(distinct(sal)) from emp b where a.sal<=b.sal). Here in the sub query "select count(distinct(sal)) from emp b where a.sal<=b.sal" or "select count(distinct(sal)) from emp b where a.sal=b.sal" should reveal the same number of rows is in't it? Can any one here please explain me how is this query working perfectly. However, there is another query to get the 3rd highest of salaries of employees that logic I can understand. Pls find the query below. "select min(salary) from emp where salary in(select distinct top 3 salary from emp order by salary desc)" Please explain me how "select sal from emp a where 3=(select count(distinct(sal)) from emp b where a.sal<=b.sal)" works source:http://www.allinterview.com/showanswers/33264.html. Thanks in advance Regards, Karthik.

4 Answers  


How many types of cursors are available in pl/sql?

0 Answers  


write a query to find 4th max salary

7 Answers  


How does a self join work?

0 Answers  


When we can declare a column as Unique and Not Null both at the same time. What is the use pf Primary Key then?

2 Answers   Accenture, Unisoft Infotech,


What is the difference between nvl function, ifnull function, and isnull function?

0 Answers  


Is null operator in sql?

0 Answers  


Hi Everyone, How to get fist and last record from a table in oracle? Thanks in advance

13 Answers   IBM,


Where the integrity constrints are stored in Data Dictionary?

1 Answers  


Categories