Re: SQL SELECT HELP

2004-05-03 Thread zoltan . gyurasits
Hi, Ok. This is good!! Thank you! Zoli Egor Egorov <[EMAIL PROTECTED]> 2004-04-30 03:30 PM To: [EMAIL PROTECTED] cc: (bcc: Zoltan Gyurasits/GYO/COMP/PHILIPS) Subject: Re: SQL SELECT HELP Classification: [EMAIL PRO

Re: SQL SELECT HELP

2004-04-30 Thread Egor Egorov
[EMAIL PROTECTED] wrote: > > Sorry. My english is not so good. :( > I try to explain. > > I have table1 : > > ID value > -- > 1 100 > 1 101 > 1 102 > 1 200 > 2 100 > 2 300--- > 2 310 | > 3 10

Re: SQL SELECT HELP

2004-04-29 Thread zoltan . gyurasits
gt; cc: <[EMAIL PROTECTED]> Subject:Re: SQL SELECT HELP Classification: I hope it should work: Select table1.ID from table1 left join table2 on table1.value=table2.value where table2.value is null OR if you want distinct IDs Select distinct table1.ID f

Re: SQL SELECT HELP

2004-04-29 Thread Nitin
if it does (or doesn't) let me know Regards Nitin - Original Message - From: <[EMAIL PROTECTED]> To: "Michael Stassen" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April 29, 2004 1:15 PM Subject: Re: SQL SELECT HELP > Hi, > >

Re: SQL SELECT HELP

2004-04-29 Thread zoltan . gyurasits
ing the value 300. Michael Stassen <[EMAIL PROTECTED]> 2004-04-28 06:13 PM To: Zoltan Gyurasits/GYO/COMP/[EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: SQL SELECT HELP Classification: I'm afraid I don't und

Re: SQL SELECT HELP

2004-04-28 Thread Michael Stassen
I'm afraid I don't understand. From your first message, it appears you want a list of rows from table1 whose ids do not appear in table2. The query Egor sent you does just that. Did you try it? If, as you say here, that isn't what you want, could you please describe what you do want? Michae

Re: SQL SELECT HELP

2004-04-28 Thread zoltan . gyurasits
urasits/GYO/COMP/PHILIPS) Subject: Re: SQL SELECT HELP Classification: [EMAIL PROTECTED] wrote: > > I have a query problem. I want to make a query > > SELECT* > FROM table1 > INNER JOIN table2 ON table1.id NOT IN table2.id > > But

Re: SQL SELECT HELP

2004-04-28 Thread Egor Egorov
[EMAIL PROTECTED] wrote: > > I have a query problem. I want to make a query > > SELECT* > FROM table1 > INNER JOIN table2 ON table1.id NOT IN table2.id > > But I can't use the "NOT IN" expression here. > > What can i do? > > I have the MySQL version 4.x I can't use subquery :( > If I

SQL SELECT HELP

2004-04-28 Thread zoltan . gyurasits
Hi, I have a query problem. I want to make a query SELECT* FROM table1 INNER JOIN table2 ON table1.id NOT IN table2.id But I can't use the "NOT IN" expression here. What can i do? I have the MySQL version 4.x I can't use subquery :( Thank you in advanced, Zoli

Re: SQL select help required please

2004-02-02 Thread Matthew Stuart
I am trying to create a html search results page with the following: SELECT * FROM tbl_allarticles WHERE (fld_headline LIKE'%userinput%' OR fld_summary LIKE'%userinput%' OR fld_body LIKE'%userinput%') AND fld_category LIKE 'catvalue' The above works fine, but the below code is giving me some ji

Re: SQL select help required please

2004-02-01 Thread Daniel Kasak
Matthew Stuart wrote: I am trying to create a html search results page with the following: SELECT * FROM tbl_allarticles WHERE (fld_headline LIKE'%userinput%' OR fld_summary LIKE'%userinput%' OR fld_body LIKE'%userinput%') AND fld_category LIKE 'catvalue' The above works fine, but the below cod

SQL select help required please

2004-02-01 Thread Matthew Stuart
I am trying to create a html search results page with the following: SELECT * FROM tbl_allarticles WHERE (fld_headline LIKE'%userinput%' OR fld_summary LIKE'%userinput%' OR fld_body LIKE'%userinput%') AND fld_category LIKE 'catvalue' The above works fine, but the below code is giving me some jip