📖
Theory
Understand the concept step by step
A database is an organized collection of data.
In a relational database, information is stored in tables.
A table contains:
• Rows — individual records
• Columns — attributes or fields
For example, a users table may contain id, name, email and age columns.
SQL allows us to create and manipulate these tables.
💻
Example
See how the concept works in SQL
SQL
CREATE TABLE users (
id INT,
name VARCHAR(100),
email VARCHAR(150)
);📤
Output
Understand what the query produces
A users table is created with id, name and email columns.
📝
Practice
Test your understanding
Create a students table containing id, name, email and course columns.
❓
MCQs
Check your SQL knowledge
What is the main concept covered in SQL Databases?
A.A collection of organized data
B.A programming language
C.A web browser
D.An operating system
💼
Interview Questions
Prepare for SQL interviews
1
Interview Question
What is a relational database?
2
Interview Question
What is a table?
3
Interview Question
What is a row in a database?
4
Interview Question
What is a column?