bwcc Posted March 27, 2007 Share Posted March 27, 2007 Currently, this is my join: SELECT * FROM mso_record LEFT JOIN mso_problem ON mso_record.tracking=mso_problem.tracking ORDER BY 1 DESC This will pick all of mso_record and match them with all records in mso_problem where tracking is the same. I am wanting to change that to where it only picks the first record in mso_problem where tracking is the same. Any ideas? TIA Quote Link to comment Share on other sites More sharing options...
fenway Posted April 4, 2007 Share Posted April 4, 2007 ORDER BY 1 won't really do anything... you need LIMIT 1, but without a real order by clause, you'll just get a quasi-recent one. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.