How to join tables together - SQL

后端 未结 2 1265
隐瞒了意图╮
隐瞒了意图╮ 2021-01-23 21:50

This is a SQL question

I have two tables I need to join together, using the inner join syntax. One named Entry, and the other named prize. I need to list the event

2条回答
  •  有刺的猬
    2021-01-23 22:38

    You should use alias to avoid ambiguity

    select 
    e.event_id,
    e.horse_id,
    e.place,
    p.Money
    from ENTRY e 
    join PRIZE p on p.event_id = e.event_id
    

提交回复
热议问题