select customer_id, currency, price
from sales_table
customer_id currency price
1001 CHF 50
1001 EUR 35
1002 EUR 40
1003 AUD 25
我有成百上千的事务在表中。如何执行select子句,只返回以两种不同货币付款的客户?在这种情况下,select语句应返回customer_id 1001。
转载请注明出处:http://www.cxd6.com/article/20230526/2346232.html