I have three tables
Table 1
userid mobile
1 123456789
2 321654987
3 987456321
Table2
revid userid revdes mobile
1 2 ASD 123456789
2 2 DSA 123456348
3 1 QWE 963258124
Table3
revid revloc
1 asdf
3 dsaq
I need output, for example, where userid = 2
userid revid revdes mobile revloc inTable1
2 1 ASD 123456789 asdf true
2 2 DSA 123456348 NULL false
In the inTable1 column above, the first row element is true because the mobile “123456789” is available in table 1
I am using MySQL.
source
share