Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
populating same dates and total the price into datagrid..
Old 12-30-2009, 06:44 PM populating same dates and total the price into datagrid..
Junior Talker

Posts: 1
Name: Arisyuan Bin Morzailan
Trades: 0
i had a datagrid with date and price columns.
what i wanted to do is to populate the date and total the price..
assume my date format as dd/mm/yy
example:
from this...
date price
1.1.2009 $70.00
1.1.2009 $90.00
2.1.2009 $50.00
2.1.2009 $50.00

to this...
date price
1.1.2009 $160.00
2.1.2009 &100.00

i'm using ms access as the database.
any idea..?
jebon88 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-30-2009, 07:25 PM Re: populating same dates and total the price into datagrid..
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
should be done in the SQL query

SELECT date,price FROM table GROUP BY date
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-31-2009, 09:16 AM Re: populating same dates and total the price into datagrid..
Extreme Talker

Posts: 246
Trades: 0
I believe it's more like this. Chrishirst, I'm surprised with you, normally your answers are exact and perfect.

Select date, Sum(Price) From table Group By date
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 12-31-2009, 09:29 AM Re: populating same dates and total the price into datagrid..
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Hmm correct

I should really stop typing at midnight
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to populating same dates and total the price into datagrid..
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13080 seconds with 12 queries