Data

Joining two tables in SQL
AskAI

This technical problem deals with joining two tables in SQL. The first table (T1) contains data on names, while the second table (T2) contains data on ages. The goal is to write a SQL query that will join the two tables and return the results. The expected output is a table with three columns (id, name, age) and three rows, each containing the corresponding information from both tables.

140
Mar 05
Joining Customers and Orders Tables to Find Customers Who Ordered in the Past...
AskAI

This technical problem involves joining two tables, Customers and Orders, to find customers who have placed an order within the past month. An example of the expected output is provided.

141
Mar 05
Find the intersection of two tables
AskAI

Given two tables, A and B, write a SQL query to find the intersection of the two tables, which are the values that appear in both tables.

141
Mar 04
Find the Maximum Subarray Sum
AskAI

Given an array of integers, find the maximum sum of any subarray of the array.

Find all rows in A that have a corresponding row in B
AskAI

This technical problem deals with finding all the rows in one table (A) that have a corresponding row in another table (B).

141
Mar 04
Sum of integers in an array
AskAI

The problem asks you to find the sum of the first n integers in an array.

Find all rows in TABLE1 that have a corresponding row in TABLE2
AskAI

The technical problem is to find all rows in TABLE1 that have a corresponding row in TABLE2. In other words, this query is looking for all rows in TABLE1 that have a matching row in TABLE2 based on the value in COLUMN1.

140
Mar 04
Find the names of customers who have made at least one purchase from each of...
AskAI

This technical problem asks the reader to write a SQL query to find the names of customers who have made at least one purchase from each of three stores. The example input and output are provided.

143
Mar 04