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 |
Why I am getting this error when dropping a database in ms sql server?
What are character string data types in ms sql server?
What command do we use to rename a db?
I have a table in which phno is one of the columns.i do have some values in tht phno column.i need to update phno column values with 0(zero) as prefix.give me a correct solution plz...
How to enable/disable indexes?
what changed between the previous version of sql server and the current version? : Sql server database administration
what is differece between union and union all
What is Sqlpaging in SqlServer 2005 ?
Can you change the data type of a column in a table after the table has been created? If so, which command would you use?
What’s the distinction between dropping a info and taking a info offline?
Explain what are the basic functions for master, msdb, model, tempdb databases?
What is t-sql script to take database offline – take database online.
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)