Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to raise a consolidated report using group by clause on 'helper.TX_NAME' column
in the following cursor query.

C#
String[] columns = {VivzHelper.UID, helper.TX_NAME, helper.TX_PARTICULARS, helper.TX_AMOUNT, helper.TX_DATE};

      Cursor c = db.query(VivzHelper.TX_TABLE, columns, (helper.TX_ID + "='" + name + "' AND " + helper.TX_DATE + " BETWEEN '" + datefrom.from_date + "' AND '"  + dateto.to_date + "  ' "), null, null, null, null, null);
Posted
Comments
Richard MacCutchan 20-Apr-15 4:01am    
Do not use string concatenation for SQL statements: see http://bobby-tables.com/about.html.

Also, what is your question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900