我正在尝试将items.unit_price,在子查询中将其值增加10%,然后将其显示在另一列中。更改子查询中的值时出现问题
这里是我的代码
select items.title, items.unit_price, items.unit_price as Price_increase
from artists
join items
on items.artist_id = artists.artist_id
order by price_increase in
(
select distinct round(items.unit_price + (items.unit_price * 0.1), 2) as Price_increase
from artists
where artists.artist_name = "No Rest For The Weary"
)
;
您的标题完全是无稽之谈,修复它,我删除我的downvote。 – peterh
这是更好吗? –
是的,我已经改变了我的downvote。谢谢! – peterh