SQL Most Asked Interview Questions || Part 03 || ORDER BY GROUP BY ||ORDER OF EXECUTION OF SQL Query

Sdílet
Vložit
  • čas přidán 5. 09. 2024
  • Hello Learners :),
    please mail on studentforyou07@gmail.com for any query .
    Please find Below queries are solved in this tutorial :
    • Fetch department wise salary from employee table order by salary USING different aggregate functions
    • Find the Headcount of each dept employee.
    • Fetch department, no of employees in a department, total salary with respect to a department from employee table order by total salary descending
    • Fetch department,total salary with respect to a department from employee table where total salary greater than 1400000 order by Total_Salary descending.
    Order of Execution of SQL:
    FROM clause
    WHERE clause
    GROUP BY clause
    HAVING clause
    SELECT clause
    ORDER BY clause
    #sql #sqlinterviewquestionsandanswers #sqlinterviewquestions #sqlinterview#oracle #sqlquery #development #interview #sqlserver

Komentáře • 1