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

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