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

How to modify an existing user defined function?

685


How do you check sql server is up and running?

587


What is the stuff?

619


What is extended stored procedures?

641


How do you drop an index?

583






How do you open a cluster administrator?

699


What are the differences between substr and charindex in sql server.

587


Which are the important points to note when multilanguage data is stored in a table?

592


Explain different types of self contained sub query?

615


Using the customer, and order table in northwind database, please write a query to produce xml?

757


What is transactional replication?

629


Tell me time data type, datetime2, datetimeoffset data type in sql server 2008?

657


What is ms sql server triggers?

626


What are the features of Embedded SQL

776


What happens if an integer is too big for int date type?

661