If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > selective records

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-10-12, 11:49
watchandbb watchandbb is offline
Registered User
 
Join Date: Aug 2012
Posts: 1
selective records

I have 2 tables, Table1 and Table2 with common key.
Table2 has 3 fields: key, position and value, where record with same key may have position 1,2,3 etc
eg of records may look like: (key,position,value)
A,1,a1
A,2,a2
C,1,c1
C,3,c3
D,2,d2
E,1,e1

I like to print the value from Table2 with position=2 only.
if I specify position=2 in selction formula, then C will not print as C does not have postion=2. But I like to include ALL records from Table1, regardless whether it has corresponding record in Table2 with position=2.

the report should look like:
A,a2
B (exist in table1)
C (no position=2)
D2
E (no position=2)

Hope I make it clear enough.
many thks for helping.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On