WHERE DOES SQL FIT IN?
With SQL you create new data, delete old
data, modify existing data, and retrieve data
from a relational database. The following
statement, for example, creates a new
CREATE TABLE employee
first_name VARCHAR2( 30),
last_name VARCHAR2( 30),
salary NUMBER( 9, 2),
Note that this statement creates a table with
the names of each column (aka data attribute) and each column’s respective datatype
and length. For example, this line of the
CREATE TABLE statement:
creates a table column (data attribute) called
EMPLOYEE_ID with a datatype of NUMBER.
This EMPLO YEE_ID column is therefore
defined to contain only numeric data
The SQL SELECT statement enables you
to retrieve, or query, data. For example,
the following SQL statement retrieves all
FIRS T_NAME, LAST_NAME, and HIRE_
DATE column values from this article’s
SELECT first_name, last_name, hire_date
As you can see, the syntax is fairly
This article introduced the organization and
structure of a relational database. It described
tables, columns, and rows and presented
examples of data and how it is represented in
a relational database. The next article in this
SQL 101 series will continue the discussion
of data normalization and introduce the SQL
execution environment. T
Melanie Caffrey is
a senior development
manager at Oracle.
Caffrey is a coauthor
of Expert PL/SQL
Practices for Oracle
Developers and DBAs (Apress, 2011).
READ more about relational database design
THE RIGHT PARTNER MAKES
Oracle Database Concepts 11g Release 2 ( 11. 2)
Oracle Database SQL Language Reference 11g
Release 1 ( 11. 1)
A WORLD OF DIFFERENCE
WHEN yOu NEED TO IMPROvE DATA CENTER
PERFORMANCE AND EFFICIENCy, WHILE
REDuCING OvERHEAD, THERE’S ONLy ONE
PLACE TO GO.
Dimension Systems is a proven leader in complete enterprise
infrastructure and management, with global experience
and the expertise to provide scalable, reliable solutions that
enhance productivity, while finding new ways to lower
DIMENSION SySTEMS AND ORACLE® DELIvER
POWERFuL yET COST-EFFECTIvE SOLu TIONS TO
yOuR IT MANAGEMENT NEEDS. DIMENSION
SySTEMS WILL HELP yOu:
» Boost speed and performance of multi-threaded applications
with Oracle’s SPARC T3 servers.
» Cut transaction times by half, while reducing power and space
requirements with Oracle’s nimble Sun Storage F5100 Flash Array.
» Optimize storage and simplify management of multiple data
centers with Oracle’s Sun ZFS Storage Appliance.
IF yOu’RE LOOKING FOR A DATA CENTER SOLu TION THAT IS A
WORLD APART, CONTACT DIMENSION SySTEMS TODAy. vISIT
© 2011 Dimension Systems. All rights reserved. Oracle and Java are registered trademarks of
Oracle and/or its affiliates. All company logos and product names mentioned herein may be
trademarks and/or registered trademarks of their respective companies.