On Fri, Oct 12, 2012 at 6:53 PM, Gary Jeurink <[email protected]> wrote: > I'm not good at SQL statements because I'm used to using the visual tools > but my tmID is a VARCHAR(7), So my select statement from the games table is > something like > > SELECT * FROM cgms WHERE (cgms.tmID = "nebr") OR (cgms.opID = "nebr") AND > cgms.season=2012; > > This would give me all Nebraska games scheduled for 2012 season (home team > is tmID, visiting team is opID); My question is 'on the EER how do you > define the connection? ... ONE TO MANY?
Try this: SELECT * FROM cgms WHERE (cgms.tmID = "nebr") AND cgms.season=2012; union all; select * from cgms where (cgms.opID = "nebr") AND cgms.season=2012; -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/cajidmykv-mjybntpqomskur+u-gkc2iixj3nybdhvuqzgpk...@mail.gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.
