Як виправити Сообщение 102, уровень 15, состояние 1, строка 2 Incorrect syntax near '.'.

murka 0 Reputation points
2024-03-18T11:42:54.21+00:00

SELECT Student.FirstName, Student.LastName, Student.Surname,[Group].NameGroup

Stat.NameStat

FROM Student, Stat [Group]

WHERE Student.StatID = Stat.ID AND Stat.NameStat = 'Жінка'

AND Student.GroupID = [Group].ID AND [Group].NameGroup = 'IT-31'

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,919 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Olaf Helper 44,501 Reputation points
    2024-03-18T11:49:55.5266667+00:00

    FROM Student, Stat [Group]

    Is there a komma missing between the two table names Stat and Group? So [GROUP] acts as an object alias.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.