Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

DatabaseSQL_lab1

Uploaded by

lokianp99
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

DatabaseSQL_lab1

Uploaded by

lokianp99
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

SQL Tutorial

INTRODUCTION TO SQL
Lab -1

Prepared By:
Ahmed Mahmoud
Data vs Information
Data:

• Raw, unprocessed facts.


Examples
• It is unorganized.
• It isn’t sufficient for decision-making. 1. Student Test Scores

🔹Data: 85, 90, 78, 88 (raw facts).


Information:
🔹Information: The student’s average test score is 85.25.
• It puts facts into context. 2. Survey Responses
• It is organized. 🔹Data: Yes, No, Yes, Yes, No
• It depends on data. 🔹Information: 60% of participants answered "Yes."

• It is sufficient for decision-making.


What is A Database (DB)?
• A database is an organized collection of data so that it can be easily accessed, managed

and updated.

• Typically managed by Database Management System (DBMS).

• 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.

• Relational Database: Data is organized in tables.

• NoSQL Database: Data is stored in a non-tabular format

• Graph Database: Data is stored in graph format.


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

manipulate (add, delete, modify) data.

• The DBMS serves as an interface between the database and the users or application programs.

• Examples:

🔹MySQL and Microsoft SQL Server

🔹PostgreSQL and Oracle Database

🔹MongoDB
What is SQL?
• SQL stands for Structured Query Language.

• It is a language used to interact with a RDBMS.

• 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

data in tables, where data is organized into rows and columns.


How SQL Works?

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’

ID frist_name last_name department


1 Eslam Yassin Math&CS
4 Nada Ahmed Math&CS
Installation
Installing XAMPP (for Windows) GUI: Graphical User Interface

🔹Download: Go to this link https://www.apachefriends.org/download.html

🔹Run .exe file

🔹Start the setup wizard: click Next

🔹Choose software components: select only MySQL and phpMyAdmin from the list, then click Next

🔹Choose the installation directory: click Next

🔹Start the installation process

🔹Complete installation click finish

🔹Verify Installation: Go to http://localhost/phpmyadmin/

You might also like