V
V
Vova2019-09-26 17:39:50
SQL
Vova, 2019-09-26 17:39:50

How to select multiple data from SQL from multiple tables?

tables

5d8ccd8cec26c474950270.pngin it
5d8ccd7aa5f3e442186357.png

The challenge is to do this in 1 sql query.
Problem. I can't join 2 tables. I can't bind by order_id - username and total_price.
qty - an arbitrary number, it shows the number of goods.
SELECT * FROM `order_products` INNER JOIN `orders` ON order_id = orders.id ОТВЕТ (ну у меня работает так)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
idShura, 2019-09-26
@Lancerot

Your question sounds like a task, and no one will do it for you. First, show your request, and maybe they will help you find the error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question