- Retrieve all users from the Users table.
- Display the first and last names of all customers.
- Show the product names and quantities in stock from the Inventory table.
- List the invoice IDs, invoice dates, and total amounts from the Invoices table.
- Retrieve the usernames and email addresses of users with the 'admin' role.
- Display the products with a quantity in stock greater than 10.
- Show invoices where the total amount is greater than $1000.
- List customers whose last name is 'Smith'.
- Display the inventory items in alphabetical order based on product name.
- Retrieve users with the role 'employee' and order them by username.
- Calculate the total quantity of products in stock.
- Find the average unit price of products in the Inventory table.
- Count the number of invoices.
- Determine the maximum total amount among all invoices.
- Show the number of users for each role.
- Retrieve invoice details along with customer names for each invoice.
- List all payments with the corresponding invoice details (invoice ID, customer name, and payment amount).
- Display the product names and quantities in stock for each invoice.
- List all customers who have made payments, along with the total amount they paid.
- Retrieve all users along with their roles.
- Find customers who made payments exceeding $500.
- Show invoices where the total amount is equal to the maximum total amount.
- List users who do not have a specified role.
- Display products that have not been included in any invoices.
- Find customers who haven't made any payments.
- Rank customers based on the total amount they spent on invoices.
- Calculate the running total of payments for each customer.
- Determine the average quantity in stock for each product over time.
- Rank products based on the total quantity sold.
- Identify the top-paying customer for each invoice.
- Retrieve all invoices along with the corresponding products even if there are no associated invoice items.
- List customers who have not made any payments, including their last invoice date.
- Show users and their roles, even if they don't have a role specified.
- Display the total amount of payments for each customer, including customers with no payments.
- List all products along with the total quantity sold.
- Calculate the median unit price for products in the Inventory table.
- Find the customers with the highest total amount spent on invoices.
- Determine the month with the highest total sales (sum of invoice amounts).
- Identify the product with the highest total revenue.
- Calculate the percentage of total revenue contributed by each product.