[Search Form]
I will do a search in the database, if there are sections that are empty, should I type a query one by one? If all the pieces are filled in, my code will be:
SELECT *
FROM Thesis AS T
INNER JOIN Person AS A ON A.PersonID = T.AuthorID
AND A.PersonFullName = 'Author name'
INNER JOIN Person AS S ON S.PersonID = T.SupervisorID
AND S.PersonFullName = 'supervisor'
LEFT OUTER JOIN Person AS CS ON CS.PersonID = T.SupervisorID
AND CS.PersonFullName = 'cosupervisor'
INNER JOIN Enstitute AS E ON E.EnstituteID = T.EnstituteID
AND E.EnstituteName = ' enstitutename '
INNER JOIN University AS U ON U.UniversityID = E.UniversityID
AND U.UniversityName='universityname '
WHERE
Title = 'title' AND
ThesisNo = 123 AND
[Type] = 'type' AND
[Language] = ' Language' AND
[SubmitDate] BETWEEN 2000 AND 2021
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…