Popular Posts

SQLblog.com - The SQL Server blog spot on the web

Saturday, June 24, 2017

replacing hard coded value with column name fails the query - simple query with subquery

SQLServerCentral » Latest topics
replacing hard coded value with column name fails the query - simple query with subquery
Below I've commented out what is failing to work. By fail, i mean no result set.

when i substitute o.Datekey for '2017-05-17' i get no result set, when I leave hardcoded 

No comments: