aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • databases Online Quiz - 72
  • Review the following SQL, and choose the most appropriate...
Multiple choice technology databases

Review the following SQL, and choose the most appropriate option.

  1. The statement will show the number of jobs in each department

  2. The statement will show the number of employees in each department.

  3. The statement will generate an error.

  4. The statement will work if the GROUP BY clause is removed.

Reveal answer Fill a bubble to check yourself
C Correct answer

Keep practicing — related questions

  • SELECT department, COUNT(1) FROM employees WHERE salary > 25000 GROUP BY department; What about this query ...
  • Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL F...
  • Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL F...
  • Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_NAME VARCHAR2(30) NOT NULL F...
  • The following statement will raise an exception on which line?
  • Consider the following SELECT statement: SELECT dept_no "Departments", MAX(salary) "Max Salaries" FROM empl...
  • What will be the output of the following query? select count(*) from employees e1, e2, department d where e...
  • The following statement will raise an exception on which line? select dept_name, avg(all salary) ,count(*) ...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy