SQL-based solution (using PostgreSQL) to the Coca Cola Orange Juice Optimization problem