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 is the system function to get current user's user id? : Sql server database administration

637


What is clustered vs nonclustered index?

590


Explain about analysis services?

661


How to get @@error and @@rowcount at the same time?

666


What are the two modes of authentication in sql server?

606






Difference between DELETE and TRUNCATE?

699


How to disable triggers using "disable trigger"?

660


When I run the sql server 2000 setup, it just hangs. What do I do?

723


What are the system database in sql server 2005?

641


Explain different types of Normalization.

685


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1321


can you implement data mining in SSRS?

117


Explain what is the use of custom fields in report?

590


What is openxml in sql server?

757


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

645