What Is The Difference Between Primary Key & Super Key
Answers were Sorted based on User's Feedback
Primary Key is a column which uniquely identifies all records in a table. For example EmployeeID column in an Employee table.
If you add another column to a PK, like (EmployeeID+FirstName) it still identifies identifies all rows uniquely, is known as Super Key.
For more interview Questions on SQL Server: http://sqlwithmanoj.wordpress.com/interview-questions/
| Is This Answer Correct ? | 11 Yes | 0 No |
Answer / tanmay dutta
Primary Key : Unique No. Not null.No duplicate.exam:Student_Id.
Super Key : Like (student_id + Student Name)
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / anil kumar dubey
A candidate key that uniquely identifies a row in a table is called primary key.
A superkey (composite key) is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table.
| Is This Answer Correct ? | 0 Yes | 0 No |
In which files does sql server actually store data?
what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration
What are the methods used to protect against sql injection attack?
List some case manipulation functions in sql?
How to count duplicated values in a column in ms sql server?
How to delete an attribute from the emp table
What is sub-query in sql server? Explain its properties.
What is buffer cash and log cache in sql server?
Explain about sql server login?
How many levels of sp nesting are possible?
How many levels of sp nesting is possible?
What is postgresql server?
Oracle (3259)
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)