What is the difference between primary key and unique constraints?
Answer / Puneet Kumar Bhardwaj
A Primary Key is a special type of Unique Constraint that serves to identify each row uniquely within a table. A table can have only one Primary Key, but multiple columns can form a composite Primary Key. In contrast, a Unique Constraint ensures the uniqueness of a specified set of columns, allowing for multiple Unique Constraints per table.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the grouping functions?
What is plan freezing?
Define cross join in sql server joins?
Define left outer join in sql server joins?
What are the different authentication modes in sql server? How can it be changed?
What is the difference between ROW_NUMBER and Ranking function in SQL SERVER?
If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?
Why use “in” clause in sql server?
What is the Difference beween sql server 2005 and sql server 2008
An employee table, with the columns id, name, sal and dob. Query to select emp names of all highest salaries(there are 4-5 people having the same salary which happens to be the highest).
List the ways in which dynamic sql can be executed?
can any body tell me how to know the password of current user in sql server
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)