Data

Get customer info for those living in the same city as customer id 3.
AskAI

Write a SQL query that returns the name, age, and city of residence for all customers who live in the same city as customer id 3.

159
Mar 11
Finding all matching pairs of rows from two tables
AskAI

Given two tables, A and B, write a SQL query to find all pairs of rows, one from each table, such that the values in the columns match.

130
Mar 11
Find all employees who live in the same city as their manager.
AskAI

This technical problem involves writing a SQL query to find all employees who live in the same city as their manager. Given a table of employee data, the query should return all employees who share a city with their manager. As seen in the example input/output, this should include employees who have a manager in a different city.

134
Mar 11
Array Sum
AskAI

The "Array Sum" problem asks you to find the sum of all the integers in an array. The input is an array of integers, and the output is the sum of all the integers in the array.

Find All Rows in A with a Matching Row in B
AskAI

Given two tables, A and B, write a SQL query to find all the rows in A that have a matching row in B.

102
Mar 10
Find all rows in Table A that have no matching row in Table B
AskAI

Write a SQL query to find all the rows in Table A that have no matching row in Table B.

117
Mar 10
Find the names of all customers who have purchased products with a price...
AskAI

This technical problem involves writing a SQL query to find the names of customers who have purchased products with a price greater than $10. The example input and output are provided.

126
Mar 10
Longest Increasing Subsequence in an Array
AskAI

Given an array of integers, this problem looks for the longest increasing subsequence within that array.