0% found this document useful (0 votes)
10 views9 pages

Isom Reviewer Database

The document provides an overview of databases, including definitions, types, and the role of Database Management Systems (DBMS). It explains CRUD operations and SQL commands for managing databases, along with instructions for using XAMPP as a web server solution. Key SQL operations such as CREATE, INSERT, SELECT, UPDATE, DELETE, and DROP are detailed with syntax and examples.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views9 pages

Isom Reviewer Database

The document provides an overview of databases, including definitions, types, and the role of Database Management Systems (DBMS). It explains CRUD operations and SQL commands for managing databases, along with instructions for using XAMPP as a web server solution. Key SQL operations such as CREATE, INSERT, SELECT, UPDATE, DELETE, and DROP are detailed with syntax and examples.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

ISOM REVIEW

Learning Content:
1. What is database
2. Different databases
3. XAMPP (PHPMYADMIN)
4. What is CRUD
5. SQL QUERY AND COMMANDS

Most of our setup, we store and secure our record/data in traditional or manual way. In this
setup, folders, shelves, and boxes with lock and keys are utilized. Modern way refers to the
utilization of databases.

DATABASE - is an organized collection of structured information, or data, typically stored


electronically in a computer system. It is controlled by a database management system (DBMS),
which allows users to efficiently store, retrieve, and manage data.

- essential for various applications, from banking and telecommunications to web


applications and business intelligence

Types of Databases

There are several types of databases, each designed for specific use cases:
• Relational Databases: These databases use a table-based structure and SQL for querying.
Examples include MySQL, Oracle, and Microsoft SQL Server
• NoSQL Databases: These databases handle unstructured and semi-structured data. Examples
include MongoDB and CouchDB
• Object-Oriented Databases: Data is represented as objects, similar to object-oriented
programming
• Distributed Databases: Data is stored across multiple physical locations
• Cloud Databases: These databases run on cloud computing platforms and offer scalability
and flexibility
• Graph Databases: Data is stored in nodes and edges, representing entities and their
relationships

Database Management System (DBMS)

A DBMS is software that interacts with the database, allowing users to perform various operations
such as data insertion, deletion, updating, and querying. Popular DBMSs include MySQL, Oracle, and
Microsoft SQL Server. The DBMS also ensures data security, integrity, and consistency

SQL (Structured Query Language)


SQL is the standard language used for querying and manipulating data in relational databases. It
allows users to perform complex queries, join tables, and manage database schemas
What is XAMPP?
CLICK THE LINK BELOW TO
DOWNLOAD XAMPP

Download XAMPP

XAMPP – a free and open-source cross-platform web server solution stack package. With this server,
projects can be run through localhost.

How to operate?
1. Open XAMPP and make start Apache and MySQL

2. Select Admin and your browser will open. You will be directed to :

CRUD ( CREATE, READ, UPDATE, DELETE)


Link : CRUD Operations – What is CRUD?
- Refers to the four basic operations a software application should be able to perform.
In such apps, users must be able to create data, have access to the data in the UI by
reading the data, update or edit the data and delete the data.
SQL QUERY AND COMMANDS
1. CREATE
a. Database
b. Table
In creating database and table, there are two possible ways :
A. CODE (CREATE DATABSE)
- Select the SQL tab and insert the code, then click GO to create the database.

Syntax : CREATE DATABASE dbname


Sample Code :

A..SHORT CUT (CREATE DATABASE )


a. Select the DATABASE tab
b. Name the database
c. Click Create
d. Notification will pop (DATABASE CREATED)
B. CODE (CREATE TABLE)
- Click the database that was created

- Select the SQL tab and insert the code, then click GO to create the database.

Syntax :
CREATE TABLE table_name (
column1 datatype,
column2 datatype,
column3 datatype,
....
);

SAMPLE CODE
B.. Shortcut (CREATE TABLE)
1. Select the database (CBEA)
2. Add table name and modify how many columns
3. CREATE

4. After creating, you need to modify the table

Note : SELECT A_I to automatically increment ID when new record is added.


5. Save

2.INSERT
a. Select SQL and add the code
SYNTAX :
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
Sample code :

NOTE : The value of ID was set as NULL since we already selected A_I this means, we are not
required to enter data since it will automatically increment.

Click BROWSE to view the table

I added more data for the next sql command

3.SELECT
Syntax : SELECT * FROM tblname
Sample code : Select * FROM students

- THIS CODE WILL SHOW ALL THE RECORD FROM TABLE STUDENTS
SELECT * FROM `students` WHERE ID = 1;
- THIS CODE WILL SHOW SPECIFIC RECORD that has an ID of 1.

UPDATE
SYNTAX :
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
SAMPLE CODE :
RECORDS BEFORE UPDATE

RECORDS AFTER UPDATE

EXPLANATION : we update a specific record using the condition which is ID.

DELETE
SYNTAX : DELETE FROM table_name WHERE condition;
SAMPLE CODE :

Records before delete


AFTER DELETE

Student record having an ID of 1 is deleted in the database

DROP

This is when we want to drop or delete our database.

Syntax : DROP DATABASE databasename;

Sample code : DROP DATABASE cbea;


Warning : you are not advised to drop your database for trial purpoe
only. You can’t retrieve deleted database.

FOR MORE SQL COMMANDS and deeper explanation, YOU CAN VISIT
SQL CREATE DATABASE Statement

You might also like