SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Multiplying 2 columns and filtered by a 3rd
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ksimpson
Starting Member

USA
1 Posts

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

tkizer
Almighty SQL Goddess

USA
37129 Posts

Posted - 08/07/2014 :  17:29:35  Show Profile  Visit tkizer's Homepage  Reply with Quote
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
Flowing Fount of Yak Knowledge

USA
1754 Posts

Posted - 08/08/2014 :  10:44:02  Show Profile  Reply with Quote
select Price * SalesTax as AdjustedPrice
from MyTable
where State = 'CA'
??? (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

102 Posts

Posted - 08/09/2014 :  10:53:45  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000