BlackTDN :: SQL e a Teoria de Conjuntos
_Créditos das imagens: Grok ### 🚀 Você sabia? SQL e a Teoria de Conjuntos estão mais conectados do que imagina! A linguagem SQL (Structured Query Language) tem suas raízes na teoria de conjuntos, um conceito matemático que trata de coleções de objetos. Em bancos de dados relacionais, cada tabela é um conjunto de linhas (ou tuplas), e operações como SELECT, JOIN, UNION e INTERSECT são inspiradas em operações como união (∪), interseção (∩) e diferença (-). Vamos explorar como isso funciona? 👇 --- ### 🔍 Principais Operações de Conjuntos no SQL Imagine duas tabelas simples: Clientes (Conjunto A): ``` +----+-------+ | ID | Nome | +----+-------+ | 1 | Ana | | 2 | João | | 3 | Maria | +----+-------+ ``` Pedidos (Conjunto B): ``` +----+-----------+ | ID | Cliente_ID| +----+-----------+ | 1 | 1 | | 2 | 2 | | 3 | 1 | +----+-----------+ ``` #### 1. União (UNION) - O que faz: Junta tudo de A e B, sem duplicatas (A ∪ B). - Exemplo: ```sql SELECT id FROM cli...
Back In Black
ResponderExcluir(Angus Young - Malcolm Young - Brian Johnson)
back in black I hit the sack
I been too long I’m glad to be back
yes I am
let loose from the noose
that's kept me hanging about
I keep looking at the sky cause it's gettin' me high
forget the hearse cause I’ll never die
I got nine lives cat's eyes
using every one of them and runnin' wild
cause I’m back
yes I’m back well I’m back
yes I’m back
well I’m back back
well I’m back in black
yes I’m back in black
back in the back of a Cadillac
number one with a bullet I’m a power pack
yes I am
in a bang with the gang
they gotta catch me if they want me to hang
cause I’m back on the track and I’m beatin' the flack
nobody's gonna get me on another rap
so look at me now I’m just makin' my play
don't try to push your luck just get out of my way
cause I’m back
yes I’m back
well I’m back
yes I’m back
well I’m back back
well I’m back in black
yes I’m back in black
well I’m back yes I’m back
well I’m back yes I’m back
well I’m back back
well I’m back in black
yes I’m back in black
well I’m back back
well I’m back back
back back
back in black
yes I’m back in black
outta sight
Hehehe Mestrao!!!! 01/2012 BlackTDN...
ResponderExcluir