<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Query_unused_forms_datastores_processes</id>
	<title>Query unused forms datastores processes - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.smt-x.com/index.php?action=history&amp;feed=atom&amp;title=Query_unused_forms_datastores_processes"/>
	<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Query_unused_forms_datastores_processes&amp;action=history"/>
	<updated>2026-04-03T23:01:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://wiki.smt-x.com/index.php?title=Query_unused_forms_datastores_processes&amp;diff=686&amp;oldid=prev</id>
		<title>Smtxwiki: Created page with &quot;Show forms with 0 tickets in teh last 24 months (see fixed date in query !!)   SELECT * FROM [Form] WHERE [Id] NOT IN ( SELECT [FormField].[Form_Id]   FROM [FormInstanceValue], [FormField], [FormInstance]   WHERE [FormInstanceValue].[Field_Id] = [FormField].[Id]   AND [FormInstanceValue].[FormInstance_Id] = FormInstance.Id   AND [FormInstance].[LastUpdate] &gt; &#039;2020-12-12&#039; )     Query to show processes without tickets in the last 24 months (see fixed date in query !!)   SE...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.smt-x.com/index.php?title=Query_unused_forms_datastores_processes&amp;diff=686&amp;oldid=prev"/>
		<updated>2022-12-13T15:16:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Show forms with 0 tickets in teh last 24 months (see fixed date in query !!)   SELECT * FROM [Form] WHERE [Id] NOT IN ( SELECT [FormField].[Form_Id]   FROM [FormInstanceValue], [FormField], [FormInstance]   WHERE [FormInstanceValue].[Field_Id] = [FormField].[Id]   AND [FormInstanceValue].[FormInstance_Id] = FormInstance.Id   AND [FormInstance].[LastUpdate] &amp;gt; &amp;#039;2020-12-12&amp;#039; )     Query to show processes without tickets in the last 24 months (see fixed date in query !!)   SE...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Show forms with 0 tickets in teh last 24 months (see fixed date in query !!)&lt;br /&gt;
 &lt;br /&gt;
SELECT * FROM [Form] WHERE [Id] NOT IN (&lt;br /&gt;
SELECT [FormField].[Form_Id]&lt;br /&gt;
  FROM [FormInstanceValue], [FormField], [FormInstance]&lt;br /&gt;
  WHERE [FormInstanceValue].[Field_Id] = [FormField].[Id]&lt;br /&gt;
  AND [FormInstanceValue].[FormInstance_Id] = FormInstance.Id&lt;br /&gt;
  AND [FormInstance].[LastUpdate] &amp;gt; &amp;#039;2020-12-12&amp;#039;&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Query to show processes without tickets in the last 24 months (see fixed date in query !!)&lt;br /&gt;
 &lt;br /&gt;
SELECT * FROM [Process] WHERE [Id] NOT IN (&lt;br /&gt;
SELECT [ProcessInstanceStep].[OriginalProcessId]&lt;br /&gt;
  FROM [ProcessInstanceStep], [ProcessInstance]&lt;br /&gt;
  WHERE [ProcessInstanceStep].[ProcessInstanceId] =  [ProcessInstance].[Id]&lt;br /&gt;
  AND [ProcessInstance].DateStarted &amp;gt; &amp;#039;2020-12-12&amp;#039;&lt;br /&gt;
)&lt;br /&gt;
 &lt;br /&gt;
Unused datastore parameters in selection fields (except the retired forms):&lt;br /&gt;
 &lt;br /&gt;
SELECT * FROM [Parameter] WHERE [Name] NOT IN (SELECT COALESCE([SelectionParameter], &amp;#039;&amp;#039;) FROM [FormField], [Form] WHERE [FormField].[Form_Id] = [Form].Id AND [Form].IsRetired = 0)&lt;/div&gt;</summary>
		<author><name>Smtxwiki</name></author>
	</entry>
</feed>