I have a view named as This_View in the form:
Author CoAuthor
----------------
677 901706
677 838459
677 901706
677 1695352
677 901706
1359 1695352
...
...
I have to select Name from another table against column i.e. Author and CoAuthor where value of Name for both Author and CoAuthor exist in the same column of Other_Table.
I have tried this:
SELECT name as Author, name as CoAuthor
FROM Other_Table AA
JOIN This_View YA ON YA.Author = AA.aid AND YA.CoAuthor = AA.aid
ORDER BY Author
but not succeeded.