Re: Left outer join trouble

2007-10-28 Thread Morten
Martin Gainty wrote: Good Morning- Good afternoon :-) http://www.mysqlperformanceblog.com/2006/09/04/group_concat-useful-group-by- extension/ I did'nt see your where clause ? I'm probably missing your point here. But there's no "where clause" because I want all records from the tickets tab

Re: Left outer join trouble

2007-10-28 Thread Morten
Baron Schwartz wrote: I'm tempted to solve this using a view or two, but would like to know if there's a better way. GROUP_CONCAT() takes an optional DISTINCT modifier, and that might do what you're looking for. It sure does the trick. I'll use that, I was afraid that I was missing somet

Re: Left outer join trouble

2007-10-28 Thread Baron Schwartz
Hi, Morten wrote: Hi, I'm trying to write a query which returns a single record which contains concatenated values for referencing records: SELECT tickets.id AS id, CAST(GROUP_CONCAT(tags.name SEPARATOR ' ') AS CHAR) AS tags, CAST(GROUP_CONCAT(events.value SEPARATOR ' ') AS CH

Re: Left outer join combined with inner join

2004-06-01 Thread SGreen
Hi Matthew, There are several combination of things you can query for with the data you have: Only Products with Tags, Only Tags with products, all Products with or without Tags, all Tags with or without Products However you do not have the ability (yet) to query, in a single statement, for

Re: Left outer join combined with inner join

2004-06-01 Thread gerald_clark
Matthew Shalorne wrote: Hi, with the tables eg: Product: id, product, cost ProductTag: productId, TagId Tag: id, tag I have created the ability to selectively assign tags to products if required via a many-to-many relationship. Now I want to join the tables in MySQL so that I can see all products

Re: Left Outer Join?

2004-01-24 Thread Paul DuBois
At 14:20 +0100 1/22/04, Frederic Wenzel wrote: Mike Mapsnac wrote: What is the difference between Left Join and Left Outer Join? Thanks If I get it right, there is none. Greetings Fred You got it right. There is none. -- Paul DuBois, MySQL Documentation Team Madison, Wisconsin, USA MySQL AB,

Re: Left Outer Join?

2004-01-22 Thread Frederic Wenzel
Mike Mapsnac wrote: What is the difference between Left Join and Left Outer Join? Thanks If I get it right, there is none. Greetings Fred -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: left outer join

2003-02-28 Thread Rob
EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:11 PM To: Rob Cc: [EMAIL PROTECTED] Subject: Re: left outer join Hi, You have one thing wrong in your query... You're using LEFT JOIN but then you use a condition over DFL in the where clause. That's why it doesn't give you the results expec

RE: left outer join

2003-02-28 Thread Rob
EMAIL PROTECTED] Sent: Friday, February 28, 2003 3:11 PM To: Rob Cc: [EMAIL PROTECTED] Subject: Re: left outer join Hi, You have one thing wrong in your query... You're using LEFT JOIN but then you use a condition over DFL in the where clause. That's why it doesn't give you the results

RE: left outer join

2003-02-28 Thread Andrew
I am not sure whether you have checked for case sensitive issues but it could be that? document_fields.id,document_fields_link.id are you getting any errors? Andrew >SELECT DF.id, DFL.id >FROM document_fields AS DF LEFT JOIN document_fields_link AS DFL on DF.id = >DFL.document_field_id >WHERE

Re: left outer join

2003-02-28 Thread Diana Soares
Hi, You have one thing wrong in your query... You're using LEFT JOIN but then you use a condition over DFL in the where clause. That's why it doesn't give you the results expected from a LEFT JOIN. You should have a look in the manual to see how to use left joins. The query should by: SELECT D

Re: Left outer join

2002-07-02 Thread Victoria Reznichenko
Arul, Monday, July 01, 2002, 3:58:48 PM, you wrote: A> Can i use left outer join in MySQL. A> Like i have one condition in Oracle A> ex: A> select * from user,company where u.companyid = c.companyid (+) A> can i rephrase the query in mysql like this A> select * from user left outer join compa

Re: left outer join query question

2001-06-18 Thread Jonothan Farr
You could try using the IFNULL() function on that column before you do the join. http://www.mysql.com/doc/C/o/Control_flow_functions.html --jfarr - Original Message - From: "Bryan Coon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 18, 2001 11:12 AM Subject: left outer