#109 SQL Queries for Transactions
The following tables are given:
create table transactions (
id uuid primary key,
user char varying (32) not null,
amount bigint not null,
day integer(1-7) not null
);
create table transaction_comments (
id uuid primary key,
body text not null,
transaction_id uuid not null
);
It is necessary to:
-
Count the number of records or transactions for each day of the week (
day) - Find only transactions that have no comments
-
Find transactions with the maximum
amount
Question review
Sign in to start the dialogue
The mentor keeps the context of the current question and your previous messages.
Sign in
Available with Premium
This is just one of the solutions available with Premium. And more:
- 250+ advanced lectures
- 1300+ practice exercises
- 500+ solutions to problems from real interviews
- Personalized Java Hub certificates
- Expanded access to the AI mentor