0% found this document useful (0 votes)
5 views24 pages

Overview of SQL History and Concepts

Uploaded by

nigga whita
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)
5 views24 pages

Overview of SQL History and Concepts

Uploaded by

nigga whita
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

History of SQL

◼ SQL evolved to service the concepts of relational


database model

◼Developed by IBM Corp., Inc. in 1970

◼ Initially named Structured English Query Language


(“SEQUEL”) for IBM DB2 product.

◼ 1979, the 1st commercially available


implementation of SQL was introduced by Relational
Software Inc. which was now the Oracle Corporation
What is SQL?
◼ SQL is now accepted as the standard RDBMS
language
◼ Also known as the Universal language
of RDBMS
◼ a formal language used to write programs
that will allow user to create, manipulate
and query databases.
What is SQL?
◼ SQL follows some syntax and semantics.
◼ Syntax –defines symbols, words and the
combination of them to form valid SQL command.
◼ Semantics – determines the actual meaning of
syntactically correct statement.
How SQL differs from other
Programming Languages?
◼ Programming languages are procedural
language having set of rules for instructing
computer or device to do something.
◼ SQL is a non-procedural language that is utilized
to interface with databases.
◼ Sophisticated IS are often implemented by using
SQL in combination with a programming language.
Characteristics of SQL?
◼ Easy to learn
Statements read like English sentences
example: “Select FirstName From Employee”
◼ Nonprocedural

◼ Doesn’t have control-flow constructs like if-then-


else or for statement
◼ Tells what rather than how
◼ Versatile
Characteristics of SQL?
◼ Set-oriented – SQL processes sets of data in a
groups. It uses statements that are complex and
powerful.
◼ Interactive or embedded
◼Standardized

Open standard defined by an International


Standards working group
International Organization for Standardization
(ISO), International Engineering Consortium
(IEC), American National Standards Institute
(ANSI) ISO/IEC 9075:1992, Database Language
SQL
CATEGORIES OF SQL
STATEMENTS

• Data Definition Language (DDL)


• Data Manipulation Language (DML)
• Data Control Language (DCL)
DATA DEFINITION
LANGUAGE
◼ Statements for defining database or table and
establishing constraints
• CREATE
• ALTER
• DROP
DATA MANIPULATION
LANGUAGE
◼ Statements that maintain and query a database
◼ SELECT
◼ INSERT
◼ UPDATE
◼ DELETE
DATA CONTROL LANGUAGE
◼ Statements used for database security
◼ Grant
◼ Revoke
Major/Popular RDBMS that support
SQL
>> Structured Query Language (SQL) is the
language that is used to query, update, and
delete data in relational database management
systems (RDBMS).
Here is the list of top 10 most popular RDBMSs are:
Oracle MySQL
SQL Server PostgreSQL
IBM DB2 Microsoft Access
SQLite MariaDB
Informix Azure SQL

Retrieved from: [Link]


popular-relational-databases/
SQL Basic Concepts
◼ SQL Syntax - is comparable to the grammar that
serves as basis in any programming language.
◼ Here are some important terms to note:
◼ Comment is a word/s placed within a program
code to help other users to understand it, which
the computer ignores when running the program.
Ex. –saves or /* display*/
◼ Identifiers are the names given to database
objects such as tables, columns, views, databases
and servers.
SQL Basic Concepts
◼ Keywords are words with special meanings in
SQL. Ex. SELECT, FROM, WHERE, etc.
◼ Clause is a set of words that form part of a
statement. Ex. WHERE city = ‘Malolos’
◼ Statement is command in SQL that is composed
of keywords and made up of clauses. Ex. SELECT
name FROM customer WHERE city = ‘Malolos’
◼ Expression is any legal combination of keywords
and numeric symbols that evaluates to a single
data value. Ex. Rate * NoOfHoursWorked.
SQL Basic Concepts
◼ Functions are section of codes that take zero, one,
or more input values, perform a specific
assignment and return a scalar or tabular set of
values. Ex. SUM() and getdate().
◼ Operators work with one or more simple
expressions to form a more complex expression.
Ex. AND, +, >.
THINGS TO REMEMBER
◼ Tables

◼ Fieldname or Column Name
◼ Can contain from 1 to 128 characters.
◼ First character of a column name must be a
letter or one of the symbols _ or #.
◼ Characters following the 1st character can
include letters, digits, or the symbols #, $, or _
symbols.
THINGS TO REMEMBER
◼ Do not name a column the same as SQL keywords

◼ SQL statements are not case-sensitive

◼ SQL statements can be one or more lines


DATA TYPES
◼ One of the building blocks of T-SQL. This defines
what type of data can be inserted to a column and
what kind of operation can be performed on the
data.
◼ String
◼ Numeric
◼ Date and Time
◼ Other data types
String data types
Numeric data types
Date & Time data types
Other data types

Retrieve (March 31,2021) from:


[Link]
Thank you!

Melanie M. Orbeso

Common questions

Powered by AI

SQL syntax defines the symbols, words, and combinations thereof to form valid SQL commands, akin to the grammar in programming languages . Semantics determines the actual meaning of a syntactically correct statement, ensuring that the SQL commands perform the intended operations on the database . Understanding both syntax and semantics is crucial for writing effective and accurate SQL statements, preventing logical errors while interacting with databases.

SQL is referred to as the 'universal language of RDBMS' because it is widely accepted and used across various relational database management systems, serving as a common language for database interaction . Its standardization by organizations such as ISO, IEC, and ANSI ensures consistent syntax and functionality across different systems, enabling interoperability and reducing the learning curve for database professionals transitioning between systems .

The primary categories of SQL statements are Data Definition Language (DDL), Data Manipulation Language (DML), and Data Control Language (DCL). DDL includes commands like CREATE, ALTER, and DROP, which define and manage database structure . DML involves SELECT, INSERT, UPDATE, and DELETE statements, which allow users to query and modify data . DCL includes GRANT and REVOKE, used for database access control .

SQL's dominance in RDBMS began with its origins at IBM in 1970, developed as Structured English Query Language ('SEQUEL') for IBM DB2 . A significant milestone was its first commercial implementation in 1979 by Relational Software Inc., now Oracle Corporation, which propelled its acceptance as a standard RDBMS language . SQL's integration into major RDBMS systems and its standardization by international bodies contributed to its widespread adoption and status as the universal database language.

SQL is a non-procedural language in which users specify what data they want to retrieve but not how to retrieve it . This contrasts with procedural languages, which require detailed instructions on how tasks should be performed step-by-step, including loops and control structures like if-then-else . This feature makes SQL particularly well-suited for database operations where the focus is on data manipulation rather than the logic of the data retrieval process.

Functions in SQL are a set of instructions that perform specific tasks, taking zero or more input values and returning a scalar or tabular data set . They enhance query capabilities by allowing complex operations to be performed easily within queries, such as mathematical calculations with SUM() or retrieving date information with getdate(), which simplifies query logic and increases execution efficiency.

Keywords in SQL are reserved words with special meanings that form the foundation of SQL syntax, such as SELECT and WHERE . Clauses are components of SQL statements that declare conditions or actions, like WHERE city = 'Malolos' . Statements are composed of keywords and clauses, forming complete commands to execute database operations, such as SELECT name FROM customer WHERE city = 'Malolos' . These elements together enable structured and precise database interactions.

SQL's role as a non-procedural language involves focusing on 'what' data retrieval or manipulation is needed rather than 'how' it should be performed . The lack of control-flow constructs like loops or if-then-else statements poses limitations in scenarios requiring complex logic, necessitating combination with procedural programming languages to implement such functionalities, thus complementing SQL's strengths in handling data operations efficiently.

Being set-oriented, SQL processes data in groups or sets rather than one-at-a-time operations, which makes it efficient for dealing with large volumes of data . This characteristic allows SQL statements to handle multiple rows simultaneously through operations like SELECT, INSERT, or UPDATE, which are more complex and powerful than handling single data units, leading to better performance and resource optimization in database management.

SQL's non-procedural, set-oriented, and standardized nature makes it flexible and versatile, contributing significantly to sophisticated Information Systems development . It integrates easily with other programming languages, allowing complex systems to leverage its powerful data manipulation and querying capabilities, optimizing overall performance and providing robust database management solutions.

You might also like