Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-31-2004, 01:56 PM
joelsilva joelsilva is offline
Senior Member
 
Join Date: May 2004
Posts: 154
Default DBGrid Question: How can I implement this?- i think itīs noob question

Hi folks,

I have one table (table_1) which contains 4 fieds:
1) ID;
3) Product_Name;
2) Date;
4) Price.

I set a DBGrid to shows all my RECORDS related to some month (for example, August), ordering by date. So, it seems like:

==============================
ID Product_Name Date Price
01 Product1 01/08/2004 20.00
02 Product2 01/08/2004 10.00
03 Product3 01/08/2004 50.00
04 Product4 02/08/2004 30.00
05 Product5 02/08/2004 10.00
06 Product6 05/08/2004 20.00
07 Product7 07/08/2004 15.00
(...)
==============================

I need to put in another table(table_2 - 2 fields: Date and Amount)the amount of productīs price for DATE and shows it in another DBGrid. So, this second DBGrid will be something like:

==============================
Date Amount
01/08/2004 80.00
02/08/2004 40.00
05/08/2004 20.00
07/08/2004 15.00
(...)
==============================


How can i implement this? I am using ADO components to connect into my MS Access database.

Best regards.
Reply With Quote
 

Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:07 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.