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 > Retrieve Data based on Keys.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-19-10, 10:33
Ram2Curious Ram2Curious is offline
Registered User
 
Join Date: Jul 2010
Posts: 8
Retrieve Data based on Keys.

Hi,

I have a table in oracle that holds Foreign Keys(FK) like....


Hour_id(FK) Hours

1 08
1 06
1 02

and so on...

If i drag and drop the Hour_id in report then it should retrieve the rows of Hours based on the Primary key(PK)- Hour_id......

Please help me with this......

Thanks in advance.....

Last edited by Ram2Curious; 07-19-10 at 15:46.
Reply With Quote
  #2 (permalink)  
Old 07-19-10, 14:34
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by Ram2Curious View Post
I have a table in oracle that holds Primary Keys(PK) like....
i can't help you with your crystal reports problem, but i would like to point out that Hour_id cannot be the PK, because there's more than one row with the same value (1) and PKs must be unique
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 07-19-10, 15:32
Ram2Curious Ram2Curious is offline
Registered User
 
Join Date: Jul 2010
Posts: 8
Can someone guide me with this........

thanks.....

Last edited by Ram2Curious; 07-19-10 at 15:48.
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