Suppose, I want to create a table called payment. after that, I want to create three columns in it. selling price, cost price, and then I want to create a profit column like profit = (selling_price - cost_price). Is it possible and if how?
CREATE TABLE payment( selling_price NUMERIC, cost_price NUMERIC NOT NULL, profit = (selling_price - cost_price),/**** 3rd column profit i want to create