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
 Multiplying 2 columns and filtered by a 3rd

Author  Topic 

ksimpson
Starting Member

1 Post

Posted - 2014-08-07 : 17:27:06
I am trying to multiply 2 columns and filtered by a 3rd but havent had any luck.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-08-07 : 17:29:35
Please post your question like this: http://www.sqlservercentral.com/articles/Best+Practices/61537/

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

Bustaz Kool
Master Smack Fu Yak Hacker

1834 Posts

Posted - 2014-08-08 : 10:44:02
[code]select Price * SalesTax as AdjustedPrice
from MyTable
where State = 'CA'[/code]??? (Not clear what you mean by "filtered")



Too often we enjoy the comfort of opinion without the discomfort of thought. - John F. Kennedy
Go to Top of Page

Chris_Kelley
Posting Yak Master

114 Posts

Posted - 2014-08-09 : 10:53:45
Do you mean GROUP BY? If so the GROUP BY column does not need to be included in the SELECT statement.

Thanks,
Chris
Jr Programmer
Go to Top of Page
   

- Advertisement -