Joining Tables

Find Customers Who Have Purchased Both Product A and Product B
AskAI

This technical problem involves finding customers who have purchased both Product A and Product B from a database. The customer names must be outputted.

142
Oct 26
"Finding Rows in A that Match Rows in B"
AskAI

This technical problem deals with finding rows in table A that have a corresponding row in table B. An example input and output is provided.

109
Oct 25
"Authors Who Have Written Books With 'Cat' in the Title"
AskAI

To find the names of all authors who have written at least one book with the word 'cat' in the title, join the Books and Authors tables on author_id and select the name field from the Authors table.

107
Oct 25
Find the total number of products ordered for each product.
AskAI

This problem is asking for a SQL query to calculate the total number of products ordered for each product in a given database. The table "products" lists the products available, while the table " orders" lists the products that have been ordered. The desired output is a table listing the total number of products ordered for each product.

147
Oct 25
Joining tables to find users who have placed an order.
AskAI

This technical problem involves joining two tables, "users" and "orders", in order to find the names of all users who have placed an order. The example input and output show the expected format of the query results.

108
Oct 25
Joining Two Tables
AskAI

Write a SQL query to join two tables and return all rows from the first table and the corresponding values from the second table.

102
Oct 24
Joining Two Tables of Data
AskAI

To join two tables of data together, use the SQL query: SELECT * FROM table1 JOIN table2 ON table1.id = table2.id

155
Oct 24
SQL Query to Return Names of Marketing Employees with 5+ Years of Experience
AskAI

Write a query to return the names of employees who work in the Marketing department and have at least 5 years of experience.

152
Oct 24