Given a table with two columns, this SQL query will find the number of rows where the value in the second column is greater than the value in the first column.
This technical problem involves finding the average salary of all employees in the 'Sales' department. This can be accomplished by writing a query to select all employees in the 'Sales' department and then finding the average salary of those employees.
Write a SQL query to find the most recent order date for each customer in a given table. The table should have the following columns: customer_id, customer_name, order_date .
Given a table of employees, this query finds the employees who have been with the company for more than 10 years.
To find the row with the highest value in a table, you can use a simple SQL query. Just specify the name and value columns in the SELECT clause, and add a ORDER BY clause to sort the results by value in descending order. Then, use the LIMIT clause to only return the first row from the sorted results.
This technical problem asks the reader to write a SQL query that returns all XML tags from a given XML document.
To find the top 5 most populous countries in the world, write an SQL query.
Given a table of data with two columns, this technical problem seeks to find all pairs of rows where the values in the columns are equal. The input is a list of data values, and the output is also a list of data values.