So I have received this error: #1066 - Not unique table/alias: \'Purchase\'
I am trying to do the following:
SELECT Blank.BlankTypeCode
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
inner join purchase p1 on...
inner join purchase ON first predicate AND second predicate