Transactions

Customers who have made a purchase in the last 30 days
AskAI

This technical problem involves writing a SQL query to return all customers who have made a purchase in the last 30 days, as well as the total amount they have spent.

164
Nov 27
Finding the Total Value of Transactions by Day
AskAI

Given a table of transactions, this SQL query will find the total value of all transactions that occurred on each day.

136
Nov 25
Find the Second Highest Salary in a SQL Database
AskAI

To find the second highest salary from a SQL database, you can use a subquery. This subquery will return the salary of the employee with the second highest salary.

126
Nov 19
Find the total value of all transactions for each day.
AskAI

Given a table of transactions, this SQL query will find the total value of all transactions for each day.

152
Nov 18
"Count the number of occurrences of a character in a string"
AskAI

This technical problem involves writing a function that takes a string and a character as arguments, and returns the number of times the character appears in the string.

161
Nov 11
SQL Query for Average Transaction Value by Day
AskAI

This problem asks for a SQL query that returns the average transaction value for each day. The example input table has three days, with transaction values of 10, 20, and 30 respectively. The expected output table would have the same three days, with average values of 10, 15, and 20.

223
Nov 10
Find all products that cost more than $10
AskAI

Write a SQL query to find all products in a table that cost more than $10.

180
Nov 10
Find the 10 most popular articles on a blog
AskAI

Write a SQL query to find the 10 most popular articles on a blog, based on the number of likes.

193
Nov 09