I think this is a question like SQL newbies, but here it goes.
I have SQL Query (SQL Server 2005), which I compiled based on a user-defined function:
SELECT
CASEID,
GetNoteText(CASEID)
FROM
(
SELECT
CASEID
FROM
ATTACHMENTS
GROUP BY
CASEID
) i
GO
UDF works fine (it concatenates data from several rows in a linked table, if that matters at all), but I'm confused about the "i" after the FROM clause. The query works fine with i, but without it. What is the meaning of "i"?
EDIT: As Joel noted below, this is not a keyword
source
share