difference between select column name from table name where
serviceid=2; and select max(column name) from table name
where serviceid=2;
IN ORACLE

Answer Posted / raghu

Let's Say Struct of Table_Name is
Column_name Varchar, Service_id Int

Values:('AAA',2),('BBB',2),('CCC',2),('DDD',2)

ANS:
select column name from table name where
serviceid=2
ANS:


Column_name
----------------------
AAA
BBB
CCC
DDD
select max(column name) from table name
where serviceid=2;

ANS:
-------
AAA

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about SQLOS?

764


How can you set the threshold at which sql server will generate keysets asynchronously?

734


What's the information that can be stored inside a bit column?

709


What is the query and subquery?

804


What is report server project?

122






What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

794


Explain the properties of a relational table?

750


What is subquery explain with example?

796


What is self contained sub query?

752


What is snapshot parameter in ssrs?

124


What is transaction server isolation?

748


List some advantages and disadvantages of stored procedure?

737


What is system stored procedures?

760


What are the grouping functions?

700


Differentiate between sql temp table vs table variable?

667