- 1
- 2
- 3
- 4
- 5
- 6
- 7
INSERT INTO Receipt VALUES ('2', '01.06.2020',
(SELECT ProdPrice FROM Products WHERE ProdID=2),
(((SELECT ProdPrice FROM Products WHERE ProdID=2)*20)/100),
(SELECT ProdPrice FROM Products WHERE ProdID=2)+(((SELECT ProdPrice FROM Products WHERE ProdID=2)*20)/100), '1');
ого