0% found this document useful (0 votes)
8 views

Lesson 1.2 SQL

SQL is the standard language for communicating with databases and allows users to query, insert, update, and delete records as well as modify database structures and user privileges; it is used to retrieve, modify, and manage data across many types of database systems and can perform tasks like creating databases and tables, setting permissions, and retrieving data through queries. SQL commands like SELECT, UPDATE, DELETE, INSERT, CREATE, ALTER, and DROP allow users to interact with and manage data in a database.

Uploaded by

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

Lesson 1.2 SQL

SQL is the standard language for communicating with databases and allows users to query, insert, update, and delete records as well as modify database structures and user privileges; it is used to retrieve, modify, and manage data across many types of database systems and can perform tasks like creating databases and tables, setting permissions, and retrieving data through queries. SQL commands like SELECT, UPDATE, DELETE, INSERT, CREATE, ALTER, and DROP allow users to interact with and manage data in a database.

Uploaded by

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

SQL

Structured Query Language, or SQL, is the


standard language used to communicate
with a database, and or change records and
user privileges, and perform queries. The
Language, which became an ANSI standard
in 1989
The uses of SQL
modifying database table and index
structures;
adding, updating and deleting rows of data;
and
retrieving subsets of information from
within a database.
What Can SQL do?
SQL can execute queries against a database
SQL can retrieve data from a database
SQL can insert records in a database
SQL can update records in a database
SQL can delete records from a database
SQL can create new databases
SQL can create new tables in a database
SQL can create stored procedures in a database
SQL can create views in a database
SQL can set permissions on tables, procedures, and views
Using SQL in Your Web Site
SQL
To build a website that shows data from a database, you
will need:

An RDBMS database program (i.e. MS Access, SQL Server,


MySQL)
To use a server-side scripting language, like PHP or ASP
To use SQL to get the data you want
To use HTML / CSS to style the page
Database Design in DBMS: Learn Data Modeling
https://docs.google.com/document/d/1hiAKEae1WHQOABEuCK38bB6EONRFCh
U6OKX_vX6E--A/edit?usp=sharing

The design process consists of the following steps:

Determine the purpose of your database. ...


Find and organize the information required. ...
Divide the information into tables. ...
Turn information items into columns. ...
Specify primary keys. ...
Set up the table relationships. ...
Refine your design. ...
Apply the normalization rules.
What is Database Design?

- is a collection of processes that facilitate the designing, development,


implementation and maintenance of enterprise data management
systems. The database designer decides how the data elements correlate and what data must be stored.

Why Database Design is Important ?

It helps produce database systems that meet the requirements of the users.
Some of The Most Important SQL Commands
SELECT - extracts data from a database
UPDATE - updates data in a database
DELETE - deletes data from a database
INSERT INTO - inserts new data into a database
CREATE DATABASE - creates a new database
ALTER DATABASE - modifies a database
CREATE TABLE - creates a new table
ALTER TABLE - modifies a table
DROP TABLE - deletes a table
CREATE INDEX - creates an index (search key)
DROP INDEX - deletes an index
Next

Open the PowerPoint:


https://docs.google.com/presentation/d/1l-JXfaAEigCf7B27c
SEDm0pGkiDXMtsgS-4LlLXX2C8/edit?usp=sharing

You might also like