What is SQL, how does it work and how is it being used
What is SQL, how does it work and how is it being used
Encyclopedia
Hosting Frameworks
FTP Databases
Domains Internet
DNS Multimedia
Email Web Design
Scripting
Videos
Video Tutorials
Content:
SQL History
SQL Standard
SQL Language elements
SQL queries
SQL data control, definition and manipulation
SQL data manipulation
SQL data definition
SQL data control
SQL with NTC Hosting
SQL History
The origins of the SQL take us back to the 1970s, when in the IBM laboratories, new database
software was created - System R. And to manage the data stored in System R, the SQL language
was created. At first it was called SEQUEL, a name which is still used as an alternative
pronunciation for SQL, but was later renamed to just SQL.
https://www.ntchosting.com/encyclopedia/databases/structured-query-language/ 1/5
10/20/24, 12:27 PM What is SQL, how does it work and how is it being used
In 1979, a company called Relational Software, which later became Oracle, saw the commercial
{ntc} MENU
potential of SQL and released its own modified version, named Oracle V2. Your Cart is Empty
Now into its third decade of existence, SQL offers great flexibility to users by supporting
distributed databases, i.e. databases that can be run on several computer networks at a time.
Certified by ANSI and ISO, SQL has become a database query language standard, lying in the basis
of a variety of well established database applications on the Internet today. It serves both industry-
level and academic needs and is used on both individual computers and corporate servers. With
the progress in database technology SQL-based applications have become increasingly affordable
for the regular user. This is due to the introduction of various open-source SQL database solutions
such as MySQL, PostgreSQL, SQLite, Firebird, and many more.
SQL Standard
The SQL Standard has gone through a lot of changes during the years, which have added a great
deal of new functionality to the standard, such as support for XML, triggers, regular expression
matching, recursive queries, standardized sequences and much more. Due to SQL Standard’s
sheer volume, a lot of database solutions based on it, such as MySQL or PostgreSQL, do not
implement the whole standard. In a lot of cases, the database behavior for file storage or indexes
is not well defined and it's up to the vendors of the various SQL implementations to decide how
the database will behave. This is the reason why, even though all SQL implementations have the
same base, they are rarely compatible.
SQL queries
The SQL queries are the most common and essential SQL operations. Via an SQL query, one can
search the database for the information needed. SQL queries are executed with the “SELECT”
statement. An SQL query can be more specific, with the help of several clauses:
https://www.ntchosting.com/encyclopedia/databases/structured-query-language/ 2/5
10/20/24, 12:27 PM What is SQL, how does it work and how is it being used
With the UPDATE statement, you can easily modify the already existing information in an SQL
table.
With the DELETE statement you can remove unneeded rows from a table.
https://www.ntchosting.com/encyclopedia/databases/structured-query-language/ 3/5
10/20/24, 12:27 PM What is SQL, how does it work and how is it being used
{ntc}
DELETE FROM phonebook WHERE WHERE firstname = 'John' AND lastname = 'Doe';
MENU Your Cart is Empty
DROP - with the DROP statement in SQL you can delete tables, which you no longer need
An example of an SQL DROP
TRUNCATE - with the TRUNCATE statement, you can delete all the content in the table, but
keep the actual table intact and ready for further use
The ALTER statement permits the user to modify an existing object in various ways -- for
example, by adding a column to an existing table.
REVOKE - with the REVOKE statement you can remove all privileges, previously granted to a
user.
{ntc}REVOKEMENU
ALL PRIVILEGES ON database_name TO database_user ; Your Cart is Empty
COMPANY INFORMATION WEB HOSTING SERVICES WEB HOSTING SOLUTIONS HOSTING VIDEOS
https://www.ntchosting.com/encyclopedia/databases/structured-query-language/ 5/5