The Number of Seniors and Juniors to Join the Company
['last-person-to-fit-in-the-bus', 'the-number-of-seniors-and-juniors-to-join-the-company-ii']
["Create table If Not Exists Candidates (employee_id int, experience ENUM('Senior', 'Junior'), salary int)", 'Truncate table Candidates', "insert into Candidates (employee_id, experience, salary) values ('1', 'Junior', '10000')", "insert into Candidates (employee_id, experience, salary) values ('9', 'Junior', '10000')", "insert into Candidates (employee_id, experience, salary) values ('2', 'Senior', '20000')", "insert into Candidates (employee_id, experience, salary) values ('11', 'Senior', '20000')", "insert into Candidates (employee_id, experience, salary) values ('13', 'Senior', '50000')", "insert into Candidates (employee_id, experience, salary) values ('4', 'Junior', '40000')"]
{"mysql": ["Create table If Not Exists Candidates (employee_id int, experience ENUM('Senior', 'Junior'), salary int)"], "mssql": ["Create table Candidates (employee_id int, experience VARCHAR(6) NOT NULL CHECK (experience IN ('Senior', 'Junior')), salary int)"], "oraclesql": ["Create table Candidates (employee_id int, experience VARCHAR(6) NOT NULL CHECK (experience IN ('Senior', 'Junior')), salary int)"], "database": true, "name": "count_seniors_and_juniors", "pythondata": ["Candidates = pd.DataFrame([], columns=['employee_id', 'experience', 'salary']).astype({'employee_id':'Int64', 'experience':'object', 'salary':'Int64'})"], "postgresql": ["Create table If Not Exists Candidates (employee_id int, experience VARCHAR(30) CHECK (experience IN ('Senior', 'Junior')), salary int)\n"], "database_schema": {"Candidates": {"employee_id": "INT", "experience": "ENUM('Senior', 'Junior')", "salary": "INT"}}}
{"mysql": ["MySQL", "<p><code>MySQL 8.0</code>.</p>"], "mssql": ["MS SQL Server", "<p><code>mssql server 2019</code>.</p>"], "oraclesql": ["Oracle", "<p><code>Oracle Sql 11.2</code>.</p>"], "pythondata": ["Pandas", "<p>Python 3.10 with Pandas 2.2.2 and NumPy 1.26.4</p>"], "postgresql": ["PostgreSQL", "<p>PostgreSQL 16</p>"]}
['Database']