Define primary key and foreign key

Define primary key and foreign key.

A column or combination of columns that identify a row of data in a table is Primary Key. A key in a table that identifies records in other table in called a foreign key.

What is difference between UNIQUE and PRIMARY KEY constraints?

A table can have only one PRIMARY KEY whereas there can be any number of UNIQUE keys. Primary Key doesn't allow NULL value whereas UNIQUE key allows NULL value.
Explain how to DISABLE and ENABLE constraint
Explain how to DISABLE and ENABLE constraint in Oracle - Disable a constraint by using the DISABLE clause......
Statement Auditing, Privilege Auditing and Object Auditing in oracle
Define Statement Auditing, Privilege Auditing and Object Auditing in oracle - Statement auditing is the auditing of the powerful system privileges without regard to specifically named objects.....
How to retrieve 5th highest sal from emp table? - oracle
Retrieve 5th highest sal from emp table - SELECT DISTINCT (emp1.sal) FROM EMP emp1 WHERE &N = (SELECT COUNT (DISTINCT (emp2.sal))...
Post your comment