0% found this document useful (0 votes)
25 views8 pages

SQL Accenture

Uploaded by

Harsha G H
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views8 pages

SQL Accenture

Uploaded by

Harsha G H
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

PART -3

SQL

Query

asked

in

accenture

interview

Email [email protected]
02

Question:

We have Product details Table

3 columns:

ProductID (INT)

Category (VARCHAR)

ProductName(VARCHAR)

03
04

When you log in to your retailer


client's database, you notice that
their product catalog data is full
of gaps in the category column.

Can you write a SQL query that


returns the product catalog with
the missing data filled in?

Condition: You can’t use any


‘WHERE’ clause in whole query
05

Assumptions :

-Each category is mentioned only


once in a category column.

-All the products belonging to same


category are grouped together.

-The first product from a product


group will always have a defined
category. Meaning that the first item
from each category will not have a
missing category value.

06

Result should look like this


07

Script for creating table is


available in description.

Write Down your SQL Query in


the comment box.

Let’s see how many of you can


solve this problem statement.

For More Education Content

FOLLOW

ME ON

LINKEDIN

Please Like and


Repost if you find

this helpful

LinkedIn www.linkedin.com/in/dhruvik-detroja/

You might also like