ACCENTURE SQL INTERVIEW QUESTION | Change the ProductIDs

 DROP TABLE IF EXISTS Products;


CREATE TABLE Products (

    ProductID INT PRIMARY KEY,

    Product VARCHAR(255),

    Category VARCHAR(100)

);


INSERT INTO Products (ProductID, Product, Category)

VALUES

    (1, 'Laptop', 'Electronics'),

    (2, 'Smartphone', 'Electronics'),

    (3, 'Tablet', 'Electronics'),

    (4, 'Headphones', 'Accessories'),

    (5, 'Smartwatch', 'Accessories'),

    (6, 'Keyboard', 'Accessories'),

    (7, 'Mouse', 'Accessories'),

    (8, 'Monitor', 'Accessories'),

    (9, 'Printer', 'Electronics');

Comments

Popular posts from this blog

Mu Sigma SQL INTERVIEW QUESTION | Consecutive events count - Dataset 1

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

NTT DATA SQL INTERVIEW QUESTION | Solve 80/20 Pareto rule