sql - mysql query - credit debit-> calculate balance (complex tables structure) -
i have tables structure:
the "plati" table = credit.
the "suma" column = amount.
sample debit data:
sample credit data:
and want result:
plati.id
debite.iddosar
debite.suma
plati.suma plata
(debite.suma - previous plati.suma order plati.data) restplata
like excel:
is possible sql query not variable, because want split query's create 1 view on finally?
Comments
Post a Comment