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

Script issue for adding up totals

$
0
0

Hi I'm sure someone can shed some light on this as I'm pretty new to sql and I don't think what i'm trying to do is hard I just am missing something. here is a screen shot of what i'm doing and the results. Its a really small data base only containing 3 customers. So what its doing is adding up the part total, labor total and tax for all 3 customers and showing it as one big total. obviously i'm not looking for it to do that. I want to make an individual total and have my if else if statement sort out how much my @Coupon should be. 



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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