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 2nf example?

728


What is replication with database mirroring? : sql server database administration

701


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

660


Is sql server free?

670


Explain what is the difference between union and union all?

743






What to check if a User database is locked?

768


Name and describe few console utilities for ssrs?

264


What are the types of user defined functions in sql server?

716


What is query optimization process?

716


What is not null constraint?

814


Explain transaction server isolation?

740


How many types of dimensions are there and what are they? : sql server analysis services, ssas

774


What are policy management terms?

740


Why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it?

654


What is the difference between resultset and resultsetmetadata?

702