B
B
bakutinamary2021-11-30 01:56:21
SQL
bakutinamary, 2021-11-30 01:56:21

Sampling from three different tables of the same database with counting?

Good afternoon, there are 3 tables, you need to write a query that will return the name of the product, the number of purchased products and the total price of the purchased products of this type. I have never met such requests in which direction to move
. Thank you all for your help!
61a559d8bd4cd989277699.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Vodakov, 2021-11-30
@WaterSmith

"You ask for help, but you ask without respect ..."
Firstly , this is actually a task, not a question. And other people's tasks are not accepted here.
Secondly , in order for this to turn into a question, you need to try to solve it yourself. And when faced with a specific problem, ask about it, for example: You need to do something. I did this <code example>, but I got (a description of what happened) as a result, but I need (an explanation of what is wrong with the result).
And thirdly , let's say I'm in a good mood today, and it's not difficult for me to write a request for you. I click on the screenshot you attached, and everything is so small there that I can't even make out the names of the table fields.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question