SlideShare a Scribd company logo
1 of 2
Download to read offline
What's the Schema ? Table ? Column ? Row ? Attribute ? Entity ? Primary Key ? Foreign Key ?
Solution
Schema is a subdatabase(database is divided into various subdatabases) which contains database
objects .The database objects are tables,views etc
Table:A table consists of various rows and columns.Data is arranged in rows and columns.
Column:column in the database contains data which are of same type.
Row :table contains various rows and columns.The rows in table is called as tuples .
Attribute :The database table contains various attributes.It represents database fields
Entity:Entity is a single object .We are going to staore the date regarding that object which is
called as entity
Primary key:
Primary key is a unique value in the table by using which we can uniquely idenfy the rows or
records in the table.
Primary key is NOT NULL+UNIQUE
It is constraint which maintains the data integrity of the table in the database.
That means if we specified a column with primary key constraint.Then in that column we must
have to provide the value(Not to leave empty) and also that value must be unique.
If we want to uniquely identify particular records in the table we have to use these primary
keys.Primary keys must not be NULL and should be UNIQUE.
Ex:Suppose we are storing the employee information in the employee table.
The employee table has fields like : employeeId,employeeName,Salary
Here No two employees have same employeeID's .It will be unique.
If we want to get the information of the particular employee we can use his employeeID inorder
to uniquely identify.The value with which we can uniquely identify the records in a table is
called PrimaryKey.here We can say employeeId is a primary key.
Foreign Key:
A foreign key is a primary of one table but it appears like a field in another table.Here both the
two tables are in relation with each other .
Suppose there is a student table which contains studentId as primary key.
There is a course table which contains courseID as primary key.
There is a studentCourse table which contains studentId and courseId as fields.But studentId is
the primary of student table and courseId is primary key of course table.But those two primary
keys are acting as fields as in studentCouse table.
here Field (studentID) of studentCouse table is linked with studentId field of Student table
and field (courseId) of studentCouse table is linked with courseId field of course table
So we may call studentId,courseId are foreign keys of studentscourse table.
Foreign keys - Contain one or more columns whose values match a primary or alternate key in
some other table.

More Related Content

Similar to Whats the Schema Table Column Row Attribute Entity Pri.pdf

RELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptxRELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptx
KAnurag2
 

Similar to Whats the Schema Table Column Row Attribute Entity Pri.pdf (20)

Databases - Unit 2.pdf
Databases - Unit 2.pdfDatabases - Unit 2.pdf
Databases - Unit 2.pdf
 
Key and its different types
Key and its different typesKey and its different types
Key and its different types
 
Types of keys in database | SQL
Types of keys in database | SQLTypes of keys in database | SQL
Types of keys in database | SQL
 
computer-210809080138.pdf
computer-210809080138.pdfcomputer-210809080138.pdf
computer-210809080138.pdf
 
Types Of Keys in DBMS
Types Of Keys in DBMSTypes Of Keys in DBMS
Types Of Keys in DBMS
 
Types of keys dbms
Types of keys dbmsTypes of keys dbms
Types of keys dbms
 
Excel Training for SEOs
Excel Training for SEOsExcel Training for SEOs
Excel Training for SEOs
 
RELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptxRELATIONSHIP IN DBMS.pptx
RELATIONSHIP IN DBMS.pptx
 
Intro to Data warehousing lecture 12
Intro to Data warehousing   lecture 12Intro to Data warehousing   lecture 12
Intro to Data warehousing lecture 12
 
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
DATABASE CONCEPTS AND PRACTICAL EXAMPLESDATABASE CONCEPTS AND PRACTICAL EXAMPLES
DATABASE CONCEPTS AND PRACTICAL EXAMPLES
 
Keys in Database
Keys in DatabaseKeys in Database
Keys in Database
 
Keys.pptx
Keys.pptxKeys.pptx
Keys.pptx
 
ER diagram
ER diagramER diagram
ER diagram
 
SQL_DBMS_KEYS.pptx
SQL_DBMS_KEYS.pptxSQL_DBMS_KEYS.pptx
SQL_DBMS_KEYS.pptx
 
FD.pdf
FD.pdfFD.pdf
FD.pdf
 
DBMS key topic Presentation slide 1.pptx
DBMS key topic Presentation slide 1.pptxDBMS key topic Presentation slide 1.pptx
DBMS key topic Presentation slide 1.pptx
 
Key in DatabaseManagementSystem_engineering.pptx
Key in DatabaseManagementSystem_engineering.pptxKey in DatabaseManagementSystem_engineering.pptx
Key in DatabaseManagementSystem_engineering.pptx
 
Doc 20191022-wa0041
Doc 20191022-wa0041Doc 20191022-wa0041
Doc 20191022-wa0041
 
Dbms keys
Dbms keysDbms keys
Dbms keys
 
DATABASE-1.pptx
DATABASE-1.pptxDATABASE-1.pptx
DATABASE-1.pptx
 

More from exxonzone

An employee is assigned to one department and a department may have m.pdf
An employee is assigned to one department and a department may have m.pdfAn employee is assigned to one department and a department may have m.pdf
An employee is assigned to one department and a department may have m.pdf
exxonzone
 
What is tax research What is the purpose of conducting tax research.pdf
What is tax research What is the purpose of conducting tax research.pdfWhat is tax research What is the purpose of conducting tax research.pdf
What is tax research What is the purpose of conducting tax research.pdf
exxonzone
 
Question I need help with c++ Simple Classes Assigment. i get this .pdf
Question I need help with c++ Simple Classes Assigment. i get this .pdfQuestion I need help with c++ Simple Classes Assigment. i get this .pdf
Question I need help with c++ Simple Classes Assigment. i get this .pdf
exxonzone
 
#ifndef RATIONAL_H   if this compiler macro is not defined #def.pdf
#ifndef RATIONAL_H    if this compiler macro is not defined #def.pdf#ifndef RATIONAL_H    if this compiler macro is not defined #def.pdf
#ifndef RATIONAL_H   if this compiler macro is not defined #def.pdf
exxonzone
 

More from exxonzone (19)

An employee is assigned to one department and a department may have m.pdf
An employee is assigned to one department and a department may have m.pdfAn employee is assigned to one department and a department may have m.pdf
An employee is assigned to one department and a department may have m.pdf
 
10 Points ntilfy cach of the the contour signatures shown on the map .pdf
10 Points ntilfy cach of the the contour signatures shown on the map .pdf10 Points ntilfy cach of the the contour signatures shown on the map .pdf
10 Points ntilfy cach of the the contour signatures shown on the map .pdf
 
Describe the principal cash transfer tools-Wire Transfer-EDT-E.pdf
Describe the principal cash transfer tools-Wire Transfer-EDT-E.pdfDescribe the principal cash transfer tools-Wire Transfer-EDT-E.pdf
Describe the principal cash transfer tools-Wire Transfer-EDT-E.pdf
 
Which sentence contains an infinitive AWill you take the package to.pdf
Which sentence contains an infinitive AWill you take the package to.pdfWhich sentence contains an infinitive AWill you take the package to.pdf
Which sentence contains an infinitive AWill you take the package to.pdf
 
Which of the following groups produce sporangia on leaves (Mark all.pdf
Which of the following groups produce sporangia on leaves (Mark all.pdfWhich of the following groups produce sporangia on leaves (Mark all.pdf
Which of the following groups produce sporangia on leaves (Mark all.pdf
 
What is tax research What is the purpose of conducting tax research.pdf
What is tax research What is the purpose of conducting tax research.pdfWhat is tax research What is the purpose of conducting tax research.pdf
What is tax research What is the purpose of conducting tax research.pdf
 
What is a social networking analysisa) represents the interconnec.pdf
What is a social networking analysisa) represents the interconnec.pdfWhat is a social networking analysisa) represents the interconnec.pdf
What is a social networking analysisa) represents the interconnec.pdf
 
BiopsychologyWhy sleep (psychology) is interestingSolutionS.pdf
BiopsychologyWhy sleep (psychology) is interestingSolutionS.pdfBiopsychologyWhy sleep (psychology) is interestingSolutionS.pdf
BiopsychologyWhy sleep (psychology) is interestingSolutionS.pdf
 
The following question does not require any knowledge of statistics t.pdf
The following question does not require any knowledge of statistics t.pdfThe following question does not require any knowledge of statistics t.pdf
The following question does not require any knowledge of statistics t.pdf
 
Question I need help with c++ Simple Classes Assigment. i get this .pdf
Question I need help with c++ Simple Classes Assigment. i get this .pdfQuestion I need help with c++ Simple Classes Assigment. i get this .pdf
Question I need help with c++ Simple Classes Assigment. i get this .pdf
 
Do antidepressants help A researcher studied the effect of an an.pdf
Do antidepressants help A researcher studied the effect of an an.pdfDo antidepressants help A researcher studied the effect of an an.pdf
Do antidepressants help A researcher studied the effect of an an.pdf
 
Shensen and colleagues were interested in studying older adults.pdf
Shensen and colleagues were interested in studying older adults.pdfShensen and colleagues were interested in studying older adults.pdf
Shensen and colleagues were interested in studying older adults.pdf
 
Much of the heat that drives convection in the mantlea. Is generat.pdf
Much of the heat that drives convection in the mantlea. Is generat.pdfMuch of the heat that drives convection in the mantlea. Is generat.pdf
Much of the heat that drives convection in the mantlea. Is generat.pdf
 
In explaining what we now call evolution, Darwin often used the phra.pdf
In explaining what we now call evolution, Darwin often used the phra.pdfIn explaining what we now call evolution, Darwin often used the phra.pdf
In explaining what we now call evolution, Darwin often used the phra.pdf
 
Las Homework 4 Spotlight Figure 27.18 Diagnosis of Acid-Base Disorde.pdf
Las Homework 4 Spotlight Figure 27.18 Diagnosis of Acid-Base Disorde.pdfLas Homework 4 Spotlight Figure 27.18 Diagnosis of Acid-Base Disorde.pdf
Las Homework 4 Spotlight Figure 27.18 Diagnosis of Acid-Base Disorde.pdf
 
Check all that are characteristics of cardiac muscle. Cells are .pdf
Check all that are characteristics of cardiac muscle.  Cells are .pdfCheck all that are characteristics of cardiac muscle.  Cells are .pdf
Check all that are characteristics of cardiac muscle. Cells are .pdf
 
How electrical devices produce complex waveforms. Describe.Solut.pdf
How electrical devices produce complex waveforms. Describe.Solut.pdfHow electrical devices produce complex waveforms. Describe.Solut.pdf
How electrical devices produce complex waveforms. Describe.Solut.pdf
 
#ifndef RATIONAL_H   if this compiler macro is not defined #def.pdf
#ifndef RATIONAL_H    if this compiler macro is not defined #def.pdf#ifndef RATIONAL_H    if this compiler macro is not defined #def.pdf
#ifndef RATIONAL_H   if this compiler macro is not defined #def.pdf
 
Goldstein and brown were lucky. If they had used the JD allele to co.pdf
Goldstein and brown were lucky. If they had used the JD allele to co.pdfGoldstein and brown were lucky. If they had used the JD allele to co.pdf
Goldstein and brown were lucky. If they had used the JD allele to co.pdf
 

Recently uploaded

Recently uploaded (20)

21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17Model Attribute _rec_name in the Odoo 17
Model Attribute _rec_name in the Odoo 17
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
PANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptxPANDITA RAMABAI- Indian political thought GENDER.pptx
PANDITA RAMABAI- Indian political thought GENDER.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 

Whats the Schema Table Column Row Attribute Entity Pri.pdf

  • 1. What's the Schema ? Table ? Column ? Row ? Attribute ? Entity ? Primary Key ? Foreign Key ? Solution Schema is a subdatabase(database is divided into various subdatabases) which contains database objects .The database objects are tables,views etc Table:A table consists of various rows and columns.Data is arranged in rows and columns. Column:column in the database contains data which are of same type. Row :table contains various rows and columns.The rows in table is called as tuples . Attribute :The database table contains various attributes.It represents database fields Entity:Entity is a single object .We are going to staore the date regarding that object which is called as entity Primary key: Primary key is a unique value in the table by using which we can uniquely idenfy the rows or records in the table. Primary key is NOT NULL+UNIQUE It is constraint which maintains the data integrity of the table in the database. That means if we specified a column with primary key constraint.Then in that column we must have to provide the value(Not to leave empty) and also that value must be unique. If we want to uniquely identify particular records in the table we have to use these primary keys.Primary keys must not be NULL and should be UNIQUE. Ex:Suppose we are storing the employee information in the employee table. The employee table has fields like : employeeId,employeeName,Salary Here No two employees have same employeeID's .It will be unique. If we want to get the information of the particular employee we can use his employeeID inorder to uniquely identify.The value with which we can uniquely identify the records in a table is called PrimaryKey.here We can say employeeId is a primary key. Foreign Key: A foreign key is a primary of one table but it appears like a field in another table.Here both the two tables are in relation with each other . Suppose there is a student table which contains studentId as primary key. There is a course table which contains courseID as primary key. There is a studentCourse table which contains studentId and courseId as fields.But studentId is the primary of student table and courseId is primary key of course table.But those two primary keys are acting as fields as in studentCouse table.
  • 2. here Field (studentID) of studentCouse table is linked with studentId field of Student table and field (courseId) of studentCouse table is linked with courseId field of course table So we may call studentId,courseId are foreign keys of studentscourse table. Foreign keys - Contain one or more columns whose values match a primary or alternate key in some other table.