0
0
0ldn0mad2019-09-30 20:39:52
Android
0ldn0mad, 2019-09-30 20:39:52

How to build a query to join tables?

Help build a query that will join two tables on a common field.
There is a table of products and there is a table of categories. Both tables have a common field - id_cat.
It is necessary to build a query so that, say, in the products table, opposite each product name, a category column is added so that the id_cat indexes of one table are equal to the id_cat indexes of another table.
5d923dd0c14b8690360930.png
5d923ddfbca35171488951.png

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
GavriKos, 2018-06-05
@GavriKos

With such accuracy - only industrial meters. Household such will not provide most likely.

F
Fixid, 2018-06-05
@Fixid

Exists, only inaccessible to mere mortals.
You can allow a maximum accuracy of 1-3 cm. And then by combining autonomous positioning and corrections from the base station

K
kn0ckn0ck, 2018-06-05
@kn0ckn0ck

Start from here

M
Maxim Timofeev, 2018-06-05
@webinar

You need several sensors to get real-time data, read here:
https://docs.microsoft.com/ru-ru/windows/uwp/devic...
Sufficiently accurate sensors are used when creating movies and games, here is an article with types such (mechanical, gyroscopic, magnetic, etc.):
https://masterok.livejournal.com/1614463.html
These cost 5k raccoons. But there are homemade ones in our country, which are assembled on the knee for $ 150 and 8 months:
https://habr.com/post/392353/

D
Dmitry, 2019-09-30
@0ldn0mad

SELECT goods.goods_name, goods.price, categories.cat_name 
FROM goods
LEFT JOIN categories ON goods.cat_id = categories.cat_id

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question