In this video, I have discussed how to solve the SQL Interview Questions:
Q: Rotate students within every 3 adjacent seats in SQL without using Joins. Leave incomplete groups unchanged.
-- Query to create table:
CREATE TABLE classroom_seating (
seat_id INT PRIMARY KEY,
student VARCHAR(10)
);
-- Insert data
INSERT INTO classroom_seating (seat_id, student) VALUES
(1, 'A'),
(2, 'B'),
(3, 'C'),
(4, 'D'),
(5, 'E'),
(6, 'F'),
(7, 'G'),
(8, 'H')
SQL Interview QnAs: https://www.youtube.com/playlist?list=PLL871c9yfLoimvglCSz6UQoqLJcFBJGKo
***Join our Telegram Group for regular updates on Jobs and Data Science materials:
https://t.me/skilltechathon
Follow us on Instagram:
https://www.instagram.com/skilltechathon/
#sql #postgresql #deloitte #deloittejobs #mysql #interview #dataengineering #dataanalytics #dataanalysis #capgemini #deloitte #deloittejobs #capgeminihiring
Download
0 formats
No download links available.
Deloitte SQL Interview Question I 99% of SQL Users Fail This Window Function Problem I | NatokHD