Professional Documents
Culture Documents
6.1 Coupon PostgreSql Commands
6.1 Coupon PostgreSql Commands
-- I would like to use ProductName in this table, we can also call it ProductCode,
you can use ProductId or something else.
-- I am going to search with ProductName in this table, because our Basket
microservices has ProductName.
-- we will retrieve coupons by productName.
3
-- After running query,
Right click
View/Edit Table with All Rows
See empty
4
-- let's adding some data for seeding table;
INSERT INTO Coupon (ProductName, Description, Amount) VALUES ('IPhone X', 'IPhone
Discount', 150);
Run - F5
See Data
Right click
View/Edit Table with All Rows