SQL Tip | Identify Reverse Pairs | Self Join| SQL Scenario interview (Amazon Data Engineer)#sqltips

 DML Script:

CREATE TABLE ReverseNumbers ( A INT, B INT ) INSERT INTO ReverseNumbers VALUES (1,2), (2,1), (4,5), (5,4), (1,6), (6,2), (6,1) SELECT * FROM ReverseNumbers


Detailed explanation: https://youtu.be/n3MxK9ftRNo

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

ACCENTURE SQL INTERVIEW QUESTION | Change the ProductIDs