Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

What do you mean by an execution plan?

0 Answers  


Do you know what is replace and stuff function in sql server?

0 Answers  


what is hash nonclustered index

0 Answers  


if a parameter is not send to a stored procedure what type of identifier is to be used in Stp and if that parameter is not feed to the a query inside the Stp how to validate with out useing IF condition

1 Answers   Aviva,


What is partition in sql server?

0 Answers  


select name of emplyoee whose total salary is 130 from following table. id name salary 1 a 100 2 b 20 3 c 50 1 a 30 2 b 70 Post the resulantant Query?

7 Answers  


What is BCP? When does it used in sql server 2012?

0 Answers   TryTechnicals Pvt Ltd,


Find top Nth employee from each department in terms of salary?

13 Answers   RealPage,


Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

0 Answers  


what are the limitations of parameters in a storedprocedure

1 Answers  


What is sub-query in sql server? Explain its properties.

0 Answers  


What are the different types of locks in the database?

0 Answers  


Categories