Joining Tables

SQL Query to Find the Intersection of Two Tables
AskAI

Write a SQL query to find the intersection of two tables, T1 and T2. T1 and T2 both have an "id" column and a "value" column. The resulting table should have the same columns and contain only the rows where the "id" and "value" values match in both T1 and T2.

133
Feb 21
SQL query to return names of customers who have placed orders for more than $100
AskAI

This technical problem involves writing a SQL query that returns the names of customers who have placed orders totaling more than $100.

120
Feb 20
Get names of customers who have made an order of more than 25.
AskAI

Write a SQL query that returns the names of all customers who have made an order of more than 25.

131
Feb 20
Find All Names in Both Tables
AskAI

The problem is to find all the names that are in both Table A and Table B. An example input and output is given.

157
Feb 20
Customers who have placed orders with a total value greater than $100
AskAI

The customer table lists customer ids, first names, and last names. The orders table lists order ids, customer ids, and total values. This query returns the id, first name, and last name of all customers who have placed an order with a total value greater than $100.

141
Feb 20
"Average product ratings from reviews table"
AskAI

This technical problem involves writing a SQL query to find the average rating for each product in a given database. The query must take into account two tables - products and reviews - in order to accurately average the ratings for each product.

170
Feb 19
Given two tables, A and B, write a SQL query to find all the rows from table...
AskAI

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

291
Feb 19
Finding the number of orders for each customer
AskAI

Given two tables, customers and orders, this query finds the total number of orders for each customer. The output lists the customer name and the number of orders for that customer.

141
Feb 19