location, location, location
Q&A for people looking to improve their interpersonal communication skills
DECLARE @myTable TABLE ( Id int, ParentId int, OwnerUserId int, Tags nvarchar(150) ) INSERT INTO @myTable (Id, ParentId, OwnerUserId, Tags) SELECT Id, ParentId, OwnerUserId, Tags FROM Posts p WHERE p.tags LIKE '%java%' INSERT INTO @myTable (Id, ParentId, OwnerUserId, Tags) SELECT Id, ParentId, OwnerUserId, Tags FROM Posts p WHERE p.posttypeid = 2 AND p.parentid IN (SELECT id from @myTable) SELECT COUNT(id) FROM @myTable