For Oracle, From these tables,
Table 1 CUSTOMER : has cust_fname, cust_lname, cust_id
Table 2 SALESORDER : has so_number, so_custid
Table 3 ITEM : has item_qty, item_sonum
while CUST_ID = SO_CUSTID and SO_NUMBER = ITEM_SONUM (FK relationship)
I want to show customer name with full name (means cust_fname+cust_lname) whereas this customer (just one) is the one who had ordered the highest numbers of items (means has to do something with item_qty).
How can I write a code for this task?
Thank you