Web Development
Web Developer From India
(Move to ...)
Home
▼
September 4, 2016
MySQL select query to inner join two table in single field.
MySQL select Query to inner joint two tables on single field.
SELECT CASE
WHEN STATUS_FLAG=1 THEN (select id from table2 where id=TABLE1.F_ID)
ELSE (select id from table3 where id=TABLE1.F_ID)
END
FROM TABLE1
2 comments:
Unknown
September 5, 2016 at 1:23 PM
Good Job. Helpful for beginner and intermediate.
Reply
Delete
Replies
montu khant
October 1, 2016 at 1:53 AM
Thank you sir :)
Delete
Replies
Reply
Reply
Add comment
Load more...
‹
›
Home
View web version
Good Job. Helpful for beginner and intermediate.
ReplyDeleteThank you sir :)
Delete