MCQOPTIONS
Bookmark
Saved Bookmarks
→
Mysql
→
Data Types in Mysql
→
Is there any error in the following query?..
1.
Is there any error in the following query?
A.
No error
B.
Depends
C.
Yes
D.
All of above
E.
None of these
Answer» B. Depends
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Is there any error in the following query?<br><pre class="prettyprint lang-c">SELECT emp_id, title, start_date, fname, fed_id<br>FROM Employee<br>ORDER BY 3, 4;<br></pre>
Is there any error in the following query?<br><pre class="prettyprint lang-c">SELECT emp_id, title, start_date, fname, fed_id<br>FROM Employee<br>ORDER BY LEFT (fed_id, 5);<br></pre>
Is there any error in the following query?<br><pre class="prettyprint lang-c">SELECT emp_id, title, start_date, First_name, fed_id<br>FROM Employee<br>ORDER BY RIGHT (fed_id, 3);<br></pre>
If id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the given query?<br><pre class="prettyprint lang-c">SELECT id<br>FROM student<br>ORDER BY id ASC;<br></pre>
If id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the given query?<br><pre class="prettyprint lang-c">SELECT id<br>FROM Student<br>ORDER BY id DESC;<br></pre>
What is the significance of ORDER BY emp_id ASC in the given query?<br><pre class="prettyprint lang-c">SELECT id, First_name, Last_name<br>FROM Student<br>ORDER BY id ASC;<br></pre>
What is the significance of ORDER BY emp_id DESC in the given query?<br><pre class="prettyprint lang-c">SELECT id, First_name, Last_name<br>FROM Student<br>ORDER BY id DESC;<br></pre>
What will be the order of sorting in the given query?<br><pre class="prettyprint lang-c">SELECT emp_id, emp_name<br>FROM Employee<br>ORDER BY emp_id, emp_name;<br></pre>
What is the significance of ORDER BY in the given query?<br><pre class="prettyprint lang-c">SELECT emp_id, fname, lname<br>FROM Employee<br>ORDER BY emp_id;<br></pre>
If emp_id contain the following set {-1, -2, 2, 3, -3, 1}, what will be the output on execution of the given query?<br><pre class="prettyprint lang-c">SELECT id<br>FROM Student<br>ORDER BY id;<br></pre>
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply