1

ユーザーが以前に試みたことのない、質問テーブルから質問を取得する linq クエリを作成する方法。

質問表

create table questions
(
  questionID int,
  question varchar,
  primary key(questionID)
);

create table result
{
  id int,
  answered_by varchar,
  questionid int,
  answer varchar,
  primary key (id),
  foreign key ( questionid) references question(questionID)
);
4

3 に答える 3

0
from QUESTION in QUESTIONS
join
ANSWER in RESULT
on
QUESTION.questionID equlas ANSWER.questionid
where
ANSWER.answer!=NULL
select {QUESTION.questionID, ANSWER.answered_by, ANSWER.questionid, ANSWER.answer}
于 2013-09-25T11:34:32.890 に答える