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 will you make an attribute not process? : sql server analysis services, ssas

582


Explain what is scheduled job and how to create it?

542


Explain the ways to controlling cursor behavior?

538


Explain the flow of creating a cube? : sql server analysis services, ssas

620


What are secondary xml indexes?

562






How do I start sql server?

529


Do you know what is a linked server in sql server?

545


Can you explain powershell included in sql server 2008?

503


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

501


How to download and install the scaled-down database adventureworkslt?

606


Explain various data region available in ssrs with their use?

490


What is a unique index?

525


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1555


Can primary key be a foreign key?

560


What are ddl triggers and types of ddl trigger?

604