I have a query like this:
SELECT FirstName,LastName,Address1,City,d.country
e.productname,b.Productid,b.Price,b.Quantity,a.orderid as OrderId,
shippingoption,shippingcharges,giftwrapping,orderdate
FROM order a, cart b, address c, product e
WHERE a.orderid=b.orderid
AND a.orderid = c.orderid
AND b.productid = e.productid
Here there multiple records are returned depending upon the items in one order. I want to display the orderid only once even its duplicated and also want to add up the total price of all the items in an order.
Thanks for any help
SELECT FirstName,LastName,Address1,City,d.country
e.productname,b.Productid,b.Price,b.Quantity,a.orderid as OrderId,
shippingoption,shippingcharges,giftwrapping,orderdate
FROM order a, cart b, address c, product e
WHERE a.orderid=b.orderid
AND a.orderid = c.orderid
AND b.productid = e.productid
Here there multiple records are returned depending upon the items in one order. I want to display the orderid only once even its duplicated and also want to add up the total price of all the items in an order.
Thanks for any help