SQL Interview Questions Part 52 | Amazon SQL Question Part-10 | SQL Data Engineer Interview 🔥🔥

Опубликовано: 02 Июль 2022
на канале: ItJunction4all
3,083
58

SQL Interview Questions Part 52 | Amazon SQL Question Part-10 🔥🔥

This question has been asked in Amazon interview and is based on Removal of reverse pairs.
Problem Statement :
Write a SQL query to remove all reversed number pairs from given table. Keep only one random pair .
Assumption:
1. There will not be same value for both A and B column.
2. There will not be same pair of numbers repeating in this table.


-------------------------------------------------------------------------
𝗝𝗼𝗶𝗻 𝗺𝗲 𝗼𝗻 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:🔥
-------------------------------------------------------------------------
🔴 Instagram :
  / itjunction4all  

🔴 Twitter:
  / sunilkr5672  
-------------------------------------------------------------------------
🔴 Table and Insert SQL Script :
-------------------------------------------------------------------------
Create Table Reverse_duplicates(
A int,
B int);

insert into Reverse_duplicates values(1,2);
insert into Reverse_duplicates values(3,2);
insert into Reverse_duplicates values(2,4);
insert into Reverse_duplicates values(2,1);
insert into Reverse_duplicates values(5,6);
insert into Reverse_duplicates values(4,2);

#AmazonDataEngineer #AmazonInterview #AmazonSQLInterview #FAANG #SQLInterviewQuestionsandanswers #sqlInterviewQuestions #sqlInterviewQuestionsForTesting


Смотрите видео SQL Interview Questions Part 52 | Amazon SQL Question Part-10 | SQL Data Engineer Interview 🔥🔥 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь ItJunction4all 02 Июль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,083 раз и оно понравилось 58 людям.