Isom Reviewer Database
Isom Reviewer Database
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.
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
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
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 :
- 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
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.
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
DELETE
SYNTAX : DELETE FROM table_name WHERE condition;
SAMPLE CODE :
DROP
FOR MORE SQL COMMANDS and deeper explanation, YOU CAN VISIT
SQL CREATE DATABASE Statement