DatabaseSQL_lab1
DatabaseSQL_lab1
INTRODUCTION TO SQL
Lab -1
Prepared By:
Ahmed Mahmoud
Data vs Information
Data:
and updated.
• Examples:
🔹Phone Books 🔹Your mind
🔹School Attendance Logs 🔹Social Media
🔹Medical Records 🔹E-commerce Websites
🔹Todo list 🔹Banking Systems
Evolution of Database
• File System: The earliest form of data storage, flat file databases store data in plain text files.
…
What is A DBMS?
• A DBMS stands for Database Management System.
• It is a software system that allows users to interact with a database to retrieve, and
• The DBMS serves as an interface between the database and the users or application programs.
• Examples:
🔹MongoDB
What is SQL?
• SQL stands for Structured Query Language.
• It provides a standardized way to query, update, and manage data stored in the database.
• RDBMS (Relational DBMS) is a type of database management system that stores and manages
Database
Customers
SELECT ..
FROM ..
Orders
Customer_id Order_id Employees
1 1001
User Computer 2 1002
(Client) Server
3 1001
Simple SQL Query
Student ID frist_name last_name department
1 Eslam Yassin Math&CS
2 Mona Ibrahim Stat&CS
3 Ahmed Hassan Mathematics
4 Nada Ahmed Math&CS
SELECT *
FROM Student
WHERE department=‘Math&CS’
🔹Choose software components: select only MySQL and phpMyAdmin from the list, then click Next