SQL Interview: 78 SELECT *
This is a post in the SQL Interview series. These aren’t trick or gotcha questions, they’re just questions designed to scope out a candidate’s knowledge around SQL Server and Azure SQL Database.
Section: Development Level: Medium
Question:
You use a tool that does static code analysis of your T-SQL code.
It identifies the following predicate as an issue:
WHERE EXISTS
(
SELECT *
FROM dbo.Products AS p
WHERE p.ProductID = c.ProductID
)
Is this an issue?
2025-09-13