【发布时间】:2013-05-19 15:50:31
【问题描述】:
对于甲骨文, 从这些表中,
表 1 CUSTOMER : has cust_fname, cust_lname, cust_id
表 2 SALESORDER : has so_number, so_custid
表 3 ITEM : has item_qty, item_sonum
while CUST_ID = SO_CUSTID and SO_NUMBER = ITEM_SONUM (FK relationship)
我想显示带有全名的客户名称(表示 cust_fname+cust_lname),而此客户(只有一个)是订购数量最多的客户(表示必须与 item_qty 做某事)。
如何为这个任务编写代码?
谢谢
【问题讨论】: