Fill the gaps | SQL Interview question

 DML Script:

DROP TABLE IF EXISTS Gaps;

GO


CREATE TABLE Gaps

(

RowNumber  INTEGER PRIMARY KEY,

TestCase   VARCHAR(100) NULL

);

GO


INSERT INTO Gaps (RowNumber, TestCase) VALUES

(1,'Alpha'),(2,NULL),(3,NULL),(4,NULL),

(5,'Bravo'),(6,NULL),(7,'Charlie'),(8,NULL),(9,NULL);

GO


SELECT * FROM Gaps

ORDER BY RowNumber


Detailed Explanation: https://youtu.be/mXb1_5rX7PA

Comments

Popular posts from this blog

50 Essential SQL Questions to Land Your Dream Job

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

ACCENTURE SQL INTERVIEW QUESTION | Change the ProductIDs