Find Jobs
Hire Freelancers

MySQL Select Statement Help

$3-8 USD

Completed
Posted over 11 years ago

$3-8 USD

Paid on delivery
I have a php page, with mysql select query. I'm calling up data from two table. My select statement; SELECT [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL], [login to view URL] FROM `$table_games2`, `$table_games3` WHERE `category`='$catnum' AND games2.id=[login to view URL] GROUP BY [login to view URL] ORDER BY [login to view URL] I'm trying to call up the following data; id, name from games2 gamesid, game, gameset, round from games3 WHERE `category`='$catnum' AND games2.id=[login to view URL] Then, I want the results grouped by the [login to view URL] Ordered by [login to view URL] The problem? I don't know what to add, so that instead of it spitting out the FIRST entry made for each GROUPED thing, it spits out the LAST. EXAMPLE: say the result data was id ===== 1 2 3 but because I grouped it, it showed me id = 1 /// the first row entered. I want it to show me id = 3, the LAST row entered. How do I do that?
Project ID: 2784073

About the project

6 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$5 USD in 1 day
5.0 (20 reviews)
3.7
3.7
6 freelancers are bidding on average $4 USD for this job
User Avatar
See private message.
$5 USD in 1 day
5.0 (40 reviews)
5.4
5.4
User Avatar
See private message.
$5 USD in 1 day
5.0 (1 review)
3.3
3.3
User Avatar
See private message.
$5 USD in 1 day
1.0 (1 review)
0.8
0.8
User Avatar
See private message.
$2 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
See private message.
$2 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Warminster, United States
5.0
50
Member since Oct 24, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.