Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Getting total sales which has Beverages in it

$
0
0

Hi All,


I am a bit stuck in getting a particular scenario for Tableau so I tried Microsoft SQL server query but not sure how to do it.


I am trying to get total sales for a particular sales order which includes only beverages.


Example: Salesorder1: Beverages - 5$

                                      Chicken - 10$


Salesorder2: Chicken - 12$

                     Chips - 8$


I just need sum of total which has beverages in it. So, as per above examples, I should get (Beverages + Chicken = 15$) and it should not include the salesorder2. 


How can I achieve this in query?


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>