SQL SELECT DI DALAM SELECT
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