Checking your session…
Module 01: Introduction to Data and Data Types

1.4 Classification of Data (Qualitative & Quantitative)

Level: 1 | Version: v1.1 | Author: Meptrasoft

Overview

Data can be classified not only by its format, but also by what the data represents.

There are two main categories:

TEXT
DATA
│
├── QUALITATIVE
│   ├── Nominal
│   └── Ordinal
│
└── QUANTITATIVE
    ├── Discrete
    └── Continuous

The easiest way to remember the difference:

Qualitative data describes a quality or category. Quantitative data represents a quantity that can be counted or measured.

Classification of Data: Qualitative (Nominal, Ordinal) and Quantitative (Discrete, Continuous)
Figure 1: Data can be classified as qualitative or quantitative, with each category having two common subtypes.

Quantitative Data

Quantitative data represents values that can be counted or measured using numbers.

It usually answers questions such as:

  • How many?
  • How much?
  • How often?

Examples:

TEXT
Number of students = 40
Orders placed = 125
Temperature = 36.7°C
Height = 172.5 cm

Quantitative data has two common types: Discrete and Continuous.


Discrete Data

Discrete data consists of separate, countable values.

It is usually obtained by counting.

Examples:

  • Number of students in a class
  • Number of website clicks
  • Number of cars in a parking lot
  • Number of orders

For example:

TEXT
Students = 40

You can have 40 students, but not 40.5 students.

Discrete data is counted and normally represented using separate whole-number values.


Continuous Data

Continuous data is data that can take different values within a range.

It is usually obtained by measuring.

Examples:

  • Height
  • Weight
  • Temperature
  • Time
  • Distance

For example:

TEXT
Height = 172.5 cm
Temperature = 36.7°C

A measurement can often be made more precise:

TEXT
172 cm
172.5 cm
172.53 cm
172.531 cm

Continuous data is measured and can take fractional or decimal values within a range.


Qualitative Data

Qualitative data describes qualities, characteristics, or categories rather than quantities.

It answers questions such as:

“What kind?”

Examples:

TEXT
Department = CSE
City = Chennai
Feedback = Good
Product Color = Blue

Qualitative data has two common types: Nominal and Ordinal.


Nominal Data

Nominal data consists of categories that do not have a natural order or ranking.

Examples:

TEXT
City:
Chennai
Mumbai
Delhi

There is no meaningful ranking such as Chennai > Mumbai > Delhi.

Other examples:

  • Eye color
  • Blood group
  • Department
  • Country
  • Product category

Nominal = Names or categories without an order.


Ordinal Data

Ordinal data consists of categories that have a meaningful order or ranking.

Examples:

TEXT
Poor → Average → Good → Excellent

There is a clear order from lower to higher satisfaction.

Other examples:

  • Small → Medium → Large
  • Beginner → Intermediate → Advanced
  • Bronze → Silver → Gold

The important point is that the order matters, but the difference between categories is not necessarily equal.

For example, the difference between Poor → Average may not be the same as Good → Excellent.

Ordinal = Ordered categories.


Simple Comparison

Classification Meaning Example
Qualitative Describes categories or qualities Department = CSE
Nominal Categories without order City = Chennai
Ordinal Categories with meaningful order Rating = Good
Quantitative Numerical quantity Marks = 87
Discrete Counted values Students = 40
Continuous Measured values Height = 172.5 cm

Quick Memory Trick

TEXT
QUALITATIVE → QUALITY / CATEGORY

QUANTITATIVE → QUANTITY / NUMBER

NOMINAL → NO ORDER

ORDINAL → ORDER

DISCRETE → COUNT

CONTINUOUS → MEASURE

How This Relates to SQL

These classifications help us understand what values a database column represents.

For example:

Column Example Value Nature
Name Arun Qualitative
Department CSE Qualitative / Nominal
Feedback Good Qualitative / Ordinal
Student_Count 40 Quantitative / Discrete
Height 172.5 Quantitative / Continuous
Marks 87 Quantitative

SQL can work with both categorical and numerical data.

For example, we can filter by a category:

SQL
SELECT *
FROM Students
WHERE Department = 'CSE';

Or calculate values such as an average:

SQL
SELECT AVG(Marks) AS Average_Marks
FROM Students;

The first query works with a categorical value, while the second performs a numerical calculation.

Data classification helps us understand what a value represents and how it can be analyzed.


Common Beginner Mistakes

✗ Mistake ✓ Correct Understanding
All numbers are quantitative A number can sometimes act as a label or category; meaning matters
Discrete data must always be integers in every context Discrete data represents separate countable values
Continuous data means every decimal number Continuous data represents measurements that can vary across a range
Nominal categories have no useful information They have useful category information; they simply have no natural ranking
Ordinal categories have equal intervals Ordinal data provides order, but the gaps between categories are not necessarily equal
SQL can only work with quantitative data SQL works with both categorical and numerical data

Placement Quick Points

TEXT
QUALITATIVE
→ CATEGORY / QUALITY
→ NOMINAL + ORDINAL

QUANTITATIVE
→ NUMBER / QUANTITY
→ DISCRETE + CONTINUOUS

NOMINAL
→ NO NATURAL ORDER

ORDINAL
→ MEANINGFUL ORDER

DISCRETE
→ COUNTED

CONTINUOUS
→ MEASURED
  • Qualitative data describes categories or qualities.
  • Nominal data has categories without a natural order.
  • Ordinal data has categories with a meaningful order.
  • Quantitative data represents numerical quantities.
  • Discrete data is counted.
  • Continuous data is measured and can take values within a range.
  • SQL can filter, group, and analyze both categorical and numerical data.

Interview Questions

What is the difference between qualitative and quantitative data?

Qualitative data describes categories or qualities, while quantitative data represents numerical quantities that can be counted or measured.

What is nominal data?

Nominal data consists of categories with no natural order.

Example:

TEXT
City = Chennai, Mumbai, Delhi
What is ordinal data?

Ordinal data consists of categories with a meaningful order or ranking.

Example:

TEXT
Poor → Average → Good → Excellent
What is the difference between discrete and continuous data?

Discrete data is counted and consists of separate values, while continuous data is measured and can take values within a range.

Example:

TEXT
Discrete   → Number of students = 40
Continuous → Height = 172.5 cm
Is customer feedback such as Poor, Average, Good, Excellent nominal or ordinal?

It is ordinal because the categories have a meaningful order.

Can qualitative data be used in SQL?

Yes. SQL can filter, group, sort, and count categorical data.

For example:

SQL
SELECT Department, COUNT(*)
FROM Students
GROUP BY Department;
Why is the distinction between discrete and continuous data useful?

It helps us understand whether a value represents something that is counted or measured, which affects how the data is interpreted and analyzed.


Practice & Hands-On Exercises

Beginner Practice

  1. Define qualitative data in your own words.
  2. Define quantitative data in your own words.
  3. Give two examples of nominal data.
  4. Give two examples of ordinal data.
  5. Give two examples of discrete data.
  6. Give two examples of continuous data.

Classify the Data

Classify each as Nominal, Ordinal, Discrete, or Continuous:

  1. Number of employees in a company
  2. Customer feedback: Poor, Average, Good, Excellent
  3. Temperature of a room
  4. Blood group
  5. Number of orders placed
  6. T-shirt size: S, M, L, XL
  7. Student height
  8. Department: CSE, IT, ECE

SQL Connection

Consider a Students table with:

TEXT
Name
Department
Marks
Height
  1. Which column is categorical?
  2. Which column contains a numerical score?
  3. Which column can contain continuous measurements?
  4. Write a query to find the number of students in each department:
SQL
SELECT Department, COUNT(*) AS Total_Students
FROM Students
GROUP BY Department;
  1. Write a query to calculate the average marks:
SQL
SELECT AVG(Marks) AS Average_Marks
FROM Students;

💡 Tip: Test your queries using the in-browser interactive runner above.


Key Takeaway

TEXT
DATA
│
├── QUALITATIVE
│   ├── NOMINAL → NO ORDER
│   └── ORDINAL → HAS ORDER
│
└── QUANTITATIVE
    ├── DISCRETE → COUNTED
    └── CONTINUOUS → MEASURED

Qualitative data describes categories, while quantitative data represents quantities. Nominal and ordinal describe the type of category; discrete and continuous describe the type of numerical value.

End of Classification of Data (Qualitative & Quantitative)