Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

Column for Table1 within subquery

$
0
0
Hello AllHow could I use Column for Table1 within subquery. I know this is not possible but there should be a nice way to achieve this.SELECT *FROM Table1 K1WHERE (1) = (SELECT COUNT(DISTINCT(K2.KiaId))FROM Table1 K2WHERE K2.KiaId >= K1.KiaId and K2.KiaKIID = K1.KiaKIID)Thanks in Advance

Viewing all articles
Browse latest Browse all 2791

Trending Articles