helpmeplease2 Posted April 9, 2007 Share Posted April 9, 2007 How can I make it so if to results are the same that it only shows it once? For example if the field "game" is equal to "Mario" and there is another game also equal to "Mario" that it only shows mario once. Quote Link to comment https://forums.phpfreaks.com/topic/46222-solved-dont-show-repeat-results/ Share on other sites More sharing options...
btherl Posted April 9, 2007 Share Posted April 9, 2007 You can use "GROUP BY game" at the end, or you can use "SELECT DISTINCT game" at the start. Which is more appropriate depends on your situation. If you are selecting other columns as well, you need to think of what to do with the multiple values you have for those rows. Again, how you deal with that depends on the situation. Quote Link to comment https://forums.phpfreaks.com/topic/46222-solved-dont-show-repeat-results/#findComment-224723 Share on other sites More sharing options...
helpmeplease2 Posted April 9, 2007 Author Share Posted April 9, 2007 Thanks! DISTINCT did the trick. Quote Link to comment https://forums.phpfreaks.com/topic/46222-solved-dont-show-repeat-results/#findComment-224777 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.