← Database Management System 🟡 Medium 📋 Sanfoundry

Which of the following queries are legal?

Question #1330 of 749+ in Database Management System

📝 Question #1330

Which of the following queries are legal?

⌨️ Press A B C D to select

All Options & Correct Answer

A SELECT deptno, count(deptno) FROM emp GROUP BY ename; Correct
B SELECT deptno, count(deptno), job FROM emp GROUP BY deptno;
C SELECT deptno, avg(sal) FROM emp;
D SELECT deptno, avg(sal) FROM emp GROUP BY deptno;

📋 Question Details

🎯
Difficulty
Medium
📅
Year
📋
Source
Sanfoundry

📤 Share This MCQ

📚 Want More?

Practice Database Management System MCQs

749+ questions with detailed answers