Say we have a Student table in a MYSQL database and its schema is below. This table has around Million Records.
- ID (PK)
- Name
- Aadhaar_ID
- Address
- Admission_year
Can the above table have the following together at the same time ?
- Primary Index on the ID.
- Clustered Index on Name.
Since it's mandatory (for creation of Clustered-Index the data) for the data to be sorted, it's not possible to have the above 2 indexes together. We can only have either of two.