Re: need help with relational tables/fields

2009-09-03 Thread Wolfgang Schaefer
AndrewJames schrieb: > Hey, > > i have a table called users which has my users in it, each have a uid > field. > I also have a stories table which has stories in it each with a sid field > for each story but also a uid field so i know which user the story > belongs > to. > > i want to write a que

Re: need help with relational tables/fields

2009-09-03 Thread Wolfgang Schaefer
AndrewJames schrieb: > Hey, > > i have a table called users which has my users in it, each have a uid > field. > I also have a stories table which has stories in it each with a sid field > for each story but also a uid field so i know which user the story > belongs > to. > > i want to write a quer

Re: need help with relational tables/fields

2009-09-03 Thread Wolfgang Schaefer
AndrewJames schrieb: > Hey, > > i have a table called users which has my users in it, each have a uid > field. > I also have a stories table which has stories in it each with a sid field > for each story but also a uid field so i know which user the story > belongs > to. > > i want to write a quer

need help with relational tables/fields

2009-09-03 Thread AndrewJames
Hey, i have a table called users which has my users in it, each have a uid field. I also have a stories table which has stories in it each with a sid field for each story but also a uid field so i know which user the story belongs to. i want to write a query that will display the story depending

RE: relational tables

2008-03-20 Thread Jason Trebilcock
See below... > -Original Message- > From: John Taylor-Johnston [mailto:John.Taylor- > [EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 2:17 PM > To: Sebastian Mendel; mysql@lists.mysql.com > Subject: Re: relational tables > > DROP TABLE IF EXISTS `person`

Re: relational tables

2008-03-20 Thread John Taylor-Johnston
Sorry, I'm a top quoter. This is what I want to do. I'm still told there re problems with my keys. DROP TABLE IF EXISTS `person`; CREATE TABLE `person` ( `person_id` int(11) NOT NULL auto_increment, `name` varchar(255) default NULL, `email` varchar(255) default NULL, PRIMARY KEY (`person_id

Re: relational tables

2008-03-19 Thread Sebastian Mendel
John Taylor-Johnston schrieb: I want to make a relational link from `data` to `shopping` so when I insert a new record in `shopping`, I will see the contents of `data`.`name` and `data`.`email` as drop-down menus in `shopping`. This is InnoDB so I should be able to do this by SQL, right? where

relational tables

2008-03-19 Thread John Taylor-Johnston
I want to make a relational link from `data` to `shopping` so when I insert a new record in `shopping`, I will see the contents of `data`.`name` and `data`.`email` as drop-down menus in `shopping`. This is InnoDB so I should be able to do this by SQL, right? Thanks, John DROP TABLE IF EXISTS `

Re: Query relational tables

2003-02-17 Thread Roger Baklund
* Dee > I have a table that contains ids for several other tables. Setup is as > followed: > > +--+--+--+-+-+ > + > | Field| Type | Null | Key | Default | Extra > | > +--+--+--+-

Query relational tables

2003-02-15 Thread Dee
Hi, I have a table that contains ids for several other tables. Setup is as followed: +--+--+--+-+-++ | Field| Type | Null | Key | Default | Extra | +--+--+--+-+-+-

Re: relational tables query help

2003-01-20 Thread Natale Babbo
because there isn't any partners table in the FROM clause! --- Justin French <[EMAIL PROTECTED]> ha scritto: > Hi all, > > I have three tables: > > partners (id,name,url,desc) > services (id,desc,category) > partner_service_rel (pid,sid) > > Each partner offers a range of services, and each >

relational tables query help

2003-01-20 Thread Justin French
Hi all, I have three tables: partners (id,name,url,desc) services (id,desc,category) partner_service_rel (pid,sid) Each partner offers a range of services, and each services has an id, description, and category. Now, it's EASY to search for partners that offer a certain service, but I can't fig

RE: relational tables

2002-01-13 Thread Roger Baklund
* Javier Gonzalo Gloria Medina > How I crate this relational tables with mysql. Using the CREATE TABLE statement: http://www.mysql.com/doc/C/R/CREATE_TABLE.html > > where the two tables must be related by id ok You combine the tables with the SELECT statement, you don't need

relational tables

2002-01-13 Thread Javier Gonzalo Gloria Medina
Hi people : How I crate this relational tables with mysql. Table users | id | user name| e-mail | password | carrier| semester | table assignments | id | assignments | where the two tables must be related by id ok thanks for the help