MySQL Forums
Forum List  »  Newbie

Re: Item Tracking via Multiple Tables
Posted by: Christopher Esbrandt
Date: April 17, 2015 04:43AM

I did say it: I need to list the contents of one table and whether or not the entries are tied to the connector table.

If you're referring to the filter of the would-be query results, it's at the top of that: UID 4 has

So: SELECT a.id, a.name, %IF a.tid FOUND IN b.tid THEN 1 ELSE 0 ENDIF% FROM fruit a LEFT JOIN connector b ON a.id = b.tid WHERE b.uid = 4;

I'm aware that this isn't a "proper" query, just trying to explain it in English, since I failed to do so the first time.

Options: ReplyQuote


Subject
Written By
Posted
Re: Item Tracking via Multiple Tables
April 17, 2015 04:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.