0% found this document useful (0 votes)
3 views1 page

Inventory Tables

The document contains SQL statements selecting data from multiple tables and joining some tables on transaction sequence and layer ID fields.

Uploaded by

saurabh_k2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Inventory Tables

The document contains SQL statements selecting data from multiple tables and joining some tables on transaction sequence and layer ID fields.

Uploaded by

saurabh_k2009
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Select * from [dbo].

[OIVL]
Select * from [dbo].[IVL1]
Select * from [dbo].[OIVQ]
Select * from [dbo].[OIVK]
Select * from [dbo].[OILM]
Select * from [dbo].[OADM]

[dbo].[OIVL] T0
INNER JOIN [dbo].[IVL1] T1 ON T0.[TransSeq] = T1.[TransSeq]
LEFT OUTER JOIN [dbo].[OIVQ] T2 ON T1.[TransSeq] = T2.[TransSeq] AND T1.
[LayerID] = T2.[LayerID]
INNER JOIN [dbo].[OIVK] T3 ON T1.[TransSeq] = T3.[TransSeq] AND T1.[LayerID] =
T3.[LayerID]
INNER JOIN [dbo].[OILM] T4 ON T0.[MessageID] = T4.[MessageID]
LEFT OUTER JOIN [dbo].[OADM] T5 ON T5.[Code] = T5.[Code]

You might also like