I am trying to create a database to hold a voting system.
I am beginning to getting the database up and running simply but an struggling on the query.
The tables are like this:
QUESTIONS
questionID
question
QUESTIONOPTIONS
optionID
questionID
option
correct
QUESTIONSUBMISSION
submissionID
questionID
optionID
From this I want to create a query (or view) to show the entries, like below:
submissionID question option
001 Colour of sky Blue
002 Colour of Sky Red
003 10 Plus 5 15
004 Colour of Sky Blue
006 10 Plus 5 15
etc........
Eventually I will use php to create a graph for each questions.
If someone can help with the query it will get me started!
Many Thank
Steve
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.