You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
/*Write a SQL statement to find the highest purchase amount with their ID, for only those customers whose ID is within
|
|
the range 3002 and 3007.*/
|
|
SELECT customer_id,MAX(purch_amt)
|
|
FROM orders
|
|
WHERE customer_id BETWEEN 3002 and 3007
|
|
GROUP BY customer_id; |