aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • SQL Fundamentals
  • "select E_Name,E_Number from EMP order by 2" This Query is
Multiple choice technology databases

"select E_Name,E_Number from EMP order by 2" This Query is

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The ORDER BY clause can use column position numbers. 'ORDER BY 2' sorts by the second column in the SELECT list (E_Number). This is valid SQL syntax.

Keep practicing — related questions

  • Order by – clause comes last in select statement
  • Select ename from emp where ename =”Scott”; This select statement executes successfully.
  • Select ename from emp where ename =”Scott”; This select statement executes successfully.
  • Select ename from emp where ename =”Scott”; This select statement executes successfully.
  • Select ename from emp where ename =”Scott”; This select statement executes successfully.
  • Select ename from emp where ename =”Scott”; This select statement executes successfully.
  • The below query Executes Successfully without Error: select * from emp where dept_no in (select dept_no fro...
  • Consider an emp table having columns empno, empname, salary Which of the following queries sort emp table b...
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy