Vraag : De Hulp van de Vraag van Oracle

Hi

The na vraag keert 2 rijen terug. Maar ik heb output in enige rij nodig. Kunt u zich pls help

SELECT stocktransfer.stocktransfer_id, STORE.description „storefrom“, stocktransfer.quantity, stocktransfer.createddate, from_storecode, to_storecode,

stocktransfer.productcode
VAN stocktransfer
bij opslag op stocktransfer.from_storecode =STORE.STORECODE waar to_storecode niet null
de
unie all

UITGEZOCHTE stocktransfer.stocktransfer_id is, sluit is STORE.description „storeto“, stocktransfer.quantity, stocktransfer.createddate, from_storecode, to_storecode,

stocktransfer.productcode
VAN stocktransfer
bij opslag aan on
stocktransfer.to_storecode=STORE.STORECODE waar from_storecode geen null

Antwoord : De Hulp van de Vraag van Oracle

probeer:

selecteer x.*, y.*
 van
(UITGEZOCHTE stocktransfer.stocktransfer_id, STORE.description „storefrom“, stocktransfer.quantity, stocktransfer.createddate, from_storecode, to_storecode,

       stocktransfer.productcode
  VAN stocktransfer
    sluit me aan bij opslag op stocktransfer.from_storecode =STORE.STORECODE waar to_storecode niet ongeldig) x is,
(  
 SELECTEER stocktransfer.stocktransfer_id, STORE.description „storeto“, stocktransfer.quantity, stocktransfer.createddate, from_storecode, to_storecode,
       stocktransfer.productcode
  VAN stocktransfer
     sluit aan me bij opslag
  stocktransfer.to_storecode=STORE.STORECODE waar from_storecode geen ongeldig) y is

Dank,
Andere oplossingen  
 
programming4us programming4us