34 Views
what is the difference between primary key and foreign key in database.
Answer (1)
Hi there,
Primary key is the set of attributes that uniquely identifies the records of the table. If we apply primary key in a column then we cannot add duplicate value to it.
Foreign key is a non key attributes those whose values are derived from primary key of some other table.
Hope it helps!
Related Questions
VIT Bhopal University | M.Tec...
Apply
M.Tech admissions open @ VIT Bhopal University | Highest CTC 52 LPA | Apply now
Graphic Era (Deemed to be Uni...
Apply
NAAC A+ Grade | Among top 100 universities of India (NIRF 2024) | 40 crore+ scholarships distributed
XAT- Xavier Aptitude Test 2026
Apply
75+ years of legacy | #1 Entrance Exam | Score accepted by 250+ BSchools | Apply now
Amity University Noida B.Tech...
Apply
Among Top 30 National Universities for Engineering (NIRF 2024) | 30+ Specializations | AI Powered Learning & State-of-the-Art Facilities