Quantcast
Channel: Baanboard.com
Viewing all articles
Browse latest Browse all 4216

Query design: data repeat 4 lines

$
0
0
Hi,

i designed a sql query as below:

Code:

select
      tcitr310.sitp,        | Invoice Transaction Type (Selling)
      tcitr310.sivn,        | Invoice Number (Selling)
      tcitr310.sivl,        | Invoice Line (Selling)
      tcitr310.sivd,        | Invoice Date (Selling)
      tcitr310.stls,        | Status (Selling)
      tcitr310.ptls,        | Status (Buying)
      tcitr310.orno,        | Order
      tcitr300.oboi,        | Originating Business Object
      whinh200.hsta          | Header Status
from
      tcitr300,              | Intercompany Trade Orders
      tcitr310,              | Intercompany Trade Order Transaction Lines
      whinh200              | Warehousing Orders
where
      tcitr310.sitp >= tcitr310.sitp.f and
      tcitr310.sitp <= tcitr310.sitp.t and
      tcitr310.sivn >= tcitr310.sivn.f and
      tcitr310.sivn <= tcitr310.sivn.t and
      tcitr310.sivd >= tcitr310.sivd.f and
      tcitr310.sivd <= tcitr310.sivd.t and
      tcitr300.oboi = whinh200.orno and
      tcitr310.orno = tcitr300.orno

However, it print the same line data 4 times.
is there any idea how to solve this?

Thank you so much in advance for support and idea.

Viewing all articles
Browse latest Browse all 4216

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>