Hello all. I am really new to SQL and am having to trying and debug a SQL statement which isnt returning any data. The statement in question is:SELECT E.EntityID , LTRIM(N.NameText) AS NameText, E.DateCreated, CONVERT(CHAR(10),E.DateCreated,103) AS DateAdded, SystemName, T.Name AS EntityType FROM Entities E INNER JOIN Systems S ON S.SystemID = E.SystemID INNER JOIN EntityTypes T ON T.EntityTypeID = E.EntityTypeID INNER JOIN Names N ON N.EntityID = E.EntityID
I know that all tables except the Names table contain data. Really what i want to know is that if the names table containts no data should i still be getting some sort of result set back?Thanks for reading.