← Cognizant questions
CodingEasyReported in a candidate post, Aug 2021

Get distinct items appearing only in the second table

Filed under Cognizant

Given two single-column database tables containing integer values, write a SQL query to retrieve distinct values present in the second table that do not exist in the first table.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Cognizant questions

Collected from public candidate posts and coding forums. Updated Nov 2026.