what is primary key,unique key, foreign key? can u teach me
in simple language?
Answer Posted / anbarasu
UNIQUE KEY: A Table may contain one or more UNIQUE
constraints. It’s allowing only one null value. Use this
key we maintain unique vales in the table.
FOREIGN KEY: A key used in one table to represent the value
of a primary key in a related table. While primary keys
must contain unique values, foreign keys may have
duplicates. For instance, if we use student ID as the
primary key in a Students table (each student has a unique
ID), we could use student ID as a foreign key in a Courses
table: as each student may do more than one course, the
student ID field in the Courses table (often shortened to
Courses. student ID) Will hold duplicate values.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we need distributed database?
What is a super key?
Can you create a database in word?
Can you tell any two advantages of stored procedures?
What does new grouping sets enables you to do?
What is the candidate key used for?
What is global database name?
What is the relationship that exists inside in E-R diagram?
There are three servers are run by Oracle, MS Access and .Net. What are the procedure fetching the values of two variables from two servers among these?
What are the most common databases?
What is the role of tester in discovery(in Checklist)?
What is difference between server and database?
Is data lake a database?
What is the difference between specialization and generalization?
What is odm in database?