pipekit/config/modules/spxitemmaster.sql

109 lines
4.2 KiB
Transact-SQL

SELECT
RTRIM([Item_Number]) AS [item_number],
RTRIM([BOD]) AS [bod],
RTRIM([Depth]) AS [depth],
RTRIM([Drainage]) AS [drainage],
RTRIM([Drop_ins]) AS [drop_ins],
RTRIM([WebHeight]) AS [webheight],
RTRIM([WebLength]) AS [weblength],
RTRIM([Overall_Height]) AS [overall_height],
RTRIM([Picture]) AS [picture],
RTRIM([Program]) AS [program],
RTRIM([TID]) AS [tid],
RTRIM([TOD]) AS [tod],
RTRIM([Volume]) AS [volume],
RTRIM([WebWidth]) AS [webwidth],
RTRIM([Catalog_Description]) AS [catalog_description],
RTRIM([_ITEMCODE]) AS [_itemcode],
[_Garden_Goodz] AS [_garden_goodz],
RTRIM([Mold_Id]) AS [mold_id],
RTRIM([Color]) AS [color],
RTRIM([Item_Family]) AS [item_family],
RTRIM([Material_Properties]) AS [material_properties],
RTRIM([Shape_Properties]) AS [shape_properties],
RTRIM([Size]) AS [size],
[_CHGWebReady] AS [_chgwebready],
RTRIM([_AddOns]) AS [_addons],
RTRIM([_ColorFilter]) AS [_colorfilter],
[_HdExclusive] AS [_hdexclusive],
RTRIM([_IndoorOutdoor]) AS [_indooroutdoor],
[_SkidQty] AS [_skidqty],
RTRIM([_WebDescription]) AS [_webdescription],
RTRIM([_WebHeader]) AS [_webheader],
RTRIM([_Finish]) AS [_finish],
RTRIM([_SeasonalProgram]) AS [_seasonalprogram],
RTRIM([_WebIcons]) AS [_webicons],
[_EastPrice] AS [_eastprice],
[_NorthPrice] AS [_northprice],
[_SouthPrice] AS [_southprice],
[_WestPrice] AS [_westprice],
RTRIM([_Prefix]) AS [_prefix],
RTRIM([_Product_Type]) AS [_product_type],
[_VirtualWebInventory] AS [_virtualwebinventory],
[_UseVirtualInventory] AS [_usevirtualinventory],
[_Big_Commerce_ID] AS [_big_commerce_id],
RTRIM([_Free_Addons]) AS [_free_addons],
RTRIM([_HDCom_Internet_Number]) AS [_hdcom_internet_number],
RTRIM([_HTSCode]) AS [_htscode],
RTRIM([_DutyRate]) AS [_dutyrate],
[_Exempt] AS [_exempt],
RTRIM([_Sanction]) AS [_sanction],
[_HD_Retail] AS [_hd_retail],
[ReOrder_Threshold] AS [reorder_threshold],
[_EastCoastLanded] AS [_eastcoastlanded],
[_NorthLanded] AS [_northlanded],
[_SouthLanded] AS [_southlanded],
[_WestCoastLanded] AS [_westcoastlanded],
RTRIM([_Component1]) AS [_component1],
RTRIM([_Component_2]) AS [_component_2],
[_Component_1_qty] AS [_component_1_qty],
[_Component_2_qty] AS [_component_2_qty],
RTRIM([_Master_Item_UPC]) AS [_master_item_upc],
RTRIM([_Component_3]) AS [_component_3],
[_Component_3_qty] AS [_component_3_qty],
[_Component_4_qty] AS [_component_4_qty],
[_Component_5_qty] AS [_component_5_qty],
RTRIM([_Component4]) AS [_component4],
RTRIM([_Component5]) AS [_component5],
RTRIM([_Component_6]) AS [_component_6],
[_Component_6_qty] AS [_component_6_qty],
RTRIM([_SSRS_Category]) AS [_ssrs_category],
RTRIM([_HD_PBS_SKU]) AS [_hd_pbs_sku],
RTRIM([_Channel]) AS [_channel],
RTRIM([_Double_Wide_Bin]) AS [_double_wide_bin],
RTRIM([_Family_Number]) AS [_family_number],
RTRIM([_Account_Manager]) AS [_account_manager],
RTRIM([_Pallet_Dims]) AS [_pallet_dims],
RTRIM([_Pallet_Weight]) AS [_pallet_weight],
RTRIM([_Customs_Materials]) AS [_customs_materials],
RTRIM([_THD_Collection]) AS [_thd_collection],
RTRIM([_Collection]) AS [_collection],
RTRIM([_Reporting_TOD]) AS [_reporting_tod],
RTRIM([_Add_on_1]) AS [_add_on_1],
RTRIM([_Free_add_1]) AS [_free_add_1],
RTRIM([_Free_add_2]) AS [_free_add_2],
RTRIM([_Free_add_3]) AS [_free_add_3],
RTRIM([_Free_add_4]) AS [_free_add_4],
RTRIM([_Free_add_5]) AS [_free_add_5],
RTRIM([Add_on_1]) AS [add_on_1],
RTRIM([Add_on_2]) AS [add_on_2],
RTRIM([Add_on_3]) AS [add_on_3],
RTRIM([Add_on_4]) AS [add_on_4],
RTRIM([Add_on_5]) AS [add_on_5],
[_PCR] AS [_pcr],
RTRIM([_Hanger_16]) AS [_hanger_16],
RTRIM([_Hanger_18]) AS [_hanger_18],
RTRIM([_Hanger_20]) AS [_hanger_20],
RTRIM([_Hanger_22]) AS [_hanger_22],
RTRIM([_Pedestal]) AS [_pedestal],
RTRIM([_Self_Watering_Disc]) AS [_self_watering_disc],
[_Tag_Slot] AS [_tag_slot],
RTRIM([_Water_Disc]) AS [_water_disc],
RTRIM([_Web_Image]) AS [_web_image],
RTRIM([_Web_Product_Type]) AS [_web_product_type],
RTRIM([_Product_Tier]) AS [_product_tier],
RTRIM([_Product_Tier_Exclusive]) AS [_product_tier_exclusive],
RTRIM([_Production_Review]) AS [_production_review],
RTRIM([_Segment]) AS [_segment]
FROM [usavmsql01].[CHG].[dbo].[spxItemMaster]