A Message Board, Guestbook, or Poll hosted for your website.

Ask Golden

Chat
Golden Consulting > Message Board > Need help to summarize data from different tables !!!
 

Thread Tools  | Search This Thread 
Reply
 
Author Comment
 
Vijay
    08/20/08 at 02:33 AM
Reply with quote#1

 Hi there,
I am a newbie to Crystal Reports. My client needs one of his reports to summarize data from different tables of the same database. I am in desparate need of help!!!!!!

So let me a give a scenario of what they want.
There are 4 tables

  • Products - This contains the details of all the products - the master data - Primary Key - Product Code
  • Repairs - table contains all the repairs of the various products - Primary key - Repair ID.
  • Credits - the varios credits that have been granted for various products - Primary Key - CreditNo
  • Spares - The various spare parts for the products - Primary Key - Sparecode

The Recall, Credits and Spares are linked to Products table via the Product Code field (Primary key - foreign key relationship).


Products
Product Code Product desc
0001                Pram
0002                crayons
00093              Walkers
0003                 Baby toys
00055               Chocolate

Repairs                                                            Credits                                                                Spares   

Repair Id   Product Code  Repair Desc            Credit NO   ProductCode Credit Amount              Sparecode  ProductCode  Amount
12334        0001                 xyz                         44332        0001            888                             322223       00001              8833
23435        0001                 xxh                         3333         00093            999                              223356       00001             2222
35667        0003                 fsd                         44444          0001          009                               33333        00055            22222

The report that is need should be like this


Product Desc     Recall              Credits                 Spares   Subtotal
Pram                  2                      2                         2
Baby Toys          1                      0                         0
Walkers             0                       1                        0
Baby oys           1                        0                         0
Chocolates        0                          0                       1
Crayons           0                             0                      0

Sub Total       


The report should take every Products in the "Products" table and count the number of times its is occuring in the 3 other tables and display them in the corresponding columns.  Moreover we should subtotal the columns and rows.

Till now I have used wizards and stuff like cross tabs to generate reports. But this report is driving me crazy. I would greatly appreciate if you explain your solutions in detail without missing even the basic instructions,,as I am new to this field.

P.S - I would prefer it if there was no coding involved,,



Thanks In advance........





Alan
    08/22/08 at 05:57 AM
Reply with quote#2

This is bigger that just a forum answer. I would suggest that we at Golden can help you with some remote mentoring to make this happen. If you are interested then please contact me at asawyer@goldencg.com.

Previous Thread | Next Thread
Reply

 
Bookmarks
 
Digg Diggdel.icio.us del.icio.usStumbleUpon StumbleUponGoogle Google