RE: More query help for user-defined values

2006-08-18 Thread Robert DiFalco
Friday, August 18, 2006 12:37 PM To: Robert DiFalco; 'mysql@lists.mysql.com' Subject: RE: More query help for user-defined values No takers? -Original Message- From: Robert DiFalco Sent: Thursday, August 17, 2006 3:03 PM To: Robert DiFalco; mysql@lists.mysql.com Subject: RE: More query

RE: More query help for user-defined values

2006-08-18 Thread Robert DiFalco
No takers? -Original Message- From: Robert DiFalco Sent: Thursday, August 17, 2006 3:03 PM To: Robert DiFalco; mysql@lists.mysql.com Subject: RE: More query help for user-defined values One simple solution is to denormalize a little and take the refTypeID column out of StringValue and

RE: More query help for user-defined values

2006-08-17 Thread Robert DiFalco
LL AND ST1.defaultVal LIKE 'foo' ) ) AND ( SV2.f_val LIKE 'bar' OR ( SV2.val IS NULL AND ST2.defaultVal LIKE 'bar' ) ) -Original Message- From: Robert DiFalco [mailto:[EMAIL PROTECTED] Sent: Thursday, August 17, 2006 8:43 AM To: m

More query help for user-defined values

2006-08-17 Thread Robert DiFalco
To support user defined properties I have the following tables: TABLE StringType LONG ID PKEY VARCHAR name ... VARCHAR defaultValue TABLE StringValue LONG parentID LONG typeID VARCHAR val Assume the correct indices are in place. Different string value types ca

Re: More Query Help

2002-06-05 Thread Benjamin Pflugmann
Hi. On Wed 2002-06-05 at 13:37:22 -0500, [EMAIL PROTECTED] wrote: [...] > It selects a list of all members from the database referred by a certain > member. However, the query needs to be modified to also select the > number of people that person has referred. I planned to just send > another que

More Query Help [more info]

2002-06-05 Thread Daren Cotter
I probably did not provide enough info the first time. The members table is setup as follows: Id (primary key) Referer (relates to the primary key of the table) I am given a member ID, say 4. I need to display all members who have been referred by member 4 (obviously no problem). However, for ea

More Query Help

2002-06-05 Thread Daren Cotter
First off, I would like to thank everyone on this lists who helps people like myself! I'm having trouble with the following query: SELECT username, first_name, email, DATE_FORMAT(signup_date, '%b %e, %Y') AS signup_date FROM members WHERE referer = (id) It selects a list of all members from the