Jump to content

using distinct only on defined columns?


wright67uk

Recommended Posts

When using distinct, how can you determine which columns will and will not be effected?

 

In the below query, im looking for distinct values of ONLY fname and lname, but not any other column.

 

("SELECT DISTINCT registration.fname, registration.lname, snag.club, snag.date, snag.yard, snag.year FROM registration, snag ORDER BY yards ASC");

Link to comment
https://forums.phpfreaks.com/topic/273474-using-distinct-only-on-defined-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.