SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT D.DEPARTMENT, CAST(MIN(E.SALARY) AS FLOAT) / NULLIF(CAST(MAX(E.SALARY) AS FLOAT), 0) AS SALARY_DIFF_RATIO FROM EMPLOYEE AS E JOIN DEPARTMENT AS D ON E.DEPT_NO = D.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