SELECT * FROM dbo.Pipeline_WeldJoint
GO

UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode = JointArea+WeldJointCode
GO

UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='SC'+WeldJointCode 
WHERE WeldTypeId='0f74bf37-788e-4fa5-a348-763bd79ca448'
GO
UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='OL'+WeldJointCode 
WHERE WeldTypeId='371acb22-9e46-4117-a8b1-bd0624bc392b'
GO
UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='RP'+WeldJointCode 
WHERE WeldTypeId='0b62795f-32f2-4e5c-8906-4ed0d8fbb307'
GO
UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='BR'+WeldJointCode 
WHERE WeldTypeId='74f21010-8d32-40bc-afee-287004ea5fd6'
GO
UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='SUP'+WeldJointCode 
WHERE WeldTypeId='71f62fc4-d00b-494f-b4f6-42426d753ca2'
GO
UPDATE dbo.Pipeline_WeldJoint SET WeldJointCode='E'+WeldJointCode 
WHERE WeldTypeId='5da18457-f244-4a3c-a8e7-f27c9d24c75e'
GO

UPDATE dbo.Pipeline_WeldJoint SET WeldingLocationId =NULL WHERE WeldingDailyId IS NULL
GO

ALTER TABLE dbo.WPQ_WPQList ADD WeldMatId NVARCHAR(50) NULL
GO
ALTER TABLE dbo.WPQ_WPQList ADD WeldSilkId NVARCHAR(500) NULL
GO

ALTER TABLE dbo.Base_DNCompare ADD OutSize_FB DECIMAL(9,2) NULL
ALTER TABLE dbo.Base_DNCompare ADD SCH_FB DECIMAL(9,2) NULL
ALTER TABLE dbo.Base_DNCompare ADD DN_FB INT  NULL
GO