User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 402,954 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,838 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums

Sub-Select

Join Date: Feb 2008
Posts: 18
Reputation: huangzhi is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
huangzhi huangzhi is offline Offline
Newbie Poster

Re: Sub-Select

  #2  
May 1st, 2008
select top 1 *
  from (select * 
             from (select * from table where columname > '2') X 
             where columname > '4') Y
  where columname > '6'
  order by columname desc
Hence Wijaya
www.ex-Soft.tk
Reply With Quote  
All times are GMT -4. The time now is 6:35 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC