Lijoyx Posted August 1, 2008 Share Posted August 1, 2008 hello friends, i have to fetch all the 3 colums from a table using a 'FID' . i need the 'FID' to be distinct. FID repeats in the table i used this query SELECT DISTINCT FID,FNAME, FVALS FROM `table1` but it filters all the three colums. is there any way to achieve my task? Link to comment https://forums.phpfreaks.com/topic/117687-solved-trouble-using-distinct/ Share on other sites More sharing options...
Lijoyx Posted August 4, 2008 Author Share Posted August 4, 2008 someone please tell me if this question isn't clear Link to comment https://forums.phpfreaks.com/topic/117687-solved-trouble-using-distinct/#findComment-607271 Share on other sites More sharing options...
dilum Posted August 4, 2008 Share Posted August 4, 2008 Try this, SELECT DISTINCT FID,FNAME, FVALS FROM `table1`GROUP BY FID Link to comment https://forums.phpfreaks.com/topic/117687-solved-trouble-using-distinct/#findComment-607413 Share on other sites More sharing options...
Lijoyx Posted August 5, 2008 Author Share Posted August 5, 2008 thank you dilum that works Link to comment https://forums.phpfreaks.com/topic/117687-solved-trouble-using-distinct/#findComment-608539 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.