NJC__Documentation::DB

dbo.view_ms_part_list_detail

Description

Properties

Name Value
Collation SQL_Latin1_General_CP1_CI_AS
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Schema Bound

False

Created 11/6/2020 18:56:29
Last Modified 11/6/2020 18:56:29

Columns

Key Name Description
ms_part_list_detail_id
ms_item_id
ms_item_part_id
a_f_no
molts_no
qty_jb
qty_total
assy_comb
carline
size
create_date
create_by
modify_date
modify_by

SQL Script

SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO


CREATE VIEW dbo.view_ms_part_list_detail
AS
select 
 a.ms_part_list_detail_id
 , b.ms_item_id
 , a.ms_item_part_id
 , a.a_f_no
 , a.molts_no
 , a.qty_jb
 , a.qty_total
 , b.assy_comb
 , b.carline
 , b.size
 , b.create_date 
    , users_create.username AS create_by
 , b.modify_date
 , users_modify.username AS modify_by

from dt_ms_part_list_detail a
INNER JOIN dt_ms_part_list b ON a.ms_item_id = b.ms_item_id
LEFT OUTER JOIN dbo.users AS users_create ON b.create_by = users_create.id 
LEFT OUTER JOIN dbo.users AS users_modify ON b.modify_by = users_modify.id

GO

Used By

No items found