기출 문제 / 삼성 2024 Second Half Morning Problem 2

CodeTree DB

The new IT company, CodeTree, is planning to enter the business of a uniquely structured database (DB). The DB provided by CodeTree maintains only a single table and supports the following five types of queries.

The CodeTree DB has a table with the following structure: