50 Essential SQL Questions to Land Your Dream Job

 CREATE TABLE worker (

    first_name VARCHAR(50),

    last_name VARCHAR(50),

    department VARCHAR(50),

    salary DECIMAL(10, 2),

    joining_date DATE

);



INSERT INTO worker (first_name, last_name, department, salary, joining_date)
VALUES 
('John', 'Doe', 'HR', 55000, '2020-01-15'),
('Jane', 'Smith', 'Finance', 67000, '2019-03-22'),
('Robert', 'Johnson', 'IT', 72000, '2018-06-10'),
('Emily', 'Davis', 'Marketing', 59000, '2021-07-01'),
('Michael', 'Wilson', 'Sales', 63000, '2020-09-15'),
('Sarah', 'Brown', 'HR', 56000, '2022-02-19'),
('David', 'Miller', 'Finance', 68000, '2019-10-05'),
('Laura', 'Garcia', 'IT', 75000, '2020-11-22'),
('James', 'Martinez', 'Marketing', 60000, '2021-03-18'),
('Olivia', 'Anderson', 'Sales', 64000, '2019-12-01');

Comments

Popular posts from this blog

How to find all the customers who placed orders on three consecutive days | SQL Scenario questions

ACCENTURE SQL INTERVIEW QUESTION | Change the ProductIDs