difference between select column name from table name where
serviceid=2; and select max(column name) from table name
where serviceid=2;
IN ORACLE

Answers were Sorted based on User's Feedback



difference between select column name from table name where serviceid=2; and select max(column nam..

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

difference between select column name from table name where serviceid=2; and select max(column nam..

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

difference between select column name from table name where serviceid=2; and select max(column nam..

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

More SQL Server Interview Questions

Differences between Standby Vs No recovery?

2 Answers   Wipro,


I have to display ten columns values from diffrent ten tables. how many joins are require?

10 Answers   CarrizalSoft Technologies, HCL,


What is 2nf normalization?

0 Answers  


Give some Scenario for Non Clusterd index? Can we write system defined functions in side The Function? Wat is the Unique Datatype?

0 Answers   Value Labs,


What is a data source file?

0 Answers  






What do you understand by triggers?

0 Answers  


How can I change procedure name in sql server?

0 Answers  


What is msdb database? : SQL Server Architecture

0 Answers  


Magic Tables ?

2 Answers   Thomson Reuters,


What are mdf,ndf,ldf files and how to see the data in those files?

6 Answers   Accenture,


What is a transaction and what are ACID properties?

14 Answers   Config Systems, IBM, TCS, Virtusa,


What will happen when a Rollback statement is executed inside a trigger?

1 Answers   Flextronics, Hexaware,


Categories