473,837 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB Design Question

Hi all, (please excuse the crosspost as I'm trying to reach as many people
as possible)

I am somewhat familiar with Access 2000, but my latest project has me
stumped. So, I defer to you experts.
I've been asked to create a Daily Log sheet to be distributed to some of our
clerks.

For each day, the clerk is to log tasks worked on for the day, (i.e worked
on the johnson account).
The clerk may work on a particular task for multiple days.

So far pretty easy, here's the kicker:

We want to create a query which reports the tasks worked on for that month.
So, if the clerk worked on the johnson account for 6 days, and the smith
account for 4 days
the query should only show on instance of johnson and one instance of smith.

Here's what I got so far:

3 Tables:
Daily Tasks
Weekdays
FedHolidays

Layout of Daily Tasks (Sorry if these columns don't line up evenly)

Task ID Date WeekdayID FedHolidayID Task1 Task2
Task3 Task4
1 1/1/2004 Thursday New Years
2 1/2/2004 Friday
Johnson Smith Filing Bush
3 1/3/2004 Saturday
Clinton
4 1/4/2004 Sunday
5 1/5/2004 Monday
Meeting Reports Smith Johnson
~
19 1/19/2004 Monday MLK Jr Day Bush
The WeekdayID and FedHolidayID are lookup values.

Question 1:
How can I create a query that will list the following tasks in one list, for
January:

Johnson
Smith
Filing
Bush
Clinton
Meeting
Reports

Question 2:
I want to count the number of weekends worked (i.e. Sat 1/2/04 & Mon
1/19/2004)

Question 3:
How would you handle sick days?

Question 4:
Because this project is still in the design phase, any design input would be
appreciated.

Don't really know how to use vba, unless someone can write the code for me,
I'd like to use the "design view" for this.

Thanx and regards,
"T"
Nov 12 '05 #1
2 2453
Dear User:

The table design from which you started isn't adequate. If you want
to be able to query tables effectively and efficiently, they must
first be normalized. When you show columns like 'Task 1', 'Task 2',
etc. this is a pretty clear sign that it is not normalized.

I would suggest something like this:

ClerkTask
TaskID
Clerk
TaskDateTimeSta rt
TaskDateTimeEnd

Make a separate table of Holidays, just recording the date and holiday
name.

If you need to number the tasks in the day as Task 1, Task 2, etc.
then add a TaskNumber to the ClerkTask table above. However, you'll
always be able to assign a number, ranking these by TimeStart and get
such a number.

Your report will just need to filter the above for a period of time
and then you can report DISTINCT to omit duplicates. Also, you could
aggregate the hours over Task and Clerk and you'll get hours worked
without duplicating Task or Clerk. The query results you want are
VERY EASY if the tables are designed correctly first.

Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts

On Thu, 30 Oct 2003 15:39:44 -0500, "Test User" <te**@user.co m> wrote:
Hi all, (please excuse the crosspost as I'm trying to reach as many people
as possible)

I am somewhat familiar with Access 2000, but my latest project has me
stumped. So, I defer to you experts.
I've been asked to create a Daily Log sheet to be distributed to some of our
clerks.

For each day, the clerk is to log tasks worked on for the day, (i.e worked
on the johnson account).
The clerk may work on a particular task for multiple days.

So far pretty easy, here's the kicker:

We want to create a query which reports the tasks worked on for that month.
So, if the clerk worked on the johnson account for 6 days, and the smith
account for 4 days
the query should only show on instance of johnson and one instance of smith.

Here's what I got so far:

3 Tables:
Daily Tasks
Weekdays
FedHolidays

Layout of Daily Tasks (Sorry if these columns don't line up evenly)

Task ID Date WeekdayID FedHolidayID Task1 Task2
Task3 Task4
1 1/1/2004 Thursday New Years
2 1/2/2004 Friday
Johnson Smith Filing Bush
3 1/3/2004 Saturday
Clinton
4 1/4/2004 Sunday
5 1/5/2004 Monday
Meeting Reports Smith Johnson
~
19 1/19/2004 Monday MLK Jr Day Bush
The WeekdayID and FedHolidayID are lookup values.

Question 1:
How can I create a query that will list the following tasks in one list, for
January:

Johnson
Smith
Filing
Bush
Clinton
Meeting
Reports

Question 2:
I want to count the number of weekends worked (i.e. Sat 1/2/04 & Mon
1/19/2004)

Question 3:
How would you handle sick days?

Question 4:
Because this project is still in the design phase, any design input would be
appreciated.

Don't really know how to use vba, unless someone can write the code for me,
I'd like to use the "design view" for this.

Thanx and regards,
"T"


Nov 12 '05 #2
Tom,

Thanx for you suggestions, I've dropped the task1, task2....column s and
replaced them with taskid

Thanx,
"T"
"Tom Ellison" <te******@jcdoy le.com> wrote in message
news:bc******** *************** *********@4ax.c om...
Dear User:

The table design from which you started isn't adequate. If you want
to be able to query tables effectively and efficiently, they must
first be normalized. When you show columns like 'Task 1', 'Task 2',
etc. this is a pretty clear sign that it is not normalized.

I would suggest something like this:

ClerkTask
TaskID
Clerk
TaskDateTimeSta rt
TaskDateTimeEnd

Make a separate table of Holidays, just recording the date and holiday
name.

If you need to number the tasks in the day as Task 1, Task 2, etc.
then add a TaskNumber to the ClerkTask table above. However, you'll
always be able to assign a number, ranking these by TimeStart and get
such a number.

Your report will just need to filter the above for a period of time
and then you can report DISTINCT to omit duplicates. Also, you could
aggregate the hours over Task and Clerk and you'll get hours worked
without duplicating Task or Clerk. The query results you want are
VERY EASY if the tables are designed correctly first.

Tom Ellison
Microsoft Access MVP
Ellison Enterprises - Your One Stop IT Experts

On Thu, 30 Oct 2003 15:39:44 -0500, "Test User" <te**@user.co m> wrote:
Hi all, (please excuse the crosspost as I'm trying to reach as many peopleas possible)

I am somewhat familiar with Access 2000, but my latest project has me
stumped. So, I defer to you experts.
I've been asked to create a Daily Log sheet to be distributed to some of ourclerks.

For each day, the clerk is to log tasks worked on for the day, (i.e workedon the johnson account).
The clerk may work on a particular task for multiple days.

So far pretty easy, here's the kicker:

We want to create a query which reports the tasks worked on for that month.So, if the clerk worked on the johnson account for 6 days, and the smith
account for 4 days
the query should only show on instance of johnson and one instance of smith.
Here's what I got so far:

3 Tables:
Daily Tasks
Weekdays
FedHolidays

Layout of Daily Tasks (Sorry if these columns don't line up evenly)

Task ID Date WeekdayID FedHolidayID Task1 Task2Task3 Task4
1 1/1/2004 Thursday New Years
2 1/2/2004 Friday
Johnson Smith Filing Bush
3 1/3/2004 Saturday
Clinton
4 1/4/2004 Sunday
5 1/5/2004 Monday
Meeting Reports Smith Johnson
~
19 1/19/2004 Monday MLK Jr Day Bush
The WeekdayID and FedHolidayID are lookup values.

Question 1:
How can I create a query that will list the following tasks in one list, forJanuary:

Johnson
Smith
Filing
Bush
Clinton
Meeting
Reports

Question 2:
I want to count the number of weekends worked (i.e. Sat 1/2/04 & Mon
1/19/2004)

Question 3:
How would you handle sick days?

Question 4:
Because this project is still in the design phase, any design input would beappreciated.

Don't really know how to use vba, unless someone can write the code for me,I'd like to use the "design view" for this.

Thanx and regards,
"T"

Nov 12 '05 #3

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

Similar topics

5
674
by: Don Vaillancourt | last post by:
Hello all, Over the years as I design more database schemas the more I come up with patterns in database design. The more patterns I recognize the more I want to try to design some kind of generic design patterns that can be used and shared amongst many sub-schemas. For example, the grouping of entities. I may have the following tables: employee, product and client. These tables have no direct relationship with each other. But...
9
2944
by: sk | last post by:
I have an applicaton in which I collect data for different parameters for a set of devices. The data are entered into a single table, each set of name, value pairs time-stamped and associated with a device. The definition of the table is as follows: CREATE TABLE devicedata ( device_id int NOT NULL REFERENCES devices(id), -- id in the device
6
2125
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is responsible for instantiating the orders class? Would it be the ui layer or the master class in the business layer? thanks,
17
2730
by: tshad | last post by:
Many (if not most) have said that code-behind is best if working in teams - which does seem logical. How do you deal with the flow of the work? I have someone who is good at designing, but know nothing about ASP. He can build the design of the pages in HTML with tables, labels, textboxes etc. But then I would need to change them to ASP.net objects and write the code to make the page work (normally I do this as I go - can't do this...
17
4861
by: roN | last post by:
Hi, I'm creating a Website with divs and i do have some troubles, to make it looking the same way in Firefox and IE (tested with IE7). I checked it with the e3c validator and it says: " This Page Is Valid XHTML 1.0 Transitional!" but it still wouldn't look the same. It is on http://www.dvdnowkiosks.com/new/theproduct.php scroll down and recognize the black bottom bar when you go ewith firefox(2.0) which isn't there with IE7. Why does...
6
2146
by: JoeC | last post by:
I have a question about designing objects and programming. What is the best way to design objects? Create objects debug them and later if you need some new features just use inhereitance. Often times when I program, I will create objects for a specific purpose for a program and if I need to add to it I just add the code.
0
2086
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the end of this message, but I will start with an overview of the problem. I've made a content management solution for my work with a decently structured relational database system. The CMS stores articles. The CMS also stores related items --...
19
3181
by: neelsmail | last post by:
Hi, I have been working on C++ for some time now, and I think I have a flair for design (which just might be only my imagination over- stretched.. :) ). So, I tried to find a design certification, possibly that involves C++, but, if not, C++ and UML. All I could find was Java + UML design certifications (one such is detailed on http://www.objectsbydesign.com/tools/certification.html). Although UML is expected to be language independent,...
8
2241
by: indrawati.yahya | last post by:
In a recent job interview, the interviewer asked me how I'd design classes for the following problem: let's consider a hypothetical firewall, which filters network packets by either IP address, port number, or both. How should we design the classes to represent these filters? My answer was: class FilterRule {
0
9843
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
9683
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
10882
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...
1
10630
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
9407
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...
0
5670
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
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4476
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
2
4045
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.