Add example of union
This commit is contained in:
parent
73c52324a4
commit
0d8ae7984a
5
1/GBD/notes/union-example.sql
Normal file
5
1/GBD/notes/union-example.sql
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-- futbolistas
|
||||||
|
|
||||||
|
SELECT salario "euros" FROM futbolistas UNION SELECT presupuesto FROM equipos;
|
||||||
|
|
||||||
|
SELECT nombre FROM futbolistas WHERE altura <= ALL(SELECT altura FROM futbolistas);
|
Loading…
Reference in New Issue
Block a user