How to Find The Total Amount of one customer who purchase number of products ?
Select C.CustomerId,C.CustomerName, sum(Amount) as Total From Customers C,Sales S
where C.CustomerId=S.CustomerId
group by C.CustomerId,C.CustomerName
Select C.CustomerId,C.CustomerName, sum(Amount) as Total From Customers C,Sales S
where C.CustomerId=S.CustomerId
group by C.CustomerId,C.CustomerName