Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Defini ons
SQL (Structured Query Language) is a common database language which is used to interact with a
rela onal database management system (RDBMS).
T-SQL (Transact-SQL) is an extension of SQL developed by Microso to communicate with SQL Server.
It is necessary to follow best prac ces and conven ons when designing a database to maintain
consistency.
Database
Create a database
Drop a database
Rename a database
Table
Create a table
USE fifa;
Drop a table
USE fifa;
Rename a table
USE fifa;
USE fifa;
Modify a column
USE fifa;
Rename a column
USE fifa;
INSERT
Insert implicitly
USE fifa;
Insert explicitly
USE fifa;
SELECT
USE fifa;
or
USE fifa;
UPDATE
USE fifa;
UPDATE players
SET
first_name = 'Xavi',
position = 'DM'
WHERE
id = 4;
DELETE
USE fifa;
USE fifa;
Operators
AND
OR
<
>
==
!=
<>
IN
NOT IN