A fullselect is a form of query that can be used in SQL statements. A scalar fullselect is a fullselect that returns one row containing only one value. Scalar fullselects are useful for retrieving data values from the database for use in an expression.
SELECT LASTNAME, FIRSTNME FROM EMPLOYEE WHERE SALARY > (SELECT AVG(SALARY) FROM EMPLOYEE)
SELECT AVG(SALARY) AS "Average_Employee", (SELECT AVG(SALARY) AS "Average_Staff" FROM STAFF) FROM EMPLOYEE