Як виправити Сообщение 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'

Developer technologies | C#
Developer technologies | 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.
{count} votes

1 answer

Sort by: Most helpful
  1. Olaf Helper 47,586 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.