===== Неактивни тагови Идентификување тагови кои не биле користени во изминатиот месец {{{#!sql SELECT tg.tag_name FROM tag tg LEFT JOIN tag_assigned_to_transaction tat ON tg.tag_id = tat.tag_id LEFT JOIN transaction t ON tat.transaction_id = t.transaction_id WHERE t.date IS NULL OR t.date < NOW() - INTERVAL '1 MONTH'; }}}