At some point in our lives, all of us have come across this term called the primary key. So what’s the use of a primary key? Let us take an example to understand it in a better way. Suppose I have a firm, my own company, and I want to store the record of each person working in my organization. Then, when I have a few fields like DOB, date of joining, age, salary, and employment ID, there are certainly chances that any two records of two different persons can have almost everything similar. What I mean to say is two people, who have joined the company on the same date, have been offered the same salary package and coincidentally have their birthdays on the same date, and they may even have the same age also. Now, to make the situation worse, there may be one in a hundred cases where even the names of both persons become the same. ( I myself had five students named Ayush in my high school). So, it becomes a matter of confusion for the HR department to keep track of them, which may lead to serious misconceptions. So, in that case, We have to define a particular field, which we call the primary key, which will be unique for each employee. Each employee, here, in our example, can be assigned a unique employment id, which can serve as the primary key. It should be kept in mind that computers, as a device, originated as a military devices whose sole work was to coordinate with the military requirements. So, typically, the databases were created, creating a unique identification number, which would be similar to the unique military id assigned to each machine during the WW2 era. You can also think of it as the aadhar card number. There is a requirement to assign a field as a primary key. You cannot simply assign any field randomly to be the primary key. The main criterion is it should not contain similar data for 2 different entries. And then, no particular cell should be left vacant. If these two conditions are satisfied, then you are all ready to set that field as a primary key.
1000+ Courses for Free
Log in

If an account with this email id exists, you will receive instructions to reset your password.
-
Advance your career with accredited online programs from world-class universities
-
Develop new skills with high-quality premium online courses
-
Learn for free with 1000+ introductory courses
Sign up
Provide Email Consent
Kindly provide email consent to receive detailed information about our offerings.
Have an account?
Email us at [email protected] to stop receiving future communication.
By signing up/logging in, you agree to our
Terms and condition • Privacy Policy
Loading...
MS Access
MS Access
What is MS Access? MS Access-RDBMS Understanding the Relational Database Concept Components of MS Access –Objects How to create a Database? MS Access –Data Types MS Access –Create Tables All About The Primary Key Query Data And Query Criterion RELATING DATA WILDCARDS Queries and filters Difference between Access and ExcelAll About The Primary Key
< MS Access –Create Tables
Query Data And Query Criterion >
< MS Access –Create Tables
Query Data And Query Criterion >
-
Advance your career with accredited online programs from world-class universities
-
Develop new skills with high-quality premium online courses
-
Learn for free with 1000+ introductory courses
Sign up
Provide Email Consent
Kindly provide email consent to receive detailed information about our offerings.
Have an account?
Email us at [email protected] to stop receiving future communication.
By signing up/logging in, you agree to our
Terms and condition • Privacy Policy
Loading...
1000+ Courses for Free
Log in

If an account with this email id exists, you will receive instructions to reset your password.
Our site uses cookies to improve your experience
By clicking “Accept”, you agree to the use of cookies to analyse and improve site performance, and assist in our marketing efforts to deliver the best customer experience. Cookie Policy .
- Your Privacy
- Strictly Necessary Cookies
- Performance Cookies
- Functional Cookies
- Targeting Cookies
- Privacy Policy
Your Privacy
When you visit any web site, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
Strictly Necessary Cookies
Always Active
These cookies are necessary for the website to function and can't be switched off in our systems. They are usually only set in response to actions you made which result in a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies but some parts of the site may not work as a result.
- Cookies Used:
- Great Learning
- Google Tag Manger
Performance Cookies
These cookies allow us to count visits and traffic sources, so we can measure and improve the performance of our site. They help us know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies, we will not know when you have visited our site.
- Cookies Used:
- Google Analytics
- Mixpanel
Functional Cookies
These cookies allow the provision of enhance functionality and personalization, such as videos and live chats. They may be set by us or by third party providers whose services we have added to our pages. If you don't allow these cookies, then some or all of these functionalities may not function properly.
- Cookies Used:
- WebEngage
- Drift
- Get Site Control
- Wistia
Targeting Cookies
These cookies are set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant ads on other sites. They work by uniquely identifying your browser and device. If you don't allow these cookies, you will not experience our targeted advertising across different websites as a result of these cookies.
- Cookies Used:
- Quora
- Youtube
- Bing
- Taboola
- RLCDN Cookies
- Bing
- Google Ad Words
- OB remarketing
- Outbrain
- Yahoo