Inner Joining the same table multiple times

前端 未结 5 808
感情败类
感情败类 2020-12-20 19:35

So I have received this error: #1066 - Not unique table/alias: \'Purchase\'

I am trying to do the following:

    SELECT Blank.BlankTypeCode
              


        
5条回答
  •  清歌不尽
    2020-12-20 20:17

    You can't join a table more than once using the same name, so either join it with an alias like inner join purchase p1 on... or use both of the join predicates together like inner join purchase ON first predicate AND second predicate

提交回复
热议问题