MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 20th, 2007, 01:14 AM
icuras icuras is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 3 icuras User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 31 sec
Reputation Power: 0
Mysql and delphi problem

I have a table with 200 Employees. Then another table with dates, no of balls played, and cost of the ball played.

What i want is an excel format like this.

Employee No, DayOne Balls played, SUM(Cost of day1), DayTow Balls Played, SUM(Cost of day2), etc [obviously all per employee per day- what happend everyday for the whole month for that employee]

So you get something like this.

Mike, 3 [balls], 40 (value), 0 [balls], 0 [value], 16 [balls], 200 (value), 50 [balls], 600 [value], etc

So mike for day 3 had 16balls and the sum was 200. for day 2 he had nothing...i want it for the whole month.Is it possible...i have a routine that does it ofcause...BUT ITS TAKE 45minutes to run.Lot of procedures write to 3rd table.Thats a no no.

Please help

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Mysql and delphi problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT