We help IT Professionals succeed at work.

Sql to show total

Medium Priority
332 Views
Last Modified: 2012-05-11
Hi,

i have 2 tables

Table one called T which has the following coloums
FCode, FName, N.

Table two called C which has the following coloums:
CC, ConC, Percentage
I        N          30
I        D           40
I        DU        30

for each CC the sum of all percentage should be 100

What I need to do is the following

Sql Statement

to CC where the sum of percentage is not 100, also to show how further off 100 the total of the percentage is.

Please help

Thanks,

R8VI
Comment
Watch Question

Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.