G
Guest
Hello!
I am beginning with subqueries and need some help with this exercise. Say I
have 2 tables, tblSales (SaleID, DateSale, ClientSale) and
tblSalesDetails(SalesDetailID, ProductSdt, QtySdt)
I want to build a query that results in something similar to this:
Client1 Amount1
Client2 Amount2
Clinet3 Amount3
Where Amounti is the total amount sold to clienti. I am trying to obtain
these amounts via a subquery; I know it ca be done otherwise but I am
practicing. Can someone help me with this?
Many thanks in advance.
I am beginning with subqueries and need some help with this exercise. Say I
have 2 tables, tblSales (SaleID, DateSale, ClientSale) and
tblSalesDetails(SalesDetailID, ProductSdt, QtySdt)
I want to build a query that results in something similar to this:
Client1 Amount1
Client2 Amount2
Clinet3 Amount3
Where Amounti is the total amount sold to clienti. I am trying to obtain
these amounts via a subquery; I know it ca be done otherwise but I am
practicing. Can someone help me with this?
Many thanks in advance.