DELOITTE SQL INTERVIEW QUESTION | JSON output

Veröffentlicht am: 14 Oktober 2024
auf dem Kanal: Data Sculptor
1,426
52

DML:

DROP TABLE IF EXISTS Employee;

-- Create the Employee table
CREATE TABLE Employee (
EmployeeID INT PRIMARY KEY,
FirstName VARCHAR(50),
LastName VARCHAR(50),
Salary DECIMAL(10, 2),
HireDate DATE,
IsActive INT
);

-- Insert data into the Employee table
INSERT INTO Employee (EmployeeID, FirstName, LastName , Salary, HireDate, IsActive)
VALUES
(1, 'John', 'Doe' , 70000.00, '2021-03-15', 1),
(2, 'Jane', 'Smith' , 65000.00, '2019-07-01', 1),
(3, 'Michael', 'Brown' , 80000.00, '2018-08-20', 0),
(4, 'Emily', 'Davis' , 72000.00, '2020-01-10', 1),
(5, 'Robert', 'Miller' , 60000.00, '2022-05-25', 0),
(6, 'Linda', 'Wilson' , 90000.00, '2017-11-30', 1);

DROP TABLE IF EXISTS EmployeeDepartments;
-- Create the EmployeeDepartments table
CREATE TABLE EmployeeDepartments (
EmployeeID INT,
Department VARCHAR(50)
);

-- Insert data into the EmployeeDepartments table
INSERT INTO EmployeeDepartments (EmployeeID, Department)
VALUES
(1, 'IT'),
(1, 'Security'),
(2, 'HR'),
(3, 'Finance'),
(3, 'Compliance'),
(4, 'IT'),
(4, 'Support'),
(5, 'Marketing'),
(5, 'Sales'),
(6, 'Finance'),
(6, 'Auditing');

Feedback: https://forms.gle/NQuCAy7p5a9wxW3LA

Playlists:
SQL Interview Questions:    • SQL Interview questions  
Recursive CTE:    • Recursive CTE  
PySpark Interview Questions:    • PySpark Interview Questions  
Power BI and DAX:    • Power BI and DAX  
Data Modeling:    • Data Modelling  
Generative AIs:    • Generative AIs  
Excel:    • Excel  
Cricket:    • Cricket  
SQL ADVANCED AGGREGATIONS:    • ADVANCED AGGREGATIONS SQL  



Follow me
Linkedin:   / data-sculptor-93a00b2a8  
Instagram:   / datasculptor2895  


Auf dieser Seite können Sie das Online-Video DELOITTE SQL INTERVIEW QUESTION | JSON output mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Data Sculptor 14 Oktober 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 1,426 Mal angesehen und es wurde von 52 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!