create a sap hana query to answer the question: when was my last sale?
- User
create a sap hana query to answer the question:
when was my last sale?
Assistant
SAP HANA Query to Find the Last Sale Date
Here's a SAP HANA SQL query to determine when your last sale occurred:
SELECT MAX(SALES_DATE) AS LAST_SALE_DATE FROM SALES_ORDERS WHERE CUSTOMER_ID = 'YOUR_CUSTOMER_ID' -- Replace with your actual customer ID -- Alternatively, you could filter by USER_ID if the system tracks who made the sale -- USER_ID = 'YOUR_USER_ID'Notes:
-
You'll need to replace
'YOUR_CUSTOMER_ID'with your actual customer identifier or use a different filter that identifies your sales.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.