472,337 Members | 1,253 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

database structure problem - advice please?

Here's what I was doing, it is obviously stupid because i have exceeded the
"too many fields defined error"

I have to create a database driven application that allows students to
update the records of which classes they took, what grade they received, and
what semester they took the class in.

I was using one database table, with some unique identifiers for each
student. Then for each of the 50 classes they have to take, I had 4 fields
each, one for whether they took it or not, one for the semester, one for the
year, one for the grade they received.

So all in all I had 4x50 fields for the classes and then the various unique
identifiers.

I just can't fathom how to simplify this problem. Anybody got any ideas?
Jul 19 '05 #1
1 2209

"Johnson" <jo*****@spam.troll> wrote in message
news:BhS_c.838$2H5.165@trndny07...
| Here's what I was doing, it is obviously stupid because i have exceeded
the
| "too many fields defined error"
|
| I have to create a database driven application that allows students to
| update the records of which classes they took, what grade they received,
and
| what semester they took the class in.
|
| I was using one database table, with some unique identifiers for each
| student. Then for each of the 50 classes they have to take, I had 4
fields
| each, one for whether they took it or not, one for the semester, one for
the
| year, one for the grade they received.
|
| So all in all I had 4x50 fields for the classes and then the various
unique
| identifiers.
|
| I just can't fathom how to simplify this problem. Anybody got any ideas?
|
|

you seem to be treating the relational database as if it were a big
spreadsheet

you need to get at least a rudimentary understanding of data normalization,
and basic entity/relationship analysis
get a good book on relational database design (Richard Barker's CASE
Methodology Data Modelling or David Hayes Patterns in Data Modeling are
still excellent references)

you will find that you need many, many more tables, likely:

STUDENTS -- 'master list' of students, likely with STUDENT_ID as the primary
key
CLASSES -- 'master list' of classes, likely with CLASS_ID as PK
SCHEDULED_CLASSES -- list of each occurrence of each class, likely with
CLASS_ID plus CLASS_DATE or a system-assigned sequence number as PK
STUDENT_CLASSES -- list that relates STUDENTS to STUDENT_SCHEDULED_CLASSES

don't just start creating these tables -- find out why 4 (or more) tables
are needed by reading up on basic relational database theory

++ mcs
Jul 19 '05 #2

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

Similar topics

9
by: Bob Bedford | last post by:
Where to find a comprehensive document on how take datas from XML and put them in a Mysql Database. I've many sites sending us XML files. We have...
0
by: Zed | last post by:
I am creating an Access database to monitor monthly performance figures for approximately 100 call center agents. Every month, each agent will have...
1
by: Arun | last post by:
Hi..I am arun and Thanks to all of you in advance for solving my problem... I am working as a quality co-op for Maytag and I have developed a...
1
by: Nathan Bloomfield | last post by:
Hi, I am a new database developer and would appreciate some advice on improving the efficiency of my database. The code below is an example of...
2
by: z | last post by:
I'm developing a couple of applications that I need some advice on which database structure to use. My first thought is SQL Server of course, but...
2
by: Shwetabh | last post by:
Hi, I am using MS-SQL server to store my database. My problem is that I have around 150+ database files in DBF format. Each database file consists...
14
by: Mikee Freedom | last post by:
Good Morning all, New member to the list, hoping you might be able to give me some much needed advice. Basically, I have a client who would...
12
by: Robbo | last post by:
Hi, My database contains 45 tables the structure of which is evolving as I develop. I need a utility that will "read" the structure of this...
10
by: Fenix [Youth Director] | last post by:
Hello, I am in need of advice or examples of how I should build my database for a small non-profit youth computer gaming organization. I am a...
9
by: Peter Duniho | last post by:
Is there a straightfoward API in .NET that allows for inspection of a database? That is, to look at the structure of the database, without knowing...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.