create a postgresql sql to fetch swaps where SourceCurrencyId = 27 order by CreatedDate…
Jump to turn (7)
- 1create a postgresql sql to fetch swaps where SourceCurrencyId = 27 order by Crea
- 2Need to select from "Swaps" s
- 3It expect column names to be in brackets i think
- 4The error says "column "s.CreatedDate" must appear in the GROUP BY clause or be
- 5Oh the column name is not amount it's RequestedAmount
- 6Also select swap's id and status please
- 7and filter swaps where status is 1
- User
create a postgresql sql to fetch swaps where SourceCurrencyId = 27 order by CreatedDate and group by UserId
- Assistant
Here is a SQL query that should meet your requirements:
sql
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.