Yurttas/PL/DBL/postgres/F/01/Company-A/q08.sql
Revision as of 00:41, 5 November 2013 by MassBot1 (talk | contribs) (Created page with "<syntaxhighlight lang="sql" line start="1" enclose="div">ββREM REM q08.sql REM REM Retrieve the average salary of all female employees. REM: SELECT current_schema(); SET s...")
1/*
2REM
3REM q08.sql
4REM
5REM Retrieve the average salary of all female employees.
6REM
7*/
8
9SELECT current_schema();
10SET search_path to "companya";
11
12SELECT AVG(salary)
13FROM Employee
14WHERE sex = 'F';