I'm working on a script that requires gathering information from a few different tables, and I just want to know if there is a way to handle my situation without running multiple queries. I'm a little new to mySQL and this example would really help with future situations.
tbl1 = foo_id, bar_id
tbl2 = foo_id, bool, num_id
From tbl1 I need to grab the foo_id where the bar_id = (random number), and then with that foo_id grab the num_id from tbl2 where the bool = 1.
Thanks in advance!