Using triggers and views in SQL.