SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT d.DEPARTMENT, CAST(MIN(e.SALARY) AS DECIMAL(10, 2)) / NULLIF(MAX(e.SALARY), 0) AS SALARY_DIFF_RATIO FROM DEPARTMENT d JOIN EMPLOYEE e ON d.DEPT_NO = e.DEPT_NO GROUP BY d.DEPARTMENT ORDER BY SALARY_DIFF_RATIO DESC; ; SELECT 'Last_query_cost' AS "Variable_name", 0 AS "Value" FROM RDB$DATABASE;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear