Created
April 26, 2024 14:26
-
-
Save goel52/44f6daf3ede06af8365482c49dd8166b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table dds.fct_product_sales | |
( | |
id serial primary key, | |
product_id integer not null, | |
order_id integer not null, | |
count integer default 0 not null | |
constraint fct_product_sales_count_check | |
check (count >= 0), | |
price numeric(14, 2) default 0 not null | |
constraint fct_product_sales_price_check | |
check (price >= (0)::numeric), | |
total_sum numeric(14, 2) default 0 not null | |
constraint fct_product_sales_total_sum_check | |
check (total_sum >= (0)::numeric), | |
bonus_payment numeric(14, 2) default 0 not null | |
constraint fct_product_sales_bonus_payment_check | |
check (bonus_payment >= (0)::numeric), | |
bonus_grant numeric(14, 2) default 0 not null | |
constraint fct_product_sales_bonus_grant_check | |
check (bonus_grant >= (0)::numeric) | |
); | |
-- ключ: udZMKdxadM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was bored one evening and decided to explore online casinos in Australia, and that's when I stumbled upon Boomerang Casino . From the moment I signed up, I was hooked. The generous welcome bonus gave me extra funds to play with, and the variety of games kept me entertained for hours. If you're looking for a new online casino adventure, I recommend to try Boomerang.