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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Lijoyx Posted August 5, 2008 Author Share Posted August 5, 2008 thank you dilum that works 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.