Your SQL statement just looks like you are filtering the rows from a single
table, and there are no relationships at all.

Rick Q
[email protected]




On Fri, Oct 12, 2012 at 7: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?
>
> -----Original Message-----
> From: Stephen Russell [mailto:[email protected]]
> Sent: Friday, October 12, 2012 3:28 PM
> To: ProFox Email List
> Subject: Re: on line class
>
> On Fri, Oct 12, 2012 at 1:59 PM, Gary Jeurink <[email protected]>
> wrote:
> > I'm taking my football database from vfp-9 and making a new one using
> mysql
> > workbench. The tutorial wants me do a diagram and draw the relationships
> > between tables; 1 to 1, 1 to many and so on. I have a table of col_teams
> and
> > a table of col_games. The games table has a home_tm and visit_tm fields
> so
> > how do I draw the relationship from the team table to the game table when
> it
> > could be home team or visiting team? It makes sense when I do views but
> how
> > do you do an EER diagram.
> >
> ----------------
>
> Do you have a table for the Teams like a lookup table?  Or is this
> column just Text for the team name, and not an Fkey ?
>
>
>
> --
> Stephen Russell
> Sr. Analyst
> Ring Container Technology
> Oakland TN
>
> 901.246-0159 cell
>
>
>
>
>
[excessive quoting removed by server]

_______________________________________________
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/cadazp2mbvctbqpxnbkb2wqspaupgk_xdjraqd5ixs9wt6nm...@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.

Reply via email to