public DataSet Getindividualsales(string date1, string date2) { DataSet ds = new DataSet(); string sql = "select Customer_id, Fullname, Description, SUM (TotAmnt) AS TotAmnt from Summary where Date between'" + Convert.ToDateTime(date1) + "' and '" + Convert.ToDateTime(date2) + "'GROUP BY Customer_id"; SqlDataAdapter dadbt = new SqlDataAdapter(sql, mycon.Opencon()); dadbt.Fill(ds); dadbt.Dispose(); return ds; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)