SO by LOCATION Anywhere

3

Please login or register to vote for this query.

(click on this box to dismiss)

location, location, location

Interpersonal Skills

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

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results