我的数据库中有4个表,
我正在尝试构建一个页面,当用户选择不同类别的作业时,它将显示在他们的JobCart页面中。 是我的MyJobCart设计表是正确的??虽然我在其中添加了一些专栏! 。是执行此操作的查询Job只是插入MyJobCart表的查询?
[Account Table]
+--------------+-------------+------+-----+-------+
| StudentID | FirstName | LastName | Email |
+--------------+-------------+------+-----+-------+
| 0 | xxxx | xxxx | xxxx |
| 1 | xxxx | xxxx | xxxx |
+--------------+-------------+------+-----+-------+
[Jobs Table]
+--------------+-------------+------+-----+-----------------+------------+
| JobID | Name | description| numberOfJob | dueDate |
+--------------+-------------+------+-----+-----------------+------------+
| 0 | xxxx | xxxx | xxxx | |
| 1 | xxxx | xxxx | xxxx | |
+--------------+-------------+------+-----+-----------------+-----------+
[MyJobCart Table]
+--------------+-------------+------+-----+-------+---------+-------+
| No(primary) | JobID(F-Key) | StudentId(f-Key)| statusOfJob |
+--------------+-------------+------+-----+-------+---+-----+-------+
| 0 | xxxx | xxxx | xxxx |
| 1 | xxxx | xxxx | xxxx |
+--------------+-------------+------+-----+-------------+---+-------+