
Linguaggio SQL
Presentation
•
Computers
•
11th Grade
•
Easy
Lucia Intelisano
Used 14+ times
FREE Resource
17 Slides • 4 Questions
1
Linguaggio SQL
L.I.
2
Linguaggio SQL
Un DBMS deve disporre di un linguaggio per:
definire e creare il database: DDL - Data Definition Language
inserire, cancellare e modificare i dati: DML - Data Manipulation Language
interrogare il database per estrarre informazioni: QL - Query Language
Il linguaggio deve permettere di fare tutto questo facilmente ed essere basato su costrutti semplici e facili da imparare. Le sue caratteristiche, infine, devono essere standardizzate in modo che un utente, cambiando DBMS, non debba apprendere un nuovo linguaggio per usare la base dati.
3
Multiple Choice
L'acronimo DBMS sta per:
Database Management System
Data Basic Management System
Database Monitoring System
Database Management Security
4
Perché è utile imparare il linguaggio SQL
Il linguaggio SQL (Structured Query Language) è nato con lo scopo di poter eseguire con facilità:
la definizione e la creazione di un database relazionale;
le diverse operazioni di gestione dei dati, quali l’inserimento, la cancellazione e la varia-zione dei record di un archivio;
l’interrogazione del database per estrarre informazioni.
5
Multiple Choice
SQL sta per
Stop Queue Language
Structured Query Language
Start Query Language
Slow Queue Language
6
Le funzionalità del linguaggio SQL
Il linguaggio SQL consente all’utente di:
•definire il database, la struttura delle tabelle che lo compongono, gli indici, le associazioni tra le tabelle (funzioni di DDL, Data Definition Language);
• modificare i dati contenuti nel database, con le operazioni di inserimento, variazione e cancellazione, ed effettuare le interrogazioni (funzioni di DML, Data Manipulation Language);
• definire gli utenti e controllare gli accessi al database (funzioni di DCL, Data Control Language);
7
Multiple Choice
Il Data Definition Language è:
Un'estensione di SQL
La parte SQL che definisce la struttura di un database
La parte SQL che manipola i dati contenuti in un database
Un estensione di DML
8
MySQL
MySQL è un RDBMS* open source e libero, e rappresenta una delle tecnologie più note e diffuse nel mondo dell’IT.
MySQL nacque nel 1996 per opera dell’azienda svedese Tcx, basato su un DBMS relazionale preesistente, chiamato mSQL.
Il progetto venne distribuito in modalità open source per favorirne la crescita.
RDBMS: relational database management system
9
creare un database
CREATE DATABASE nuovodb;
Some text here about the topic of discussion
10
selezionare un database
USE nuovodb;
11
Creare tabelle MySQL
CREATE TABLE IF NOT EXISTS Persone (
IDPERSONA INT NOT NULL AUTO_INCREMENT,
Nome VARCHAR(45) NOT NULL,
Cognome VARCHAR(45) NOT NULL,
DataDiNascita DATE NOT NULL,
Sesso ENUM('M','F') NOT NULL,
PRIMARY KEY (id)) ;
12
Rinominare le tabelle
ALTER TABLE Persone RENAME Individui;
13
Modifica di nome e tipo di dato dei campi
ALTER TABLE Individui CHANGE Nome NomeIndividuo varchar(100);
14
Aggiungere un campo ad una tabella
ALTER TABLE Persone ADD n_telefono INT;
15
Cancellare una tabella
DROP TABLE table_name ;
16
Multiple Choice
Per modificare la struttura di una tabella, si usa il comando:
CREATE
DROP
UPDATE
ALTER
17
Tipi di dati in una tabella
Numerici
18
Tipi di dati in una tabella
Numerici
19
Tipi di dati in una tabella
Stringa
20
Tipi di dati in una tabella
Data
21
Creare le seguenti tabelle
corsi(IDCORSO,titolo,docente,anno)
esami(idmatricola*, idcorso*, voto, lode, dataesame)
studente(IDMATRICOLA,nome,cognome, citta, datanascita )
romanzi(IDROMANZO, Titolo, Anno)
romanziautori(idromanzo,idautore)
autori(IDAUTORE, NomeAut, AnnoN, Nazione)
Linguaggio SQL
L.I.
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
13 questions
Pengamanan jaringan presentasi
Presentation
•
11th Grade
18 questions
Vektor (1-a) Operasi Aljabar Vektor
Presentation
•
11th Grade
15 questions
BUNGA TUNGGAL DAN BUNGA MAJEMUK
Presentation
•
11th Grade
17 questions
Sel
Presentation
•
11th Grade
16 questions
Drama
Presentation
•
11th Grade
14 questions
topologi ring_XI TJKT 1
Presentation
•
11th Grade
16 questions
microsoft word
Presentation
•
10th Grade
19 questions
E-mail Resmi
Presentation
•
11th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade
22 questions
Revise and Edit Final Review 3
Quiz
•
8th - 12th Grade