dbTalk Databases Forums  

Oracle View and Crystal Reports

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss Oracle View and Crystal Reports in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
cory.swartz
 
Posts: n/a

Default Oracle View and Crystal Reports - 04-25-2007 , 08:37 AM






I apologize if I am in the wrong group, but I'm not sure if this deals
more with the Oracle view or how Crystal is using the view I created.
The view script is below:
=============================================
Select
CMDSERIES.ORDR.CUST_CODE,
CMDSERIES.ORDR.CUST_NAME,
CMDSERIES.ORDR.PROJ_CODE,
CMDSERIES.ORDR.PRICE_PLANT_CODE,
CMDSERIES.ORDR.SLSMN_EMPL_CODE,
CMDSERIES.ORDR.ORDER_DATE,
CMDSERIES.ORDR.ORDER_CODE,
CMDSERIES.ORDL.ORDER_DATE,
CMDSERIES.ORDL.ORDER_CODE,
CMDSERIES.ORDL.PROD_CODE,
CMDSERIES.ORDL.PROD_DESCR,
CMDSERIES.ORDL.PRICE_QTY,
CMDSERIES.ORDL.PRICE,
CMDSERIES.PROJ.PROJ_CODE,
CMDSERIES.PROJ.PROJ_NAME,
CMDSERIES.PROJ.CA_SALES_ANL_CODE,
CMDSERIES.EMPL.EMPL_CODE,
CMDSERIES.EMPL.NAME,
CMDSERIES.PLNT.PLANT_CODE,
CMDSERIES.PLNT.NAME
From
CMDSERIES.ORDR,CMDSERIES.ORDL,CMDSERIES.PROJ,CMDSE RIES.EMPL,CMDSERIES.PLNT
WHERE
((CMDSERIES.ORDR.CUST_CODE=CMDSERIES.PROJ.CUST_COD E)
AND(CMDSERIES.ORDR.ORDER_DATE=CMDSERIES.ORDL.ORDER _DATE)
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE)
AND(CMDSERIES.ORDR.ORDER_CODE=CMDSERIES.ORDL.ORDER _CODE)
AND(CMDSERIES.ORDR.SLSMN_EMPL_CODE=CMDSERIES.EMPL. EMPL_CODE)
AND(CMDSERIES.ORDR.PRICE_PLANT_CODE=CMDSERIES.PLNT .PLANT_CODE))
=============================================

The issue I have is there are records in the ORDR table that do not
have an ORDR.PROJ_CODE value. I still want to display these values in
my report, but they do not show up. When I remove the
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE) line from the
view, I get tons of repeating values. I've tried outer joins, but to
no avail. I'm lost at this point and any assistance would be greatly
appreciated.

Thanks.


Reply With Quote
  #2  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Oracle View and Crystal Reports - 04-25-2007 , 01:14 PM






cory.swartz schreef:
Quote:
From
CMDSERIES.ORDR,CMDSERIES.ORDL,CMDSERIES.PROJ,CMDSE RIES.EMPL,CMDSERIES.PLNT
WHERE
((CMDSERIES.ORDR.CUST_CODE=CMDSERIES.PROJ.CUST_COD E)
AND(CMDSERIES.ORDR.ORDER_DATE=CMDSERIES.ORDL.ORDER _DATE)
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE)
AND(CMDSERIES.ORDR.ORDER_CODE=CMDSERIES.ORDL.ORDER _CODE)
AND(CMDSERIES.ORDR.SLSMN_EMPL_CODE=CMDSERIES.EMPL. EMPL_CODE)
AND(CMDSERIES.ORDR.PRICE_PLANT_CODE=CMDSERIES.PLNT .PLANT_CODE))
=============================================

The issue I have is there are records in the ORDR table that do not
have an ORDR.PROJ_CODE value. I still want to display these values in
my report, but they do not show up. When I remove the
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE) line from the
view, I get tons of repeating values. I've tried outer joins, but to
no avail. I'm lost at this point and any assistance would be greatly
appreciated.

Thanks.

Use an outer join; the plus sign comes on the missing data
side of the equasion: CMDSERIES.ORDR.PROJ_CODE=ORDR.PROJ_CODE(+)
In recent versions, the ANSI vesrion (.. .outer join on...) is
also supported - your version: NULL
--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #3  
Old   
cory.swartz
 
Posts: n/a

Default Re: Oracle View and Crystal Reports - 04-26-2007 , 01:52 PM



On Apr 25, 2:14 pm, Frank van Bortel <frank.van.bor... (AT) gmail (DOT) com>
wrote:
Quote:
cory.swartz schreef:





From
CMDSERIES.ORDR,CMDSERIES.ORDL,CMDSERIES.PROJ,CMDSE RIES.EMPL,CMDSERIES.PLNT
WHERE
((CMDSERIES.ORDR.CUST_CODE=CMDSERIES.PROJ.CUST_COD E)
AND(CMDSERIES.ORDR.ORDER_DATE=CMDSERIES.ORDL.ORDER _DATE)
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE)
AND(CMDSERIES.ORDR.ORDER_CODE=CMDSERIES.ORDL.ORDER _CODE)
AND(CMDSERIES.ORDR.SLSMN_EMPL_CODE=CMDSERIES.EMPL. EMPL_CODE)
AND(CMDSERIES.ORDR.PRICE_PLANT_CODE=CMDSERIES.PLNT .PLANT_CODE))
=============================================

The issue I have is there are records in the ORDR table that do not
have an ORDR.PROJ_CODE value. I still want to display these values in
my report, but they do not show up. When I remove the
AND(CMDSERIES.ORDR.PROJ_CODE=CMDSERIES.PROJ.PROJ_C ODE) line from the
view, I get tons of repeating values. I've tried outer joins, but to
no avail. I'm lost at this point and any assistance would be greatly
appreciated.

Thanks.

Use an outer join; the plus sign comes on the missing data
side of the equasion: CMDSERIES.ORDR.PROJ_CODE=ORDR.PROJ_CODE(+)
In recent versions, the ANSI vesrion (.. .outer join on...) is
also supported - your version: NULL
--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...- Hide quoted text -

- Show quoted text -
apologies for the double post... seems like our IT dept has web
caching enabled somewhere.

Thanks for the info!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.