本题思路较为直接,从表中获取所有id(剔除重复的),直接加入distinct即可。

select distinct cust_id from Customers