ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
one table has four field id,name,design,salary.  i have to
find maximum salary .
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 1
select * from tab where max(salary)
 
Is This Answer Correct ?    2 Yes 1 No
Guest
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 2
select max(sal) from <tablename>
if this answer not correct plz give me commets on the answer
 
Is This Answer Correct ?    2 Yes 0 No
Sujit
 
 
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 3
Select * from table1 where salary = (select max(salary) 
from table1)
 
Is This Answer Correct ?    2 Yes 0 No
Prashant
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 4
SELECT MAX(columnName1)
FROM Employee
 
Is This Answer Correct ?    2 Yes 0 No
Soni
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 5
select max(salary) from tablename
 
Is This Answer Correct ?    1 Yes 0 No
Elumalai.k
 
  Re: one table has four field id,name,design,salary. i have to find maximum salary .
Answer
# 6
hi,, it work 


select * from table where salary =(select max(salary) from
table)    .......this returns whole record of that salary,,,,
an if u want just that maximum salary than



select max(salary) from table
 
Is This Answer Correct ?    2 Yes 0 No
Ashish
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
Explain the basic concepts of SQL server architecture?  2
What is a sub-query? When would you use one?  2
What is a deadlock and what is a live lock? How will you go about resolving deadlocks?  1
What is database replicaion? What are the different types of replication you can set up in SQL Server? HCL3
Can you create UNIQUE and PRIMARY KEY constraints on computed columns in SQL Server 2000? Infosys1
What is the diff between Static Queries and Dynamic queries give me some examples CSC1
What are three SQL keywords used to change or set someone?s permissions?  3
What is a materialized view?  2
Explain different isolation levels?  3
what is index seek and index scan?  2
how can i view structure of table in sql server? tell me that query.  2
What are the two virtual tables SQL Server maintains for triggers?  2
Wht is SQL Injection Attack ?  1
can any one answer this query,thank you in advance Table 1 has 2 columns: EmployeeId, T shirtsize(values can be 1,2,3) Table 2 has 2 columns: EmployeeId, Region Write SQL to Find the region which has the largest number of people with Tshirt size=3 Google6
how to rename the table  1
What is a view?  1
What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tell some steps to do the performance tuning TCS1
in emptable i want to retrive the name of employee whose name in 'J'char.exp: arjun,jagadesh,niranjan,anju,aaaj etc.  7
What are the OS services that the SQL Server installation adds?  1
What are cursors? Name four types of cursors and when each one would be applied? Adea-Solutions1
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com