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.
↧