Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

append query mmmmh? 1

Status
Not open for further replies.

Pampers

Technical User
Apr 7, 2004
1,300
AN
hi everyone,
a student application (tblStudent)
a student chooses a study (tblStudy)
a study contains of subjects (tblSubjects)

If the students chooses a study, i want the subjects belonging to that study be inserted into to tblStudentSubjects

You use an append query for this?

Hope this helps (a bit)
Pampers.

You're never too young to learn
 
there are many threads and info out there regarding relational database design best practice

and here's a good start for you:

HTH,
fly

[blue]Typos, that don't affect the functionality of code, will not be corrected.[/blue]

Martin Serra Jr.
[blue]Shared Database_Systems and _Applications across all Business_Areas[/blue]
 
i know the ten commandments.
i know database relationships
i don't about insert records from one table to another

Hope this helps (a bit)
Pampers.

You're never too young to learn
 
so why would you create a table tblStudentSubjects?
you already have the information in tblStudent and tblSubjects ...
no redundancies please.

HTH,
fly

[blue]Typos, that don't affect the functionality of code, will not be corrected.[/blue]

Martin Serra Jr.
[blue]Shared Database_Systems and _Applications across all Business_Areas[/blue]
 
hi flyover789,
off course, what was i thinking?
champagne and a star
and eh, i know database relationships a bit better now, haha
tnx for the help


Pampers.

You're never too young to learn
 
back again,
but what do you do if the school allows a student to have a different subject in the fixed studyprogram? Since, a studyprogram is related to a fixed set of subjects.



Pampers.

You're never too young to learn
 
you can do anything by the use of table keys and joining the tables through these keys ...
I have the feeling, that you still have to get aware of what a relational database is and works like.
Take a look here:
Best regards,
fly

[blue]Typos, that don't affect the functionality of code, will not be corrected.[/blue]

Martin Serra Jr.
[blue]Shared Database_Systems and _Applications across all Business_Areas[/blue]
 
yep,
looks like it. But one day we get there... tnx for the article. still looking how to alter the subject for one student with the following structure

tblStudent
StudentID
StudentName
CourseID
m-1
tblCourse
CourseID
Course

1-m
tblSubj
subjID
subj
CourseID




Pampers.

You're never too young to learn
 
hi flyover,
you mind putting my 'relationship' problem in the relationship forum; looks like a better place


Pampers.

You're never too young to learn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top