SQL INTERVIEW QUESTION | Ungrouping Data

  DROP TABLE IF EXISTS Products;


GO

 

CREATE TABLE Products

(

Product    VARCHAR(100),

Quantity            INTEGER NOT NULL


INSERT INTO Products

VALUES

('Mobile',3),

('TV',5),

('Tablet',4)



 SELECT * FROM Products

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