Files
clickHouseData/ClickHouse_Calculated_Query/Promotion_Table_Description.sql
T
2026-05-26 16:16:31 +05:30

115 lines
3.4 KiB
SQL

ALTER TABLE DaburIndia_BI.Promotion
MODIFY COLUMN MID Nullable(Int64)
COMMENT 'Unique master transaction ID (depends on unique combination of employee_id, store_id, and visit_date)';
ALTER TABLE DaburIndia_BI.Promotion
MODIFY COLUMN pk Int64
COMMENT 'Primary key identifier';
ALTER TABLE DaburIndia_BI.Promotion
MODIFY COLUMN store_id Int32
COMMENT 'Unique store identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN visit_date Date32
COMMENT 'Date of store visit';
ALTER TABLE DaburIndia_BI.Promotion
MODIFY COLUMN employee_id Int32
COMMENT 'Employee unique identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN supervisor_id Int32
COMMENT 'Supervisor unique identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN channel_id Int32
COMMENT 'Store channel identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN chain_id Int32
COMMENT 'Store chain identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN storetype_id Int32
COMMENT 'Store type identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promo_definition_id Nullable(Int32)
COMMENT 'Promotion definition identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promo_definition_name Nullable(Int32)
COMMENT 'Promotion definition identifier';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promo_definition_name Nullable(String)
COMMENT 'Promotion scheme or offer name';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promotion_deatils_id Nullable(Int32)
COMMENT 'Promotion detail unique identifier depends on the promotion_details table';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promotion_deatils Nullable(String)
COMMENT 'Promotion detail name of the table/subcategory ';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promotion_value_id Nullable(Int32)
COMMENT 'Promotion offer value/SubCategory Id';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promotion_value_name Nullable(String)
COMMENT 'Live promotion value name/SubCategory name ';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN promotion_type Nullable(String)
COMMENT 'Type of promotion';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN present Nullable(String)
COMMENT 'Promotion availability status (Y/N)';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN reason Nullable(String)
COMMENT 'Reason for non-availability';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN PromoQuestion Nullable(String)
COMMENT 'Promotion related questionnaire';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN image1 Nullable(String)
COMMENT 'First promotion image path';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN image2 Nullable(String)
COMMENT 'Second promotion image path';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN update_date DateTime64(3)
COMMENT 'Record update date';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN update_by Nullable(String)
COMMENT 'User who updated record';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN ReasonId Nullable(Int32)
COMMENT 'Reason Id for non-availability';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN msl Nullable(Int32)
COMMENT 'Must Stock List indicator 0=promotion Not exist , 1=promotion exist';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN stock Nullable(String)
COMMENT 'Stock availability status';
ALTER TABLE DaburIndia_BI_New.Promotion
MODIFY COLUMN PromoQuestionId Nullable(Int32)
COMMENT 'Promotion question identifier';