Results 1 to 10 of 21
Hybrid View
-
6th Jan 2011, 12:21 AM #1Member
I would try a left join. I am not sure if it works because i am a little bit out of practice.
But you could try this:
SELECT p_id FROM purchases, LEFT JOIN client ON (client.id=purchases.c_id) WHERE id = 2 OR id=4;
you should get the id of the purchases. you didn't mention the name of the purchases, you can add it after the SELECT and add a ,
hope i could helpBlazZ Reviewed by BlazZ on . mysql query help ($5 reward) i have the following tables client ----- id name purchases --------- p_id Rating: 5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
PHP - MySQL query to CSV export
By ElitePirate in forum Web Development AreaReplies: 2Last Post: 25th Jul 2012, 09:19 PM -
mysql query to export database
By lenney in forum IP.BoardReplies: 4Last Post: 7th May 2011, 03:43 PM -
MySql Query
By GoPantheoN in forum Web Development AreaReplies: 5Last Post: 8th Mar 2011, 02:09 PM -
WordPress database error MySQL server has gone away for query
By blur88 in forum Webmaster DiscussionReplies: 10Last Post: 27th May 2010, 08:43 PM -
Speed Up Your Web Site With MySQL Query Caching
By BlaZe in forum Technical and Security TutorialsReplies: 1Last Post: 4th Nov 2009, 03:11 PM
themaCreator - create posts from...
Version 3.55 released. Open older version (or...