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 > ANSI SQL > SQL + Crystal Report's Query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-12-04, 07:05
cnkhandar cnkhandar is offline
Registered User
 
Join Date: Apr 2004
Location: Mumbai,India.
Posts: 7
SQL + Crystal Report's Query

Hi All..I think this problem maily from database side then Crystal Reports...
So,I am using MS SQL 2000 Database .... In that I have tab1 and tab2 tables in DB_tab database.
tab1 is having fields:ID,End_A,End_B,Discri.
tab2 has dields : Date,HH<MM,SS,Dataset_ID,Util

Now I want to display as follows in my crystal reports.....
concate ID & End_A of tab1 and store result in var1
and using this var1,using MM as a criteria in tab2.......
I want to display util from tab2,for all End_As & End_Bs......Can any 1 help me on this????
Thanks in advance....
Chandresh (India).
Reply With Quote
  #2 (permalink)  
Old 04-12-04, 12:55
rdjabarov rdjabarov is offline
Registered User
 
Join Date: Jul 2003
Location: San Antonio, TX
Posts: 3,611
Is there a single common field between tab1 and tab2? Is it tab1.ID and tab2.Dataset_ID?
Reply With Quote
  #3 (permalink)  
Old 04-13-04, 05:06
cnkhandar cnkhandar is offline
Registered User
 
Join Date: Apr 2004
Location: Mumbai,India.
Posts: 7
HI rdjabarov,
No, ID and DatasetID is totally different,having different meaning and usage.And if its necessary,and if its gonna help me the I can add a colume in either of the table as per requirements.Then is it possible???
Thanks in advance...
Chandresh (India)
Reply With Quote
  #4 (permalink)  
Old 04-13-04, 12:25
rdjabarov rdjabarov is offline
Registered User
 
Join Date: Jul 2003
Location: San Antonio, TX
Posts: 3,611
That's how it should be.
__________________
"The data in a record depends on the Key to the record, the Whole Key, and
nothing but the Key, so help me Codd."
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