Mercy Mercy
Member
- Local time
- Today, 16:59
- Joined
- Jan 27, 2023
- Messages
- 87
It is one Grade to Many Streams e.gYou need to provide further advice: The only student records (IDs) are in tblStreamStudents. When the students are promoted (presumably to the next stream in the next year), how does this table relate to years? Is it to be accomplished through termstreams and yearterms? There are no relationships between the tables in the db.
Generally you would retain the original student history of enrolment in a stream, so you need to create an append query. How will you determine what streams the students are promoted to? Are they all assigned to the same stream at the start of a year? Where would this information come from?
Your table structure suggests: tblyears --> tblTermyears shows the terms in a year : these need to be set up for the "next" Yr. For each term there are multiple streams: tblStreamterms. Again before promoting a cohort of students, requires that the streamterms need to be established before any promotion occurs.
So are you expecting your query to not just promote the students but also replicate the current term-years and stream-term structure for the next year? What if there are changes in streams from one year to the next?
Thanks for your inputYou misunderstand the purpose and style of this forum. You are the subject matter expert for YOUR database and for YOUR problem. We can tell you how to approach things in general, but that approach ALWAYS starts with problem analysis. We can't analyze your problem with the small amount of information you told us and the cursory information in the sample DB. I would love to be able to ready your mind and just whip up your solution for you, but my mind-reading turban is at the dry cleaners.
The best advice I can give you at this stage of the process based on what you have requested is that you try to draw this process on paper to see how you would do it if you DIDN'T have a computer. Draw out your diagrams and take notes on each step. Then come back to that diagram and try to implement it in code or queries.
I still have no idea about what you are really trying to do with the data. Most of the questions remain unanswered. You also said "There is no way a a term is related to Streams.." however you have a table that appears to do this! Is it poorly named? Are the columns YearTerm and GradeStream referencing the Term and Stream. I have serious doubts about the db structure. Doc Man has provided valuable advice about how to get a solid handle upon the problem you need to solve.It is one Grade to Many Streams e.g
GEADE 1 NORTH
GRADE 1 SOUTH
GRADE 1 GREEN
GRADE 1 NORTH
GRADE 2 SOUTH
GRADE 2 GREEN
AND SO ON.
Also a year has 3 TERMS
E.G
2023 TERM 1
2023 TERM 2
2023 TERM 3
There is no way a a term is related to Streams..
Also I have a feeling that it is Update Query which is to be used rather than Append Query.
This will NEVER be an update query. All the information associated with the previous term/stream/whatever stays and you start a new record for the next term/stream/whatever.Also I have a feeling that it is Update Query which is to be used rather than Append Query.
Hi all. I am requesting for assistance on a query to promote students on January every year. Kindly look at the attached database. Thanks in advance.
There are so many tables tblStudents included. I might have overlooked but I thought those are the only tables needed for promotion of studentsHi
It looks like you have only uploaded part of your database.
There is no Student table ?
Thanks so much for your inputThis will NEVER be an update query. All the information associated with the previous term/stream/whatever stays and you start a new record for the next term/stream/whatever.
Noted. I am still new in Ms Access. Thanks for your input.You have to take on the responsibility to learn MS Access - and the process of db application development
Thanks for your input. Relationships should be as followsI'm not understanding what a stream is. The only data in tblStream is the word "SINGLE". What are the other possible things that describe a stream? Need more sample data. But according to what your have, each student can have multiple streams (but we only know about the one called SINGLE) and each stream can have more than one student. This is the part that is probably confusing most of us.
In tblTerms you have Term 1, Term 2, Term 3. And in your relationship, it shows one Term can have many years and each year can have many terms. This part doesn't make any sense to me unless I'm completely misunderstanding what a term is. Also, can there ever be more than three different terms in a year? If not, you can simplify the table structure.
A term to me is a 1/3 of the period of time in any given school year. If that is the case you can just make a table that has the year and term combined as the primary key (or at least index them that way) and then any attributes that associate with that particular term. Maybe I'm missing something, but that makes more sense to me.
Usually students get grades in particular classes or subjects. In your tables, students have streams within a particular term and the grade seems to be assigned to a stream??? Very weird. I would think for a given subject/class a student would have a particular grade at the end of each term. I don't know, you tell us how this all works.
One thing is for sure, the tables have to be correct if you want to get any meaningful queries to work. It's better to simplify instead of making it too complicated at first.