Hello
I've a simple query, like:
select 'PurchaseOrder'
, t0.DocNum
, t0.CardCode
, t1.VisOrder +1 as LineNr
, t1.ItemCode
from OPOR t0
inner join POR1 t1 on t0.DocEntry = t1.DocEntry
with the results:
DocNum CardCode LineNr ItemCode
------------- ----------- --------------- ----------- --------------------
PurchaseOrder 2012110155 112781V 1 130350042002
PurchaseOrder 2012110155 112781V 2 131250148202
PurchaseOrder 2012110155 112781V 3 072244903003
PurchaseOrder 2012110155 112781V 4 132250223501
PurchaseOrder 2012110156 162006V 1 132250472306
is it possible to suspress the double column values, like:
DocNum CardCode LineNr ItemCode
------------- ----------- --------------- ----------- --------------------
PurchaseOrder 2012110155 112781V 1 130350042002
2 131250148202
3 072244903003
4 132250223501
2012110156 162006V 1 132250472306
Dan
I've a simple query, like:
select 'PurchaseOrder'
, t0.DocNum
, t0.CardCode
, t1.VisOrder +1 as LineNr
, t1.ItemCode
from OPOR t0
inner join POR1 t1 on t0.DocEntry = t1.DocEntry
with the results:
DocNum CardCode LineNr ItemCode
------------- ----------- --------------- ----------- --------------------
PurchaseOrder 2012110155 112781V 1 130350042002
PurchaseOrder 2012110155 112781V 2 131250148202
PurchaseOrder 2012110155 112781V 3 072244903003
PurchaseOrder 2012110155 112781V 4 132250223501
PurchaseOrder 2012110156 162006V 1 132250472306
is it possible to suspress the double column values, like:
DocNum CardCode LineNr ItemCode
------------- ----------- --------------- ----------- --------------------
PurchaseOrder 2012110155 112781V 1 130350042002
2 131250148202
3 072244903003
4 132250223501
2012110156 162006V 1 132250472306
Dan