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

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

Values:('Z',2),('Y',2),('B',2),('C',2)

ANS:
select column name from table name where
serviceid=2
Will be 'C'

ANS:
select max(column name) from table name
where serviceid=2;
Will Be 'Z'

Is This Answer Correct ?    3 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the stuff?

709


What is an expensive query?

700


Is there any difference between primary key and unique with the not null condition?

702


How to view existing indexes on an given table using sp_help?

799


Does transparent data encryption provide encryption when transmitting data across the network?

803






Why is replication required on the sql server?

766


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

823


What do you understand by mirroring?

742


How to enter binary string literals in ms sql server?

819


What are the benefits of normalization?

782


Who is the owner of a schema in ms sql server?

717


How do I install sql server?

619


where the connection string store in the database

1724


What are the system database in sql server 2005?

732


How do you open a cluster administrator?

784