Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

New sql qyuery format

$
0
0

I've been given a sql query to modify and it has a format that I have not seen before. Here is part of it:

SELECT   PA_.ENQ_OEOrdItem->OEORI_OEORD->OEORD_Adm->DM_ADMNO  AS XX
  FROM PA_EntCont PA_
  WHERE (PA_.ENQ_OEOrdItem->OEORI_ItmMast->ARCIM_Desc IS NOT NULL) OR
        (PA_.ENQ_OEOrdItem->OEORI_ItmMast->ARCIM_Desc IS NULL AND
         PA_.RequestType->REQTYP_Desc IS NOT NULL)

My question is how do you configure the joins to the other tables when only PA_EntCont is defined ? Eg. OEORI_OEORD belongs to another table but only this field is referenced, not its table?


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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