= Аналитика и статистика == Детален преглед на трансакции помеѓу корисниците по датум {{{ SELECT tm.s_account_id AS sender_id, a_s.username AS sender_username, tm.r_account_id AS receiver_id, a_r.username AS receiver_username, tm.t_id, t.timestamp, t.amount FROM transferred_money tm JOIN account a_s ON tm.s_account_id = a_s.id JOIN account a_r ON tm.r_account_id = a_r.id JOIN "transaction" t ON tm.t_id = t.id; }}} == Трансакции до одреден датум и време {{{ SELECT tm.s_account_id AS sender_id, a_s.username AS sender_username, tm.r_account_id AS receiver_id, a_r.username AS receiver_username, tm.t_id, t.timestamp, t.amount FROM transferred_money tm JOIN account a_s ON tm.s_account_id = a_s.id JOIN account a_r ON tm.r_account_id = a_r.id JOIN "transaction" t ON tm.t_id = t.id WHERE timestamp<'2025-03-23 20:30:00.000000'; }}} == Трансакции по валута, подредени по време {{{ SELECT tm.s_account_id AS sender_id, a_s.username AS sender_username, tm.r_account_id AS receiver_id, a_r.username AS receiver_username, tm.t_id, t.timestamp, t.amount, tm.currency FROM transferred_money tm JOIN account a_s ON tm.s_account_id = a_s.id JOIN account a_r ON tm.r_account_id = a_r.id JOIN "transaction" t ON tm.t_id = t.id WHERE currency='EUR' ORDER BY timestamp; }}} == Максимум, минимум и просечен износ на сума по трансакција во одредена валута {{{ SELECT max(t.amount) as maximum, avg(t.amount) as "average", min(t.amount) as minimum FROM transferred_money tm JOIN account a_s ON tm.s_account_id = a_s.id JOIN account a_r ON tm.r_account_id = a_r.id JOIN "transaction" t ON tm.t_id = t.id WHERE currency='USD'; }}}