100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4,6 TrustPilot
logo-home
Notas de lectura

SQL query

Puntuación
-
Vendido
-
Páginas
42
Subido en
13-01-2022
Escrito en
2019/2020

SQL query Structured query

Institución
Grado











Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

Subido en
13 de enero de 2022
Número de páginas
42
Escrito en
2019/2020
Tipo
Notas de lectura
Profesor(es)
Marco
Contiene
Todas las clases

Temas

Vista previa del contenido

Chapter 1




Writing Basic

SQL Statements




1

, Objectives

After completing this lesson, you should be able to do the
following:
•List the capabilities of SQL SELECT statements
•Execute a basic SELECT statement
•Differentiate between SQL statements and SQL*Plus
commands


Lesson Aim

To extract data from the database. you need to use the structured query
language (SQL) SELECT statement You may need to restrict the columns
that are displayed. This lesson describes all Ihe SQL statements that you need
to perform these actions.

You may want to create SELECT statements that can be used time and time
again. Tins lesson also covers the use of SQL*Plus commands to execute
SQL statements




2

, Capabilities of SQL SELECT
Statements

Selection Projection
Table
2




Table
1




Capabilities of SQL SELECT Statements
A SELECT statement retrieves information from the database. Using a
SELECT statement, you can do the following:
Selection: You can use the selection capability in SQL to choose the rows in
a table that you want returned by a query. You can use various criteria to
selectively restrict the rows that you see.
Projection: You can use the projection capability in SQL to choose the
columns in a table that you want returned by your query. You can choose as
few or as many columns of the table as you require.
Join: You can use the join capability in SQL to bring together data that is
stored in different tables by creating a link through a column that both the
tables share. You will learn more about joins in a later lesson.




3

, Basic SELECT Statement
SELECT [DISTINCT] {*, column [alias],..,}
FROM table;



•SELECT identifies what columns.
•FROM identifies which table.



Basic SELECT Statement
In its simplest form, a SELECT statement must include the following
A SELECT clause, which specifies the columns to be displayed.
A FROM clause, which specifies the table containing the columns
listed in the SELECT clause.
In the syntax:
SELECT is a list of one or more columns.
DISTINCT suppresses duplicates.
* selects all columns
column selects the named column.
alias gives selected columns different headings.
FROM table specifies the table containing the columns.


Note: Throughout this course, the words keyword, clause, and statement are
used.
A keyword refers to an individual SQL element. For example, SELECT and
FROM are keywords.
A clause is a part of an SQL statement. For example. SELECT empno,
ename, … is a clause.
A statement is a combination of two or more clauses. For example. SELECT
* FROM emp is a SQL statement.




4
$16.33
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor
Seller avatar
abdalkareemadel93

Documento también disponible en un lote

Conoce al vendedor

Seller avatar
abdalkareemadel93
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
0
Miembro desde
4 año
Número de seguidores
0
Documentos
7
Última venta
-

0.0

0 reseñas

5
0
4
0
3
0
2
0
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes