Grokking SQL for Tech Interviews
Ask Author
Back to course home

0% completed

7. Rectangle Validation (Easy)
Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Problem Statement

Table: Rectangle
This table stores the dimensions of rectangles. Each row contains the lengths of four sides of a rectangle.

+---------------+------+
| Column Name   | Type |
+---------------+------+
| a             | int  |
| b             | int  |
| c             | int  |
| d             | int  |
+---------------+------+
(a, b, c, d) is the primary key for this table.
Each row of this table contains the lengths of four sides of a rectangle.

Determine for each set of four line segments whether they can form a rectangle

.....

.....

.....

Like the course? Get enrolled and start learning!

Table of Contents

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible

Contents are not accessible