A
A
Artem2016-01-17 21:58:32
PHP
Artem, 2016-01-17 21:58:32

How to convert data?

Good evening! In the database, in the column "Organization" is the ID of the organization, for example 13 - Employment Center, how to make the Conclusion to the site not the number 13 itself, but so that it has already converted the number 13 to the employment center?
Thanks for the answer,
I will curse good for the answer :3

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sunrails, 2016-01-17
@sunrails

SELECT t1.*, t2.name FROM table1 as t1 LEFT JOIN organization as t2 ON t1.organization_id = t2.id

A
Artem, 2016-01-17
@ilita228

Actual :3

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question