9th DBMS Notes
9th DBMS Notes
Terms Description
Table Name Example: EMPLOYEE
Attributes (Columns) EMP_ID, ENAME, POST, SALARY
Tuples (Rows) 4 records (E1 to E4)
Degree Number of columns = 4
Cardinality Number of rows = 4
Primary Key EMP_ID (Unique for each record)
Domain Possible values for an attribute (e.g., Salary: 5000-100000)
Data Value Example: Manoj's Salary = 10000
Feature Description
1️⃣ Q: What is the difference between Candidate Key and Alternate Key?
A: Candidate Key is a set of all possible Primary Keys, while Alternate Key is a Candidate
Key that is not chosen as the Primary Key.
Q1. What are the three categories of MySQL data types? Give examples.
Ans: