19.08.2021 Views

1546027450-1546027450-sql

Ensina estrutura básica de SQL

Ensina estrutura básica de SQL

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Capítulo 10 – CONSULTAS AVANÇADAS............................ 162

10.1 ROLLUP........................................................................................................162

10.1.1 ROLLUP – usando GROUPING().........................................................165

10.2 CUBE.............................................................................................................166

10.2.1 CUBE usando GROUPING().................................................................167

10.3 Consultas hierárquicas................................................................................168

Resumo..................................................................................................................172

Exercícios....................................................................................................173

Capítulo 11 – DTL – DATA TRANSACT LANGUAGE......... 175

11.1 COMMIT......................................................................................................176

11.2 ROLLBACK..................................................................................................176

11.3 SAVEPOINTS...............................................................................................177

Resumo..................................................................................................................179

Exercícios...............................................................................................................179

Capítulo 12 – DCL – DATA CONTROL LANGUAGE........... 181

12.1 Privilégios de sistema..................................................................................181

12.2 Privilégios de objeto.....................................................................................182

12.3 GRANT.........................................................................................................182

12.4 REVOKE.......................................................................................................184

Resumo..................................................................................................................184

Exercícios...............................................................................................................185

Capítulo 13 – INDEXES (ÍNDICES)....................................... 187

13.1 Índices únicos (exclusivos).........................................................................187

13.2 Índices não únicos (não exclusivos)..........................................................188

13.3 Renomear um índice...................................................................................188

13.4 Eliminar um índice......................................................................................188

Resumo..................................................................................................................189

Exercícios...............................................................................................................189

Capítulo 14 – VIEWS (VISÕES).............................................. 191

14.1 Visões regulares............................................................................................191

14.1.1 Visões regulares – READ ONLY.............................................................192

14.1.2 Visões regulares – apelidos para colunas...............................................193

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!