php - Extract the highest value of each day -
php - Extract the highest value of each day -
i have database table total of transactions transactionids , datetime fields. guess, datetime field , transactionids increasing , balance field either increasing / staying same / or decreasing.
i extract highest transactionid , corresponding balance @ end of every day.
thank in advance time , assistance.
sample table format:
transactionid|date (datetime)|amount|balance| select t1.`date`, t1.transactionid, t2.balance ( select `date`, max(transactionid) `transactionid` table grouping date(`date`) ) t1 inner bring together table t2 on t2.transactionid = t1.transactionid order t1.`date`
php mysql
Comments
Post a Comment