i was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,
how can i group the database by dates and by names
Collapse
X
-
Tags: None
-
-
hi
your sql query must look like this
select sum(column) from table group by Date, People
if this is not the solution then explain your problam in detial
regards
manpreet singh dhillon hoshiarpurComment
-
Originally posted by RhazeMondragoni was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,
SELECT SUM(transaction ) FROM <table>, ORDER BY <table.date>;
for more detailed answer..please post ur DB structure . :)Comment
-
Originally posted by RhazeMondragoni was have difficulties by retrieving records in the database, for example i want to get the sum of transaction by the date, group by people,,Comment
-
this is my databse.... is this correct???
"Select F_Empl_Code, Supply_Date, Sum(Supp_Total) , Min(Supp_Balanc e) from Tbl_Supply_Tran saction Where Supply_Date between '" & txtDate1.Text & "' and '" & txtDate2.Text & "' GROUP BY F_Empl_Code, Supply_DateComment
-
Originally posted by RhazeMondragonthis is my database...Comment
Comment