:: Home Page            
 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                      
Categories >> Software >> Microsoft Related >> VB.NET


 Visual Basic interview questions  Visual Basic Interview Questions (615)
 C Sharp interview questions  C Sharp Interview Questions (722)
 ASP.NET interview questions  ASP.NET Interview Questions (1444)
 VB.NET interview questions  VB.NET Interview Questions (151)
 COM+ interview questions  COM+ Interview Questions (41)
 ADO.NET interview questions  ADO.NET Interview Questions (199)
 IIS interview questions  IIS Interview Questions (86)
 MTS interview questions  MTS Interview Questions (5)
 Crystal Reports interview questions  Crystal Reports Interview Questions (62)
 BizTalk interview questions  BizTalk Interview Questions (33)
 Dot Net interview questions  Dot Net Interview Questions (861)
 Exchange Server interview questions  Exchange Server Interview Questions (103)
 SharePoint interview questions  SharePoint Interview Questions (25)
 WCF interview questions  WCF Interview Questions (8)
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions (193)
sql satement for 2nd maximum value
 Question Submitted By :: VB.NET
I also faced this Question!!     Answer Posted By  
# 1
select top 1 * from author where phone < (select max(phone)
from author) order by phone desc
Is This Answer Correct ?    18 Yes 4 No
Archana Chavan
# 2
author is Table name
ID is column name

select top 1 * from author where ID < (select max(ID)
from author) order by ID desc
Is This Answer Correct ?    16 Yes 3 No
Murli D
# 3
select top 1 sal from
( select top 2 sal from test order by sal desc ) as kk order
by sal
Is This Answer Correct ?    8 Yes 2 No
# 4
create table emp with row empsal having the datatype float
and insert some salary
now to get the second max salary
write the sql statement

select max(empsal) from emp where empsal<(select max(empsal)
from emp)
its asubquery
Is This Answer Correct ?    7 Yes 2 No
# 5
Rohan answer given by you was not working..... 
Is This Answer Correct ?    6 Yes 3 No
# 6
Hey guys use this query ,i used it so many time ,it will be
useful to you..try this one...

SELECT MAX(Salary) AS Expr1
FROM Employees
WHERE (Salary <
FROM Employees))
Is This Answer Correct ?    3 Yes 1 No
Sanjeev Singla
# 7
select Amount from T2 where Amount = ( select max(Amount)
from T2 where Amount < ( select max(Amount) from T2 ))
Is This Answer Correct ?    3 Yes 3 No
Ramavtar Rajput
# 8
select distinct top 2 salary from employee order by salary
Is This Answer Correct ?    3 Yes 3 No
# 9
select top 1 UnitsInStock
from products
where UnitsInStock in (select top 2 UnitsInStock from
products order by UnitsInStock desc)
Is This Answer Correct ?    4 Yes 4 No
Kaushal Gajjar
# 10
department as table name,sfee as column name
SELECT TOP (1) sfee
Is This Answer Correct ?    1 Yes 1 No

Other VB.NET Interview Questions
  Question Asked @ Answers
What is the Difference between Web User Control and Web Custom Control?   6
how many server controls are presented in   2
How do you declare static variable and how it is declared and what is its lifetime? Infosys 3
ColumnMapping belongs to which namespaces?   1
i could not run my application in any computers if i want to run it i have to install the full version of visual studio 2005. it is really hard and feel embarrassing in front of the people though i installed .net framework where goes wrong   1
when do we need a multiple document interface?   2
code for itemstockgroupwise record?   1
What is "Polymorphism" and what are Polymorphism in VB.Net?   2
sir i want to ask you that how can i fetch or get sql data into texboxes.where i want to show record in specific texboxes related to student information.when i click on button all data show on texboxes when i put id or name plz inform me on my id   1
1234 123 12 1 how to design above pic in ABC 2
what is   10
i have attended interview for cognizant ( 3 +,on .net ) on 19-06-2010 till now i have not given the status confused... does any one faced same situation ...could please tell what would be happened   1
For more VB.NET Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::