Quantcast
Channel: Oracle, MySQL, Sybase, Informix and other databases
Viewing all articles
Browse latest Browse all 1350

show corresponding value from two tables..

$
0
0

Hi guys, not sure is it correct if asking this question here..

I got two tables, how can i display all data from TABLE 1 and show TRUE if corresponding CID is found from TABLE 2.

returned result....
101 Apple      TRUE
102 Mango    FALSE
103 Grape      TRUE

TABLE 1
CID    Name
101  Apple
102  Mango
103  Grape

TABLE 2
TID   CID
1      101
2      103


Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>