try this query -
SELECT <column1>,<column2>,<column3>FROM <table_name>
GROUP BY <column1>,<column2>,<column3>
SELECT column1,column2,SUM(column3)
FROM Table_Name
GROUP BY column1,column2
SELECT column1,column2,SUM(column3)
FROM Table_Name
WHERE column1='' AND column4=''
GROUP BY column1,column2
and so on
Regards
Rakshit