Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要检索 invoice-due_date 和 invoice_total。
然后在查询中写下 invoice_total 值的 10% 的条件和其他结果,加上 UP 到 invoice_total 值的 10%。都在同一个声明中。
发送
select invoice-due_date, invoice_total, invoice_total+invoice_total*.1+(UP)*.1 as newprice from table