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
Resumen

Summary SQL Programming Language NOTES

Puntuación
-
Vendido
-
Páginas
44
Subido en
28-02-2025
Escrito en
2023/2024

All you need to know to be proficient at coding in SQL

Institución
Sql
Grado
Sql

Vista previa del contenido

SQL
Created @December 18, 2023 8:48 PM

Status Open

Updated @February 7, 2024 3:31 PM




SQL 1

, SQL

INTRODUCTION

SQL —> Structured Query Language —> programming language designed to
manage data stored in relational databases used for…

web frameworks

database applications




MANIPULATION


Relational Databases —>
Syntax

-- relational database --> one table

SELECT * FROM celebs;


relational databases —> database that organizes information into one or more
tables

table —> collection of data organized into rows and columns. —> referred to as
relations

EX: celebs

column —> set of data values of a particular type

EX: id, name, age

row —> single record in a table

EX: id = 1, name = Justin Bieber, age = 22


SQL 2

, All data stored in a relational database is of a certain data type

DATA TYPES

INTEGER —> positive or negative whole number

TEXT —> text string

DATE —> date formatted as YYYY-MM-DD

REAL —> decimal value



Statements —>
statement —> text that the database recognizes as a valid command —> end in a
semicolon (;)

Syntax

CREATE TABLE table_name (
column_1 data_type,
column_2 data_type,
column_3 data_type
);




clause —> perform specific tasks in SQL —> referred to as commands

written in capital letters

EX: CREATE TABLE

table_name —> refers to the name of the table that the command is applied to

parameter —> list of columns, data types, or values that are passed to a clause as
an argument

separated with commas

EX: (column_1 data_type, column_2 data_type…) —> the parameter




SQL 3

, structure of SQL statements —> vary

number of lines does not matter

statement can be written all on one line, or split up across multiple lines



Create —>
CREATE statements allow us to create a new table in the database

enclosed by parentheses and ends with a semicolon

Syntax

CREATE TABLE celebs (
id INTEGER,
name TEXT,
age INTEGER
);

-- celebs --> name of the table
-- (id INTEGER, name TEXT, age INTEGER) --> list of parameters defining
-- each column, or attribute in the table and its data type

CREATE TABLE —> clause that creates a new table

id —> first column in the table that stores an INTEGER

name —> second column in the table that stores a TEXT
age —> third column in the table that stores an INTEGER



Insert —>
INSERT statement inserts a new row into a table

INSERT INTO

VALUES



SQL 4

Escuela, estudio y materia

Institución
Sql
Grado
Sql

Información del documento

Subido en
28 de febrero de 2025
Número de páginas
44
Escrito en
2023/2024
Tipo
Resumen

Temas

$3.99
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
martinsokorie

Conoce al vendedor

Seller avatar
martinsokorie University Of Maryland - College Park
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
0
Miembro desde
11 meses
Número de seguidores
0
Documentos
3
Ú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