Can you please differentiate between a primary key and a unique key?
Answer / Akhil Kumar
{"Primary Key (PK) and Unique Key (UK) are used to enforce data integrity in SQL Server, but there is one main difference:
1. Primary Key: Must contain a column or columns that uniquely identify each row.
2. Unique Key: Can have NULL values in one or more columns, as long as the combination of all columns is unique.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain Trigger with an example?
can any one please send sql quries most used in applications.
What is user stored procedure & it purpose?
List out the difference between union and union all in sql server?
Is it possible to call a stored procedure within a stored procedure?
What is difference between drop truncate and delete?
Which sql server table is used to hold the stored procedure script?
How to create function with parameter in sql server?
How to retrieve duplicate rows in a table? How to delete the duplicate entries in a table?
15 Answers Leo Technologies, Mannar Company, Synechron,
Why use “pivot” in sql server?
Explain the different types of joins?
How would you use user_constraints table in DB?
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)