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 361,554 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,097 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:
Views: 583 | Replies: 1
Reply
Join Date: Apr 2008
Posts: 2
Reputation: HugoCore is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
HugoCore HugoCore is offline Offline
Newbie Poster

Sub-Select

  #1  
Apr 29th, 2008
Hi,

How-To for example:

SELECT * FROM table WHERE columname > '2'

FROM THOSE WHERE columname > '4'

FROM THESE LAST WHERE columname > '6'

Thank you very much,

Core regards
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 14
Reputation: huangzhi is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MS SQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 2:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC