私は次のテーブルを持っています:Section, Questions, Answers
とQuestionFlagged
。表示される応答reviewId=4
:
Section 1: User Info
Question 1: What is your name? Bob Smith
Question 2: what is your occupation? Engineer
Question 3: Your favorite color?
Section 1: User Location
Question 1: What is your work location? New York, NY
Question 2: What is your office floor? 5th
Question 3: your street address? 12 wolf street
私は次のように表示する必要があります(SQLのヘルプが必要です):
Review: 4 | Section 1: User Info | 3 questions | 2 Completed | Flagged: Yes
私のテーブル:
Section
:
SectionID int
Title nvarchar(50)
Description nvarchar(2000)
Question
:
QuestionID int
SectionID int
QuestionText nvarchar(2000)
Required boolean
DisplayOrder int
Response
:
ResponseID int
QuestionID int
UserID int int
ReviewId int
AnswerValue nvarchar(1000)
QuestionFlagged
:
FlaggedID int
QuestionID int
ReviewId int
UserId int