Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi every one.
Actually i want to create database for online examination. But i am not getting proper design for my database.Should i make two different tables for question and answers or i can do this using one table. Another thing in my web site i have to show only one question at a particular time And questions should be changed without refreshing page how to do that please give me your proper guidance.
Posted
Updated 19-Apr-12 3:31am
v2

Separate databases for questions and answers??!! You horrify me! Please tell me you meant tables not databases... If you didn't I suggest you take a thorough crash course in what databases are and how they work... For this you will probably need two tables, with following relationships/fields (columns):

Questions Table:
QuestionId - Uniqueidentifier, Primary Key
QuestionText - nvarchar(MAX)
AnswerId - Uniqueidentifier : Realted to Answers Table AnswerId field

Answers Table:
AnswerId - Uniqueidentifier, Primary Key
QuestionId - Uniqueidentifier : Related to Questions Table QuestionId field
QuestionText - nvarchar(MAX)

Just for clarity this should all be in one database. I will not attempt to explain how databases work here - please use Google to read up on this if you are feeling at all lost by my above detailing of table structure because if you can't understand it, it is probably because you don't understand databases properly.

Hope this helps,
Ed
 
Share this answer
 
Comments
kadiyan1 19-Apr-12 9:28am    
Sorry sir, my mean was table not database.
Ed Nutting 19-Apr-12 9:30am    
Glad to hear it, I hope my answer has helped you then :)
Ed
kadiyan1 19-Apr-12 9:33am    
Yes sir, now the idea is clear how to do that.
Thank you
Well, the complete database or project can not get provided but we can give you some reference by which you can move on. So please refer some links provided:
http://lovelycodes.dotnetsquare.com/net/create-online-exam-project-with-asp-net-c-net-with-javascript-timer/[^]

Get some code here[^]
 
Share this answer
 
Comments
kadiyan1 19-Apr-12 9:30am    
Thank you for your reply.
Prasad_Kulkarni 19-Apr-12 9:36am    
You're welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900