Answer the question
In order to leave comments, you need to log in
Join table selection depending on type column?
Good afternoon, there is a table:
moderate id | src_id | type
src_id - resource id
type - resource type (int, 0 - news, 1 - article)
articles: id | name | text
news: id | name | text
How to write a join query to extract data from the desired table depending on moderate.type?
I have only case ... end; in my head so far; but maybe there is easier and more correct
thanks for the help
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question