Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: SQL exprssion Post Reply Post New Topic
Author Message
figaro
Newbie
Newbie


Joined: 26 Aug 2007
Location: India
Online Status: Offline
Posts: 10
Quote figaro Replybullet Topic: SQL exprssion
    Posted: 26 Aug 2007 at 10:37pm
HI All,
 
    I am using crystal report XI with SQL as the database, I am using 2 tables from a database namely OEORDH and OEORDHO, the fields of the table are like this....
 
OEORDH
 
   ORDUNIQ        ORDNUMBR   CUSTOMER   CUSTGROUP  BILLNAME. ...
     4546                  QUT02            CUST01            GRI                XYZ             
     4610                  QUT03            CUST02            GR2                YYY
     4738                  QUT03            CUST01            GR1                XYZ
 
 
OEORDHO
 
  ORDUNIQ         OPTFIELD       VALUE
    4546                OPTFLD1          ABCDE
    4546                OPTFLD2          DEFG
    4610                OPTFLD3           ASDF
    4738                OPTFLD1          ABCD      
 
these r the contents of the two tables, actually I am preparing a sales order report,  when i select a report of ORDNUMBR QUT02,I want the value  in OEORDHO to be printed of the of the respective  ORDUNIQ (ie value of 4546)
 
      To be clear when I select QUTO02 I want "ABCD" to be printed on my report.
 
     It will be very useful if any one please help out..
 
regards.
 
 
IP IP Logged
rnareshk
Newbie
Newbie
Avatar

Joined: 19 Jul 2007
Location: India
Online Status: Offline
Posts: 30
Quote rnareshk Replybullet Posted: 27 Aug 2007 at 9:52pm

I found the value for ORDUNIO is same for two records in table OEORDHO. Is it correct?

Thank You,
Naresh.
IP IP Logged
figaro
Newbie
Newbie


Joined: 26 Aug 2007
Location: India
Online Status: Offline
Posts: 10
Quote figaro Replybullet Posted: 27 Aug 2007 at 11:20pm
yes its correct, by the help of that ORDUNIQ the respective value in the second table must get printed
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.