473,729 Members | 2,150 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Representing objects and dates

I want to show data objects as Y-axis (rows) and dates alng x-axis (fields)

Date 01.01.05 02.01.05 03.01.05 ...
Obj1 Free Free Occupied
Obj2 Free Occupied Free
Obj3 Occupied Free Occupied
....

I wouldn't like to make a table with Dates as fields ( I need more than 2
years ahead)
Is threr another way to solve this problem?
regards
reidarT
Nov 17 '05 #1
4 1266
reidarT <re****@eivon.n o> wrote:
I want to show data objects as Y-axis (rows) and dates alng x-axis (fields)

Date 01.01.05 02.01.05 03.01.05 ...
Obj1 Free Free Occupied
Obj2 Free Occupied Free
Obj3 Occupied Free Occupied
...

I wouldn't like to make a table with Dates as fields ( I need more than 2
years ahead)
Is threr another way to solve this problem?


I'm not entirely sure what the problem is, but DateTime is the normal
way of representing dates and times, and there's nothing that stops
them from representing dates later than 2007...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #2
No, that is not what I ment.
If the table contains the following fields
Objekt
Date1
Date2
Dtae3
....
Date 750
it becomes incredably big and I dont think you can have more than 25 fields
in a table.
regards
reidarT
"Jon Skeet [C# MVP]" <sk***@pobox.co m> skrev i melding
news:MP******** *************** *@msnews.micros oft.com...
reidarT <re****@eivon.n o> wrote:
I want to show data objects as Y-axis (rows) and dates alng x-axis
(fields)

Date 01.01.05 02.01.05 03.01.05 ...
Obj1 Free Free Occupied
Obj2 Free Occupied Free
Obj3 Occupied Free Occupied
...

I wouldn't like to make a table with Dates as fields ( I need more than 2
years ahead)
Is threr another way to solve this problem?


I'm not entirely sure what the problem is, but DateTime is the normal
way of representing dates and times, and there's nothing that stops
them from representing dates later than 2007...

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 17 '05 #3
reidarT <re****@eivon.n o> wrote:
No, that is not what I ment.
If the table contains the following fields
Objekt
Date1
Date2
Dtae3
...
Date 750
it becomes incredably big and I dont think you can have more than 25 fields
in a table.


You can definitely have more than 25 fields in a table. However, it
feels more like you want those to be rows rather than columns.

It's still unclear exactly what your question is, I'm afraid.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 17 '05 #4
reidarT wrote:
I want to show data objects as Y-axis (rows) and dates alng x-axis (fields)

Date 01.01.05 02.01.05 03.01.05 ...
Obj1 Free Free Occupied
Obj2 Free Occupied Free
Obj3 Occupied Free Occupied
...

I wouldn't like to make a table with Dates as fields ( I need more than 2
years ahead)
Is threr another way to solve this problem?
regards
reidarT

How about an 'objects' table with the object id etc..
and a 'dates' table with the date id etc..

then a joining table to say these are in use or free or whatever.
ie
Objects
Id Name
1 Obj1
2 Obj2

Dates
Id DateValue
1 2005-01-01
2 2005-01-02

FreeDates (different implementations could easily be done)
ObjectsId DatesId
1 1
1 2
2 1
in this scenario, object 2 is NOT free on 2005-01-02

HTH

JB

PS. you can have up to 1024 cols in an sql server 2000 db IIRC
Nov 17 '05 #5

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

Similar topics

6
1678
by: Terry Hancock | last post by:
What do you do when a date or time is incompletely specified? ISTM, that as it is, there is no formal way to store this --- you have to guess, and there's no way to indicate that the guess is different from solid information. As a result, I have sometimes had to abandon datetime, even though it seemed like the logical choice for representing data. E.g. I might have information like "this paper was published in May 1997". There's no...
16
31586
by: Dave | last post by:
I would like to create a table in HTML that represents a letter on a standard size sheet of paper. But of course, smaller so the width fits on the screen. How do I code an HTML table to represent an 8.5 x 11 sheet of paper? What would the screen measurements be in pixels? -- ============================ - Dave
1
3682
by: jeff | last post by:
I have a collection of objects, call them MyObject, that I store in a Hashtable , myHashTable(with dates as keys for instance). These are VERY large objects and I have functions that take them as a 'ref' argument. Now I don't need to change any of the data in them -- I simply pass them by ref so that I don't have to make a copy. I have just discovered that you can't pass properties as 'ref' arguments because they are read only. So I can't...
14
1905
by: tshad | last post by:
I have people telling me that I should set up objects for my tables, but I am finding the Null problem makes that difficult. It isn't a big problem if you are not updating the table, but if you are - it is a real problem if you have Nullable fields. You can't always use a 0 or -1 to tell whether a field is null and dates are another problem. I don't want to use some obscure date in the future for something like "EndDate" or...
1
2129
by: Greg | last post by:
Hi, I need to implement a table in XBRL. Let's assume I have 2 simple tables to define: TABLE 1 col1 col2 row1 A C row2 B D TABLE 2
13
2806
by: r.z. | last post by:
I logged construtor and destructor calls for one of my classes and I discovered that the constructor was called only once while the destructor was called 3 times for a single object. I have a vector of objects of class A: vector<Avector_of_As; and I put objects to it like this: vector_of_As.push_back( A() );
6
4646
by: penny | last post by:
In this assignment we shall look at a possible representation of rational numbers in java using objects. The java language represents rational numbers using the same representation used for other real numbers. This is the floating-point representation. However as we may all know, floating-point numbers are quite inaccurate. This means that ½ might actually be represented as 0.49998, which may not be good enough for some applications. In this...
1
1364
by: Mike Kent | last post by:
The APL 2007 conference, sponsored by ACM SIGAPL, has as its principal theme "Arrays and Objects" and, appropriately, is co-located with OOPSLA 2007, in Montreal this October. APL 2007 starts with a tutorial day on Sunday, October 21, followed by a two-day program on Monday and Tuesday, October 22 and 23. APLers are welcome to attend OOPSLA program events on Monday and Tuesday
14
6020
by: Jess | last post by:
Hello, I learned that there are five kinds of static objects, namely 1. global objects 2. object defined in namespace scope 3. object declared static instead classes 4. objects declared static inside functions (i.e. local static objects) 5. objects declared at file scope.
0
8761
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
9280
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...
0
9142
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
8144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6016
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
4525
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...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
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.