开发者

Not getting back enough columns

My query is as follows:

select [Transaction].id, 
       [User].name, 
       EventType.EnglishDescription
  from [Transaction] 
  join [User] on [Transaction].userid = [User].id 
  join EventType on EventType.id = 开发者_运维知识库[Transaction].EventType

I'm expecting to get back Transaction.id, User.name and EventType.EnglishDescription in the columns, however, I'm only getting back an id column.

When I leave out Transaction.id from the select, I get both the name and the EnglishDescription.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜