Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Fragen Sie die Kontonummer (Account ID), die Kundennummer (Customer ID) und den Saldo (balance) für alle Konten ab, deren Status gleich 'ACTIVE' und deren Saldo größer als $2.500 ist.
mysql> SELECT account_id, cust_id, avail_balance -> FROM account -> WHERE status = 'ACTIVE' -> AND avail_balance > 2500; +------------+---------+---------------+ | account_id | cust_id | avail_balance | +------------+---------+---------------+ | 3 | 1 | 3000.00 | | 10 | 4 | 5487.09 | | 13 | 6 | 10000.00 | | 14 | 7 | 5000.00 | | 15 | 8 | 3487.19 | | 18 | 9 | 9345.55 | | 20 | 10 | 23575.12 | | 22 | 11 | 9345.55 | | 23 | 12 | 38552.05 | | 24 | 13 | 50000.00 | +------------+---------+---------------+ 10 rows in set (0.00 sec)