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,476 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,884 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

Getting current value in Select Statement

Join Date: Apr 2005
Posts: 3
Reputation: gminhas is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gminhas gminhas is offline Offline
Newbie Poster

Re: Getting current value in Select Statement

  #3  
Apr 12th, 2005
yes u can..

SELECT pk_ID, columnN,(case when columnM is '1' then TableName.pk_ID else '0' end) as columnM from TableName
WHERE This = That

This is just an example..wat u can do is use the TableName.ColumnName anywhere..

if any more issues..get back to me..
Reply With Quote  
All times are GMT -4. The time now is 4:40 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC