Database Security

SQL query to return names of users who are both administrators and moderators
AskAI

This technical problem asks the reader to write a SQL query that will return the names of all users who are both administrators and moderators. The input is a table of users and their roles. The output should be the names of the users who are both administrators and moderators.

146
Oct 31
Users Who Have Logged In from Multiple IP Addresses
AskAI

This technical problem involves writing a SQL query to find all user IDs that have logged in from more than one IP address.

112
Oct 25
Find Username from User ID and Password
AskAI

Given a table with user_id, username, and password columns, and a list of user_id and password pairs, write a query to find the username for each user_id in the list.

108
Oct 24
SQL Query to Find Most Common First Name
AskAI

To find the most common first name in a table of user data, write a SQL query that groups the data by first name and orders the results by the number of occurrences.

170
Oct 22
Sort table by id column in ascending order
AskAI

The table has two columns, id and data. The query should return the data in ascending order of id.

163
Oct 22
SQL Query to Find Users with a Valid Email Address
AskAI

This problem asks for a SQL query to find all users in a table who have a valid email address.

147
Oct 16