SQL Wybierz wewnątrz Wybierz
SELECT
column1,
column2,
column3 = (SELECT SUM(columnx) FROM tablex)
FROM table1
Dangerous Dunlin
SELECT
column1,
column2,
column3 = (SELECT SUM(columnx) FROM tablex)
FROM table1
SELECT column1 = (SELECT column-name FROM table-name WHERE condition), column-names FROM table-name WEHRE condition