Liquid Fire Posted April 5, 2007 Share Posted April 5, 2007 here is my query: select COUNT(sr.TID) as t_count, r.Email FROM SalesReport sr INNER JOIN SalesReps r ON r.RepCode = sr.RepCode GROUP BY sr.RepCode HAVING t_count <= 19 AND t_count >= 15 is there a way to exclue the t_count from showing up in the returned result? I am just wondering becuase the only reason i need that there is to get the count, don't need the data passed that point. Link to comment https://forums.phpfreaks.com/topic/45751-excluding-data-from-from-return/ Share on other sites More sharing options...
monk.e.boy Posted April 5, 2007 Share Posted April 5, 2007 Why do you want to remove it? If it is screwing up your indexed data, then move it so it is the last item to be SELECTed. Then email will be $row[0], and count will be $row[1] If you are removing it for optimization, then don't bother. monk.e.boy Link to comment https://forums.phpfreaks.com/topic/45751-excluding-data-from-from-return/#findComment-222237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.