SELECT Column,Column,Column,Column4... FROM tablegroup by columnhaving conditionorder by columnlimit start,rows