Skip to main content
replaced http://data.stackexchange.com/ with https://data.stackexchange.com/
Source Link

If the post you're looking for is older than 7 days you can use SEDESEDE. For example this queryquery will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

replaced http://meta.stackexchange.com/ with https://meta.stackexchange.com/
Source Link

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a weekupdated once a week.

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

edited body
Source Link
ale
  • 24.9k
  • 7
  • 75
  • 124

If the post you're looking for is older thenthan 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

If the post you're looking for is older then 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

If the post you're looking for is older than 7 days you can use SEDE. For example this query will search the Q/A pairs you participated in for a given word.

;with allQs as 
(
    select coalesce(parentid,id) as postid
    from posts p
    where owneruserid = ##userid:int?393087##
) 
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.parentid 
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##
union
select id as [Post Link]
     , owneruserid as [User Link]
     , creationdate
     , score
from posts p
inner join allQs q on q.postid = p.id
where p.body like '%' + ##search:string?database## +'%'
and p.owneruserid <> ##userid:int?393087##

When run today this will be your result:

enter image description here

Keep in mind SEDE is only updated once a week.

Source Link
rene Mod
  • 92.1k
  • 17
  • 244
  • 515
Loading