Quantcast
Channel: Getting started with SQL Server forum
Viewing all articles
Browse latest Browse all 9243

adding data

$
0
0

Hi ,

I have a staging table which have two column...say A and B which have different values.

A                            B

FBAT                    20

TRAINING            30

INPUT                  40

Now I need to get a different view from this...My new table should look like

D                 E

AMP         90

Where AMP is FBAT+TRAINING+INPUT. Also I need only the total value in my new table and not the individual record.

Can someone help me to figure this out?


SPPandey


Viewing all articles
Browse latest Browse all 9243

Trending Articles