filmov
tv
SQL Interview Questions and answers Part 42 | SQL Scenario based Interview Question and Answer

Показать описание
SQL Interview Questions and answers Part 42 | SQL Scenario based Interview Question and Answer
Problem Statement :- ITEM Table has two columns namely ItemName and TotalQuantity. Write a SQL query to duplicate the rows based on total count in output table by adding two new columns ID and CatID
-------------------------------------------------------------------------
Follow me on Social Networking Sites :
-------------------------------------------------------------------------
*Instagram :
*Twitter:
-------------------------------------------------------------------------
Table and Insert SQL Script :
-------------------------------------------------------------------------
Create Table Item(
ItemName Varchar(30),
TotalQuantity int
)
Insert into Item Values('Apple',2)
Insert into Item Values('Orange',3)
-----------------------------------------------------------------------------------------------------------------
#SQLInterviewQuestionsandanswers #sqlInterviewQuestions #sqlInterviewQuestionsForTesting #sqlInterviewQuestionsQuery #sqlInterviewQuestionsOnJoins #sqlTechnicalInterviewQuestions #SQLforETLTesters #CommonSqlInterviewQuestions #ETLTesting #ITJUNCTION4ALL #AmazonInterview
Problem Statement :- ITEM Table has two columns namely ItemName and TotalQuantity. Write a SQL query to duplicate the rows based on total count in output table by adding two new columns ID and CatID
-------------------------------------------------------------------------
Follow me on Social Networking Sites :
-------------------------------------------------------------------------
*Instagram :
*Twitter:
-------------------------------------------------------------------------
Table and Insert SQL Script :
-------------------------------------------------------------------------
Create Table Item(
ItemName Varchar(30),
TotalQuantity int
)
Insert into Item Values('Apple',2)
Insert into Item Values('Orange',3)
-----------------------------------------------------------------------------------------------------------------
#SQLInterviewQuestionsandanswers #sqlInterviewQuestions #sqlInterviewQuestionsForTesting #sqlInterviewQuestionsQuery #sqlInterviewQuestionsOnJoins #sqlTechnicalInterviewQuestions #SQLforETLTesters #CommonSqlInterviewQuestions #ETLTesting #ITJUNCTION4ALL #AmazonInterview
Комментарии