473,400 Members | 2,163 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,400 software developers and data experts.

Database Design question

I am designing a database that tracks the approval sequences of various document submissions. The various types of documents have different approval sequences (different people must approve the the various document types). I created a table for the names of the different approval sequences, but I cannot figure out how represent the approval sequence and attach it to each approval sequence name. Would I make a table for each approval sequence with each field representing the steps of the sequence?
Apr 27 '10 #1
6 2202
patjones
931 Expert 512MB
Generally speaking, it seems like you may want to have a table that stores information about the people involved, a table for the types of files involved, and so forth...but beyond that it's hard to advise you given what you've laid out so far.

Can you maybe give a few concrete examples of a typical approval sequence?

Pat
Apr 27 '10 #2
hidust
3
@ggrayman
I have a database that does something similar. From the process side of things, do you have any identifiying numbers for your documents? I have multiple tables one for each type of document that uses a document number so these documents can be searched for and referenced. The rest of the table contains approval timestamps, the approver, metadata from the document, and a link to the document in .pdf format stored on the server. Provide some more details might be able to help you.
Apr 28 '10 #3
Thank you both for responding. Attached is my current chart of relationships. My problem is on the bottom-right. I would like to be able to assign a predefined Approval Sequence to each Submission without having to manually define the sequence for each submission. How to create a single item that is actually a series of predefined items. Thanks for considering this.
Attached Files
File Type: pdf Relationships for Grants Datatbase.pdf (15.4 KB, 303 views)
Apr 28 '10 #4
patjones
931 Expert 512MB
Hi,

I've just been trying to digest your diagram. A few questions...

First, is the relationship between "Submission/Process Initiation Types" and "Approval Sequences" one-to-one? In other words, one Sub/Process Initiation ID corresponds to one and only one record in the Approval Sequences table.

Second, at the point where a submission is entered in the database, what information in Approval Sequences, if any, do you have?

Third, how do you assign Submission Type ID, Sub/Process Initiation ID, and Approval Sequence ID? Are they autonumbers, or related to something substantive about the documents?

Thanks.

Pat
Apr 30 '10 #5
@zepphead80
Pat,

Thank you for your assistance.

1. Each Submission Initiation Type will have one Approval Sequence, but more than one Submission Initiation Type may have the same Approval Sequence.

2. Once we know what the submission type is, we will know what the appropriate Approval Sequence is.

3. These are lookup tables for predefined records. As the data is entered, the ID would be automatically assigned.

Thanks again!
Apr 30 '10 #6
patjones
931 Expert 512MB
In my opinion, the way those three tables off to the right are setup, it looks pretty good, but I do understand what you're saying about the Party/Process columns in Approval Sequences. It seems like there should be a "cleaner" way to do that, but I actually think it is okay. The only thing I would consider is making a table that stores the Party/Process names with a corresponding code, and just use that code in the Party/Process columns in Approval Sequences.

Have there been any issues with the database operationally that would cause you to question the table structure? The main point is to avoid duplication of data, which you seem to be doing.

Pat
May 1 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lefevre, Steven | last post by:
Hey folks - Thanks to everyone who gave input to my concerns. Of course, we don't intend to have the mysql port open to the world. We will have Apache/PHP connect on a unix socket, or to another...
2
by: Josh McFarlane | last post by:
If this is not the right place to post this, I apologize. I've taken over work for a few utility programs for a collection of database / raw files. All the programs but one read from the files,...
5
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...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
12
by: nyathancha | last post by:
Hi, I have a question regarding best practices in database design. In a relational database, is it wise/necessary to sometimes create tables that are not related to other tables through a...
1
by: arrival123 | last post by:
Hello, I'm currently trying to decide on a database design for tags in my web 2.0 application. The problem I'm facing is that I have 3 separate tables i.e. cars, planes, and schools. All three...
10
by: ARC | last post by:
Hello all, General question for back-end database that has numerous date fields where the database will be used in regions that put the month first, and regions that do not. Should I save a...
4
by: dgleeson3 | last post by:
Hello all I am creating a VB.Net distributed SQL server 2005 application. Each computer in the system has a database with a table of users and their telephone numbers. Each computer has a...
0
by: David | last post by:
Hi list. I have a few database-related questions. These aren't Python-specific questions, but some of my apps which use (or will use) these tables are in Python :-) Let me know if I should ask...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Not sure if I quite follow that. 1....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...

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.