Select posts without specific tag list

1

Please login or register to vote for this query.

(click on this box to dismiss)

Russian Language

Q&A for students, teachers, and linguists wanting to discuss the finer points of the Russian language

DECLARE @NumPosts INT = ##NumPosts?100##

CREATE TABLE #LanguageTags (
    TagName NVARCHAR(256) COLLATE SQL_Latin1_General_CP1_CS_AS
);

INSERT INTO #LanguageTags (TagName)
VALUES
('<.htaccess>'),
('<abap>'),
('<actionscript>'),
('<actionscript-3>'),
('<ada>'),
('<agda>'),
('<ansible>'),
('<apl>'),
('<applescript>'),
('<arduino>'),
('<arnoldc>'),
('<asm.js>'),
('<assembly>'),
('<autohotkey>'),
('<awk>'),
('<bash>'),
('<basic>'),
('<basic-lang>'),
('<batch>'),
('<befunge>'),
('<brainfuck>'),
('<c>'),
('<c#>'),
('<c++>'),
('<c++-cli>'),
('<cfml>'),
('<chuck>'),
('<clojure>'),
('<clojurescript>'),
('<cmake>'),
('<cobol>'),
('<coffeescript>'),
('<common-lisp>'),
('<coq>'),
('<cql>'),
('<crystal>'),
('<csh>'),
('<css>'),
('<css3>'),
('<cucumber>'),
('<cython>'),
('<d>'),
('<dart>'),
('<delphi>'),
('<delphi-xe>'),
('<dockerfile>'),
('<dogescript>'),
('<ebuild>'),
('<ecmascript-6>'),
('<elisp>'),
('<elixir>'),
('<elm>'),
('<erlang>'),
('<excel>'),
('<f#>'),
('<factor-lang>'),
('<filemaker>'),
('<fish-language>'),
('<flex>'),
('<forth>'),
('<fortran>'),
('<function-block-diagram>'),
('<gdscript>'),
('<glsl>'),
('<gml>'),
('<go>'),
('<google-apps-script>'),
('<gradle>'),
('<groovy>'),
('<haml>'),
('<haskell>'),
('<haxe>'),
('<hdl>'),
('<hlsl>'),
('<html>'),
('<html5>'),
('<hy>'),
('<ibm-rpg>'),
('<idris>'),
('<io-language>'),
('<j>'),
('<java>'),
('<javascript>'),
('<json>'),
('<jsx>'),
('<julia>'),
('<jython>'),
('<kotlin>'),
('<ksh>'),
('<lc-3>'),
('<less-css>'),
('<lex>'),
('<lilypond>'),
('<lisp>'),
('<logo-lang>'),
('<lolcode>'),
('<lua>'),
('<m4>'),
('<make>'),
('<makefile>'),
('<markdown>'),
('<matlab>'),
('<maxscript>'),
('<mongodb-query>'),
('<netlogo>'),
('<nginx>'),
('<nim>'),
('<nusmv>'),
('<object-pascal>'),
('<objective-c>'),
('<ocaml>'),
('<octave>'),
('<pari-gp>'),
('<pascal>'),
('<pascal-script>'),
('<pawn>'),
('<perl>'),
('<perl6>'),
('<php>'),
('<php5>'),
('<postscript>'),
('<powershell>'),
('<processing>'),
('<processing.js>'),
('<progress-4gl>'),
('<prolog>'),
('<purescript>'),
('<pyth>'),
('<python>'),
('<qasm>'),
('<qml>'),
('<r>'),
('<racket>'),
('<razor>'),
('<rc>'),
('<rebol>'),
('<rebol2>'),
('<regex>'),
('<robotframework>'),
('<rpython>'),
('<ruby>'),
('<rust>'),
('<salesforce-apex>'),
('<sas>'),
('<sass>'),
('<scala>'),
('<scheme>'),
('<scratch>'),
('<scss>'),
('<sh>'),
('<shell>'),
('<siebel-escript>'),
('<simulink>'),
('<sinatra>'),
('<smalltalk>'),
('<sml>'),
('<snobol4>'),
('<solidity>'),
('<sputnik>'),
('<sql>'),
('<structured-text>'),
('<swift>'),
('<tcl>'),
('<tex>'),
('<ti-basic>'),
('<typescript>'),
('<unrealscript>'),
('<vb.net>'),
('<vb6>'),
('<vba>'),
('<vbscript>'),
('<verilog>'),
('<vhdl>'),
('<vimscript>'),
('<whitespace-language>'),
('<wolfram-mathematica>'),
('<wren>'),
('<xaml>'),
('<xml>'),
('<xslt>'),
('<yacc>'),
('<yaml>'),
('<zsh>');

SELECT DISTINCT TOP (@NumPosts) p.Id AS [Post Link]
    , p.Tags
    , p.CreationDate AS [Created]
FROM Posts AS p
LEFT JOIN #LanguageTags AS lt
ON p.Tags LIKE '%' + lt.TagName + '%'
WHERE p.ClosedDate IS NULL
    AND lt.TagName IS NULL
    AND p.PostTypeId = 1

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results