我需要显示以超过 20 美元的价格出售物品的人的名字和姓氏,我需要加入标题和作者表但他们没有任何公共键?我该怎么做呢?我只需要显示他们的名字作为输入,这就是我目前所拥有的,我得到的结果是空白的。我只是在学习,所以尽量不要太专业
以下是列名:
authors: pk- au_id
au_fname
au_lname
titles: pk- title_id
title
price
fk- pub_id
这是我到目前为止所拥有的:
select price, au_lname, au_fname
from titles JOIN authors
on authors.au_id=titles.pub_id