473,774 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Weekly Breakdown

I might be overcomplicatin g the solution, but the problem is I have to
make a breakdown of each week for many ranges of dates within a
particular year. So for example one record might have a start date of
1/1/2008 and an end date of 2/31/2008 and I need to break down each
week within that period and display the data corresponding to that
range. Here is an example of the data and how it should look.

StartDate EndDate DataToDisplay
-------------- ------------- ----------------------
1/1/2008 2/28/2008 Hello Mess!
3/1/2008 3/15/2008 Some Data
12/15/2008 1/15/2009 Curveball

Jan Feb ....
Dec
Week 1 | Hello Mess! Hello Mess! ....
Week 2 | Hello Mess! Hello Mess! ....
Week 3 | Hello Mess! .... Curveball
Week 4 | Hello Mess! .... Curveball
Week 5 | Hello Mess! .... Curveball

Any ideas?
Jun 27 '08 #1
1 1499
On Apr 16, 11:40*am, Benny <bennyandli...@ gmail.comwrote:
I might be overcomplicatin g the solution, but the problem is I have to
make a breakdown of each week for many ranges of dates within a
particular year. *So for example one record might have a start date of
1/1/2008 and an end date of 2/31/2008 and I need to break down each
week within that period and display the data corresponding to that
range. *Here is an example of the data and how it should look.

StartDate * * * * *EndDate * * * DataToDisplay
-------------- * * * * *------------- * * *----------------------
1/1/2008 * * * * * 2/28/2008 * * Hello Mess!
3/1/2008 * * * * * 3/15/2008 * * Some Data
12/15/2008 * * * 1/15/2009 * * *Curveball

* * * * * * * * * Jan * * * * * * * * Feb * * * * * * ....
Dec
Week 1 | *Hello Mess! * *Hello Mess! * * * * * * * ** *....
Week 2 | *Hello Mess! * *Hello Mess! * * * * * * * ** *....
Week 3 | *Hello Mess! * * * * .... * * * * * * * * * * * Curveball
Week 4 | *Hello Mess! * * * * .... * * * * * * * * * * * Curveball
Week 5 | *Hello Mess! * * * * .... * * * * * * * * * * * Curveball

Any ideas?
Hi,

Where is that data stored?
Is this in SQL?

you need to give more details, also if this is an SQL question post it
in the correct rgoup
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
1436
by: Sean Ross | last post by:
Here's a breakdown of most of the syntax discussed re: PEP318 using an example from python-dev. There are probably several more (I've added ). The example applies both function decoration and annotation. # .. , competing ways to say the same thing # def foo(self) : "doc string"
1
1273
by: Cameron Laird | last post by:
Editor's note: "Python-URL!" is minimal. It doesn't support advertisements, we never allow the subscribers' addresses to be used for other purposes, we don't claim infallibility, and we even take a couple weeks off some years. Occasionally, though--not as often as the US enters a shooting war, say, but more frequently than IBM hires a new CEO--we pause for a sufficiently important correction or announcement. This year, we apologize for...
0
2147
by: BuddyWork | last post by:
Hello, I want to know if there any good tools out there which will show me a breakdown of the memory allocation in Gen 2 heap, basically a breakdown by object is what I'm looking for. The reason for this is that I eventually get the OutOfMemory exception. I can see the GEN2, GEN1, GEN0 GC kicking in but when run a pariticular code approx 2333
16
1640
by: Atley | last post by:
I am trying to get a overall difference on two dates, I can get the difference in Years, Months, Weeks, Days, Hours, Minutes, Seconds, no problems... What I cannot seem to figure out is how to get: 2 Years, 3 Months, 1 Week, 3 Days, 14 Hours, 21 Minutes, 33 Seconds. The hardest part of that, the part I cannot figure out, is the Month
0
1098
by: Cameron Laird | last post by:
ANNOUNCEMENT: we had an incident with backups of the "Python-URL!" mailing list. It's possible we lost one or two transactions from the last week. If you aren't receiving an e-mailed copy of this weekly news digest that you should, or are receiving one when you shouldn't, please alert me through an e-mail reply. QOTW: "exical closures bind to names, default arguments bind to values." - Fredrik Lundh...
3
4143
by: mochatrpl | last post by:
I am looking for a way to make a query / report display the running average for total dollars. I have already set up a query to provide totals dollars per day from which a report graphly shows the dollars per week. How do I then take the dollars and get a running average for the year? - Randy
6
1135
by: Cameron Laird | last post by:
QOTW: "That is just as feasible as passing a cruise ship through a phone line." - Carsten Haese, on transporting a COM object across a network. Less vividly but more formally, as he notes, "A COM object represents a connection to a service or executable that is running on one computer. Transferring that connection to another computer is impossible." "on't burn bandwith by banal banter, post the examples!" - John Machin See the great...
3
4602
by: Daron | last post by:
Is it possible to use SQL to take a field, and break it down by denominations? I would like to take a field, and then break this out into the number of bills($100's, $50's, etc) I would need: $469.32 = 4x$100 1x$50 1x$10 1x$5
9
2176
by: magickarle | last post by:
Hi, I have a database in access with the following columns: Day AgentID ManagerID Grade They got information about agents and some grades. I would like to have ONE form with several grouping (yearly quarterly and weekly) with the respective average.
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10040
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9914
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.