23 lines
623 B
Transact-SQL
23 lines
623 B
Transact-SQL
|
|
alter table HJGL_PW_JointInfo add QRCodeAttachUrl nvarchar(200)
|
|
go
|
|
|
|
CREATE view [dbo].[View_PrintJointInfo]
|
|
as
|
|
select joint.JOT_ID,
|
|
joint.ProjectId,
|
|
joint.ISO_ID,
|
|
unit.UnitName,
|
|
installation.InstallationName,
|
|
iso.ISO_IsoNo,
|
|
joint.JOT_JointNo,
|
|
joint.JOT_JointDesc,
|
|
Steel.STE_Code,
|
|
joint.QRCodeAttachUrl
|
|
from HJGL_PW_JointInfo as joint
|
|
left join HJGL_PW_IsoInfo as iso on iso.ISO_ID = joint.ISO_ID
|
|
left join Project_Installation as installation on installation.InstallationId = joint.InstallationId
|
|
left join Base_Unit as unit on unit.UnitId = iso.BSU_ID
|
|
LEFT JOIN HJGL_BS_Steel AS Steel ON Steel.STE_ID = joint.STE_ID
|
|
GO
|