IBM developerWorks
 
           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:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old April 1st, 2005, 05:41 PM
lagomorphed lagomorphed is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 1 lagomorphed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 m 8 sec
Reputation Power: 0
trying to transform date range

I'm trying to transform a table of date ranges into a list of events each day.

The data is stored as...

id start_date end_date title notes
1 2005-04-25 2005-04-30 $89pp really good deal
2 2005-03-01 2005-04-28 50% off good deal



I want to output it as...


date id title notes
2005-04-27 1 $89pp really good deal
2005-04-27 2 50% off good deal
2005-04-28 1 $89pp really good deal
2005-04-28 2 50% off good deal
2005-04-29 1 $89pp really good deal
2005-04-30 1 $89pp really good deal

I've tried all sorts of things, the best solution using a UNION for each day.

Any help would be hugely appreciated - thanks!

Reply With Quote
  #2  
Old April 5th, 2005, 11:10 AM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
Do does the UNION work, or just seem to come closest? If it works, use it.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > trying to transform date range


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 5 hosted by Hostway