Thursday, 27 August 2026

MCQ on JOIN

Amazon SQL Interview: Joins

SQL Joins: Amazon Interview Prep

Learn join types, compare their results, and test your interview readiness.

What is a SQL join?

A join combines rows from two or more tables using a related column. The related columns do not need to have the same name, but they usually represent the same business concept.

SELECT c.customer_name, o.order_id FROM customers c JOIN orders o ON c.customer_id = o.customer_id;
Amazon interview tip: Always clarify whether unmatched rows should be retained. That determines whether you need an inner join, left join, right join, or full outer join.
Most common

INNER JOIN

Returns only rows with matching values in both tables.

FROM A INNER JOIN B ON A.key = B.key;
Frequently tested

LEFT JOIN

Returns every row from the left table and matching rows from the right table.

FROM A LEFT JOIN B ON A.key = B.key;
Less common

RIGHT JOIN

Returns every row from the right table and matching rows from the left table.

FROM A RIGHT JOIN B ON A.key = B.key;
Dialect dependent

FULL OUTER JOIN

Returns all rows from both tables. Unmatched columns contain NULL.

FROM A FULL OUTER JOIN B ON A.key = B.key;
Special purpose

CROSS JOIN

Returns the Cartesian product: every row in A paired with every row in B.

FROM A CROSS JOIN B;
Hierarchy and relationships

SELF JOIN

Joins a table to itself using different aliases.

FROM employees e JOIN employees m ON e.manager_id = m.employee_id;

Interactive Join Visualizer

Choose a join type to see which rows are returned.

Customers

customer_id customer_name
1 Ana
2 Ben
3 Chen
4 Dina

Orders

order_id customer_id
101 1
102 2
105 5

Returned rows

SQL Playground

Select a business question. The page shows the SQL pattern and the expected result.

Amazon-Style Interview Quiz

Score: 0 / 5

1. Which join returns only matching rows from both tables?



2. Which join is best for finding customers who have no orders?



3. If table A has 4 rows and table B has 3 rows, how many rows can a CROSS JOIN produce?



4. What is a common cause of duplicate rows after a join?



5. What can unintentionally turn a LEFT JOIN into an INNER JOIN?




SQL interview practice: focus on row preservation, NULL behavior, cardinality, and join-key uniqueness.

organic 1

๐Ÿงช Haloalkanes & Haloarenes — 65 MCQs PYQ Quiz

Class 12 | SN1 SN2 Exceptions | Stereochemistry | C-X Nature | Polyhalo | NEET/JEE PYQ

Score: 0/65 | Question 1/65

Thursday, 4 April 2024

Online Personal Tution

Welcome to Sonika Anand Academy, where personalized education meets excellence. Our academy specializes in providing tailored tuition and aptitude coaching for students from Class 6 to Class 12, equipping them with the skills and knowledge needed to succeed academically and beyond. Led by renowned educator Sonika Anand, our academy is committed to nurturing each student's unique potential through individualized attention and customized learning plans. With a focus on both academic subjects and aptitude development, we strive to empower students to excel in all aspects of their educational journey. Key Features: Personalized Tuition: Our one-on-one tutoring sessions offer personalized attention, allowing students to learn at their own pace and address their specific learning needs. Experienced tutors tailor each session to the student's strengths, weaknesses, and learning style, ensuring maximum comprehension and retention. Comprehensive Curriculum: From core subjects like Mathematics, Science, English, and Social Sciences to specialized areas such as Aptitude and Logical Reasoning, our curriculum covers all bases. We provide comprehensive support for school syllabi as well as competitive exams, ensuring holistic academic development. Aptitude Coaching: In addition to academic subjects, we offer specialized coaching in aptitude and reasoning skills. Through interactive sessions, practice exercises, and real-world problem-solving scenarios, students develop critical thinking, analytical abilities, and logical reasoning skills essential for success in competitive exams and beyond. Experienced Educators: Our team comprises experienced educators and subject matter experts who are passionate about teaching and mentoring students. With their guidance and expertise, students receive top-notch instruction and support, helping them unlock their full potential and achieve their goals. Flexible Scheduling: We understand the busy schedules of students and their families. That's why we offer flexible scheduling options, allowing students to book sessions at convenient times that fit their routine. Whether it's after school, on weekends, or during holidays, we're here to accommodate their needs. Progress Tracking: We believe in transparency and accountability. Through regular assessments, progress reports, and feedback sessions, we keep parents and students informed about their academic progress and areas for improvement. This data-driven approach ensures that students stay on track and make continuous strides towards success. Embark on a journey of academic excellence and personal growth with Sonika Anand Academy. Let us guide you towards a brighter future filled with knowledge, confidence, and success. Enroll today and experience the difference personalized tuition and aptitude coaching can make!

Contact for Enquiry

Name

Email *

Message *