Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 case statements

Author  Topic 

msugradus
Starting Member

40 Posts

Posted - 2007-06-21 : 13:44:03
whats the most efficient way to do this? I have a column that contains three values. A, B, C If colVal = A add one to batch a, if B add one to batch b...ect . Then display all three values

X002548
Not Just a Number

15586 Posts

Posted - 2007-06-21 : 14:25:14
I have no idea what you're talking about

Read the hint link in my sig and post what it asks for



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

maya_zakry
Constraint Violating Yak Guru

379 Posts

Posted - 2007-06-21 : 21:40:21
what do u mean by "add one to batch a,"? did u mean add 1 to A? or what?

~~~Focus on problem, not solution ¯\(º_o)/¯ ~~~
Go to Top of Page

pbguy
Constraint Violating Yak Guru

319 Posts

Posted - 2007-06-21 : 23:36:36
Post some sample data and required output you want...

--------------------------------------------------
S.Ahamed
Go to Top of Page
   

- Advertisement -