Re: Can mysql execute this ? how can i do this ?

2003-02-10 Thread Nasser Ossareh
> > > Extranet > [EMAIL PROTECTED] - 06/02/2003 02:31 > > To:mysql > > cc: > > > Subject:Can mysql execute this ? how can i do > this ? > > > Is this possible > > "select nome from categorias where id_categoria in >

Re: Can mysql execute this ? how can i do this ?

2003-02-08 Thread keith . jones
Sadly MySQL does not support sub-selects yet. Take a look at the manual for suggestions of ways around it. Keith Extranet [EMAIL PROTECTED] - 06/02/2003 02:31 To:mysql cc: Subject:Can mysql execute this ? how can i do this ? Is this possible "select nome from categorias

Re: Can mysql execute this ? how can i do this ?

2003-02-08 Thread Anderson Pereira Ataides
If you have id_categoria in both tables why don't you use join? Try this: select nome from categorias inner join categoriamembro on categorias.id_categoria=categoriamembro.id_categoria where id_membro=1807 []s Anderson Pereira Ataides Em Qui 06 Fev 2003 00:31, you wrote: > Is this possible > > "

Re: Can mysql execute this ? how can i do this ?

2003-02-08 Thread Stefan Hinz
Narciso, NMR> "select nome from categorias where id_categoria in (select id_categoria NMR> from categoriamembro where id_membro=1807)" MySQL supports subselects starting with version 4.1. AFAIK there are no binary distributions available for 4.1, so you either have to compile it yourself or wait

Can mysql execute this ? how can i do this ?

2003-02-06 Thread Narciso Miguel Rodrigues
Is this possible "select nome from categorias where id_categoria in (select id_categoria from categoriamembro where id_membro=1807)" in MySQL Thks [MsR] - Before posting, please check: http://www.mysql.com/manual.php (

Re: How can I do this query ? (Join with a preselction)

2002-08-22 Thread DL Neil
Hi Andreas, > I'm just getting started with mysql so please bear with me. =8-} > I do a 3 table query like: > SELECT a.x, b.y, c.z > FROM a, b, c > WHERE a.b_fk = b.id AND a.c_fk = c.id; > That works so far. > In c can be rows which aren't active anymore. > There is a good_from and a good_until

How can I do this query ? (Join with a preselction)

2002-08-21 Thread Andreas
Hi I'm just getting started with mysql so please bear with me. =8-} I do a 3 table query like: SELECT a.x, b.y, c.z FROM a, b, c WHERE a.b_fk = b.id AND a.c_fk = c.id; That works so far. In c can be rows which aren't active anymore. There is a good_from and a good_until DATETIME field which

RE: How can I do this SQL query

2002-05-24 Thread Jay Blanchard
You have written the following: [snip] > I have a file(transfile) that has 2 fields(cust# and item#) > > CUST# ITEM# > 1 '12a' > 1 '13a' > 2 '12a' > 3 '13a' > 4 '15a' > > If I want to select customers tha

RE: How can I do this SQL query

2002-05-24 Thread Bill Easton
: "Smith, Mike" <[EMAIL PROTECTED]> > To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> > Subject: RE: How can I do this SQL query > Date: Thu, 23 May 2002 15:33:05 -0400 > > How can I do this SQL query > > I have a file(transfile) that has

RE: How can I do this SQL query

2002-05-23 Thread Roger Baklund
; If I want to select customers that have ordered item '12a' but not '13a' > How can I do this? > > I want to end up with a result of only customer 2 in this case. Maybe something like this: SELECT cust FROM transfile AS t1 LEFT JOIN transfile AS t2 ON

RE: How can I do this SQL query

2002-05-23 Thread Smith, Mike
How can I do this SQL query I have a file(transfile) that has 2 fields(cust# and item#) CUST# ITEM# 1 '12a' 1 '13a' 2 '12a' 3 '13a' 4 '15a' If I want to sel

Re: how can I do this?

2001-05-20 Thread Adrian D'Costa
Hi, I have four table that have common fields like: date, destinazione and price. I what to create a temporary table with all four fields from four tables, what would be the correct sql syntax. TIA Adrian - Be

Re: How can I do this ???

2001-02-01 Thread Johannes Pretorius
1.parentid > WHERE ((families.parentid)=0); > > > -Original Message- > > From: Johannes Pretorius [SMTP:[EMAIL PROTECTED]] > > Sent: 01 February 2001 15:13 > > To: MySQL > > Subject: Re: How can I do this ??? > > > > > > Yes that is

RE: How can I do this ???

2001-02-01 Thread Julian Strickland
P:[EMAIL PROTECTED]] > > Sent: 01 February 2001 15:13 > > To: MySQL > > Subject:Re: How can I do this ??? > > > > > > Yes that is true but what I want to get at is. Like I want to get > > all Childs of the Parents. But NOT the Parents. Meaning if

RE: How can I do this ???

2001-02-01 Thread Julian Strickland
; From: Johannes Pretorius [SMTP:[EMAIL PROTECTED]] > Sent: 01 February 2001 15:13 > To: MySQL > Subject: Re: How can I do this ??? > > > Yes that is true but what I want to get at is. Like I want to get > all Childs of the Parents. But NOT the Parents. Meaning if the &g

Re: How can I do this ???

2001-02-01 Thread Johannes Pretorius
OBJID = 1 > > :) > > - Original Message - > From: Johannes Pretorius <[EMAIL PROTECTED]> > To: MySQL <[EMAIL PROTECTED]> > Sent: Thursday, February 01, 2001 4:43 PM > Subject: How can I do this ??? > > > Hi there > > 0---0 > > Sorry for stupid Q &g

Re: How can I do this ???

2001-02-01 Thread Rus
According to your question it could be done as simple as select * from People where PARENT_ID = 1 or OBJID = 1 :) - Original Message - From: Johannes Pretorius <[EMAIL PROTECTED]> To: MySQL <[EMAIL PROTECTED]> Sent: Thursday, February 01, 2001 4:43 PM Subject: How c

How can I do this ???

2001-02-01 Thread Johannes Pretorius
Hi there 0---0 Sorry for stupid Q but I have the following Table named People OBJID -> int(11) not null auto_increment NAME -> varchar(25) PARENT_ID -> int(11) Now if my data is as follows OBJID | NAME | PARENT_ID --- 1