what is the correct way of selection statement
a. select/from/table_name/orderby/groupby/having
b. select/from/table_name/groupby/having/orderby

Answers were Sorted based on User's Feedback



what is the correct way of selection statement a. select/from/table_name/orderby/groupby/having b...

Answer / kavitha nedigunta

b. select/from/table_name/groupby/having/orderby

EG: select deptno,max(sal)
from emp
group by deptno
having max(sal)> 5000
order by deptno

Is This Answer Correct ?    69 Yes 1 No

what is the correct way of selection statement a. select/from/table_name/orderby/groupby/having b...

Answer / iamanocp

Answer is b.
b. select/from/table_name/groupby/having/orderby

Is This Answer Correct ?    18 Yes 0 No

what is the correct way of selection statement a. select/from/table_name/orderby/groupby/having b...

Answer / anil kumar jaiswal

the sequence is like this :
select
from
table_name
where
group by
having
order by.

where ever writing a sql query the sequence should be in this order.
so the answer B is correct.

Is This Answer Correct ?    0 Yes 0 No

what is the correct way of selection statement a. select/from/table_name/orderby/groupby/having b...

Answer / abhishekjaiswal

It's Ans(b).

Is This Answer Correct ?    1 Yes 2 No

what is the correct way of selection statement a. select/from/table_name/orderby/groupby/having b...

Answer / subbu

both are wrong

from/table_name/group by/having/select/oderby

Is This Answer Correct ?    3 Yes 13 No

Post New Answer

More SQL PLSQL Interview Questions

what is explain plan?, given an example...

3 Answers   Polaris,


What does where 1 1 mean in sql?

0 Answers  


What is group function in sql?

0 Answers  


what is the difference between delete and truncate statement in sql? : Sql dba

0 Answers  


What is package in pl sql?

0 Answers  






What are the advantages of indexing?

0 Answers  


How many types of triggers are there in pl sql?

0 Answers  


What are all the different normalizations?

0 Answers  


Is join an inner join?

0 Answers  


Suppose There is a string A.B....C.......D.........E........F In this string dots (.) are not having fixed count in between of string. I want the output to have string with one dot between. I.e. A.B.C.D.E.F

6 Answers   IBM,


Can a table have two primary keys?

44 Answers   HCL, MetaCube,


Why is the cursor important?

0 Answers  


Categories