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

Показать описание
SQL Interview Questions and answers Part 40 | SQL Scenario based Interview Question and Answer
Problem Statement :- Write a SQL query to print the desired Output as shown below using two tables i.e:- Emp_Table and Month_Table
-------------------------------------------------------------------------
Follow me on Social Networking Sites :
-------------------------------------------------------------------------
*Twitter:
*Instagram :
-------------------------------------------------------------------------
Table and Insert SQL Script :
-------------------------------------------------------------------------
Create Table Emp_Table (
SerialNo int,
Name Varchar(30),
Month_ID int,
Amount Bigint )
Insert into Emp_Table Values (1,'JOHN',1,1000)
Insert into Emp_Table Values (1,'JOHN',2,3000)
Insert into Emp_Table Values (8,'DAVID',3,4000)
Insert into Emp_Table Values (8,'DAVID',5,2000)
Create Table Month_Table(
Month_ID int,
Month Varchar(30))
Insert into Month_Table Values (1, 'JAN')
Insert into Month_Table Values (2, 'FEB')
Insert into Month_Table Values (3, 'MAR')
Insert into Month_Table Values (4, 'APR')
Insert into Month_Table Values (5, 'MAY')
Insert into Month_Table Values (6, 'JUN')
Insert into Month_Table Values (7, 'JUL')
Insert into Month_Table Values (8, 'AUG')
Insert into Month_Table Values (9, 'SEP')
Insert into Month_Table Values (10, 'OCT')
Insert into Month_Table Values (11, 'NOV')
Insert into Month_Table Values (12, 'DEC')
#SQLInterviewQuestionsandanswers #sqlInterviewQuestions #sqlInterviewQuestionsForTesting #sqlInterviewQuestionsQuery #sqlInterviewQuestionsOnJoins #sqlTechnicalInterviewQuestions #SQLforETLTesters #CommonSqlInterviewQuestions #ETLTesting #ITJUNCTION4ALL
Problem Statement :- Write a SQL query to print the desired Output as shown below using two tables i.e:- Emp_Table and Month_Table
-------------------------------------------------------------------------
Follow me on Social Networking Sites :
-------------------------------------------------------------------------
*Twitter:
*Instagram :
-------------------------------------------------------------------------
Table and Insert SQL Script :
-------------------------------------------------------------------------
Create Table Emp_Table (
SerialNo int,
Name Varchar(30),
Month_ID int,
Amount Bigint )
Insert into Emp_Table Values (1,'JOHN',1,1000)
Insert into Emp_Table Values (1,'JOHN',2,3000)
Insert into Emp_Table Values (8,'DAVID',3,4000)
Insert into Emp_Table Values (8,'DAVID',5,2000)
Create Table Month_Table(
Month_ID int,
Month Varchar(30))
Insert into Month_Table Values (1, 'JAN')
Insert into Month_Table Values (2, 'FEB')
Insert into Month_Table Values (3, 'MAR')
Insert into Month_Table Values (4, 'APR')
Insert into Month_Table Values (5, 'MAY')
Insert into Month_Table Values (6, 'JUN')
Insert into Month_Table Values (7, 'JUL')
Insert into Month_Table Values (8, 'AUG')
Insert into Month_Table Values (9, 'SEP')
Insert into Month_Table Values (10, 'OCT')
Insert into Month_Table Values (11, 'NOV')
Insert into Month_Table Values (12, 'DEC')
#SQLInterviewQuestionsandanswers #sqlInterviewQuestions #sqlInterviewQuestionsForTesting #sqlInterviewQuestionsQuery #sqlInterviewQuestionsOnJoins #sqlTechnicalInterviewQuestions #SQLforETLTesters #CommonSqlInterviewQuestions #ETLTesting #ITJUNCTION4ALL
Комментарии