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 / nishadks

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:
-------
DDD

Is This Answer Correct ?    19 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What samples and sample databases are provided by microsoft?

566


What is blocking and how would you troubleshoot it? : sql server database administration

585


Can a database be shrunk with users active?

601


What are some examples of schemas?

533


What are the lambda triggers?

483






What are the advantages of policy management?

582


What is pivot and unpivot?

638


How to add the custom code in Report?

99


How to copy data from one table to another table?

540


What is difference between createstatement and preparedstatement?

543


What are the recovery models in sql server 2000?

556


Why do we use sql limitations? Which constraints can we use while making a database in sql?

559


What is a with(nolock)?

575


What are the different SQL Server Versions you have worked on?

550


What are the advantages of partitioning?

639