I am developing with PHP-PDO with MySQL and I have three tables:
- User (Seller)
- Sale
- Detail Sale
How can I make a query in MySQL that shows me per user the detail of all the sales made (product, quantity, price, subtotal, *) plus the total price of the product? And return to the User Name in a column and not the row.
This is the relationship between tables: