100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4,6 TrustPilot
logo-home
Samenvatting

Summary SQL Programming Language NOTES

Beoordeling
-
Verkocht
-
Pagina's
44
Geüpload op
28-02-2025
Geschreven in
2023/2024

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

Instelling
Sql
Vak
Sql

Voorbeeld van de inhoud

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

Geschreven voor

Instelling
Sql
Vak
Sql

Documentinformatie

Geüpload op
28 februari 2025
Aantal pagina's
44
Geschreven in
2023/2024
Type
Samenvatting
$3.99
Krijg toegang tot het volledige document:

100% tevredenheidsgarantie
Direct beschikbaar na je betaling
Lees online óf als PDF
Geen vaste maandelijkse kosten

Maak kennis met de verkoper
Seller avatar
martinsokorie

Maak kennis met de verkoper

Seller avatar
martinsokorie University Of Maryland - College Park
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
0
Lid sinds
11 maanden
Aantal volgers
0
Documenten
3
Laatst verkocht
-

0.0

0 beoordelingen

5
0
4
0
3
0
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen