Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

DBMS 

How can I insert thousands of rows to a database on multiple tables under these condi

So what I want is to insert around 50,000 and possibly more records into the database but I have a relational database so I'm not sure how to handle this.

How I want the flow for each iteration:

Insert a student who's table structure is:

i60(.)tiny pic(.)com/34856ds.png

year_enrolled is randomized
status whether graduate/undergraduate is randomized
names are randomized
college_code is randomized(there's a table for this)
degree_code is randomized(there's a table for this)

After inserting the student,

I want to insert random values for each course on the student based on his degree, like let's say the student is taking up ComSci

i59(.)tiny pic(.)com/5e5tz4.png

I'd like to populate random values on the student's grade records

i57(.)tiny pic(.)com/2m6agkl.png

======

How can I achieve this?


Possibly Related Threads...
Thread / Author Replies Views Last Post
by blackcoder00Jul 23, 2020 06:24 AM 5 139 Jul 23, 2020 06:24 AM
Last Post: blackcoder00
[DBMS] by SIM-3343347Feb 9, 2019 06:12 PM 3 297 Feb 9, 2019 06:12 PM
Last Post: +Haze
by AurianaJan 5, 2019 12:35 PM 7 230 Jan 5, 2019 12:35 PM
Last Post: Auriana