 <p>you can use this,</p> <pre><code>Cursor cursor = db.query(true, YOUR_TABLE_NAME, new String[] { COLUMN1 ,COLUMN2, COLUMN_NAME_3 }, null, null, COLUMN2, null, null, null); </code></pre> <p>Here first parameter is used to set the DISTINCT value i.e if set to true it will return distinct column value.</p> <p>and sixth parameter denotes column name which you want to <code>GROUP BY</code>.</p>