RE: Oracle CONNECT BY

2001-09-25 Thread Remco Brood
This will get a manager of a team which contains a team which contains individual nr 5. SELECT I.Name FROM TEAMREPORT T3 TEAMREPORT T2 TEAMREPORT T, INDIVIDUAL I, WHERE T.individualId = 5 AND t.teamid = t2.indivdualID AND t3.IndividualId = t2.teamID AND T3.IndividualID = I.IndividualID AND I.Mana

RE: multiple select

2001-09-18 Thread Remco Brood
SELECT * from tipps WHERE (name like '%&name%' OR '$name' = '') AND (stadt = '$stadt' OR '$stadt' = '') AND (kueche = '$kueche' OR '$kueche' = '') ORDER by $order ASC LIMIT $start, $limit -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: dinsdag 18 september 2001 13:05 To: M

RE: ERROR 1054 at line 52: Unknown column 'nan' in 'field list'

2001-09-03 Thread Remco Brood
i can reproduce it on 3.23.32 create table test (id int(13),low float(10,2) ) insert into test values (1,1) insert into test values (1,'nan') id low 1 1.00 1 nan doh.. - Before posting, please check: http://w

RE: Sub select.

2001-08-07 Thread Remco Brood
you can rewrite this query to simple joins so you dont use sub selects. select media.media_id , media.price, media.filename from media,category_locks,categories where media.media_id = category_locks.media_id and category_locks.category_id = categories.category_id and categories.dynamic_media = 't

RE: Help! MySQL variables laugh at me

2001-06-05 Thread Remco Brood
if faq had a sequenced primary key you could do the following select a.sezione, IF(a.sezione = b.sezione, "no","yes") as hasChanged from faq as a, faq as b where faq.id = faq.id -1 -Original Message- From: Luca Accomazzi [mailto:[EMAIL PROTECTED]] Sent: Monday, June 04, 2001 11:02 AM To

RE: COUNT and WHERE

2001-05-31 Thread Remco Brood
if you use an alias in your select clause use the same alias in the having clause so having num > 1 -Original Message- From: Ben Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 11:00 AM To: [EMAIL PROTECTED] Subject: COUNT and WHERE Hello, I have this query select a.matc