0 like 0 dislike
204 views
in Education & Reference by (720 points) | 204 views

1 Answer

0 like 0 dislike
SELECT
        (CASE Table1.product
            WHEN 'column_value'
            THEN Table2.COL
            WHEN 'column_value2'
            THEN Table4.sms_count
            ELSE Table3.plan
        END) as ColumnName1,Table1.*
  FROM Table1
     INNER JOIN Table2
        ON Table2.id = Table1.product_id
    INNER JOIN Table3
        ON Table3.id = Table1.product_id
     INNER JOIN Table4
        ON Table4.id = Table1.product_id;
by

Related questions

1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
2 like 0 dislike
3 answers
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,225 questions
1,371 answers
559 comments
2,099 users