<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=QueryGen_Case%3A_Security_Work</id>
	<title>QueryGen Case: Security Work - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=QueryGen_Case%3A_Security_Work"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=QueryGen_Case:_Security_Work&amp;action=history"/>
	<updated>2026-05-15T16:57:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=QueryGen_Case:_Security_Work&amp;diff=542&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=QueryGen_Case:_Security_Work&amp;diff=542&amp;oldid=prev"/>
		<updated>2023-07-14T13:00:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:00, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-541:rev-542 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=QueryGen_Case:_Security_Work&amp;diff=541&amp;oldid=prev</id>
		<title>Intra&gt;Chanson: /* Duplicate Elimination */</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=QueryGen_Case:_Security_Work&amp;diff=541&amp;oldid=prev"/>
		<updated>2019-08-02T12:45:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Duplicate Elimination&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Security in QueryGen==&lt;br /&gt;
&lt;br /&gt;
===Duplicate Elimination===&lt;br /&gt;
This will eliminate duplicate items (which can be difficult to delete) and creates a good script that can replace security in another database (like when copying from one company to another).&lt;br /&gt;
&lt;br /&gt;
Select:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select SECURITY_CLASS,USER_ID,SECTION_NAME,GROUP_NAME,OPTION_NAME,min(LAST_CHANGE_DATETIME) LAST_CHANGE_DATETIME,min(LAST_CHANGE_USER) LAST_CHANGE_USER&lt;br /&gt;
from cctsectl&lt;br /&gt;
group by SECTION_NAME,GROUP_NAME,OPTION_NAME,SECURITY_CLASS,USER_ID&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Header:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
DELETE FROM CCTSECTL;&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Model:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
INSERT INTO cctsectl&lt;br /&gt;
( SECURITY_CLASS, USER_ID, SECTION_NAME, GROUP_NAME, OPTION_NAME, LAST_CHANGE_DATETIME, LAST_CHANGE_USER )  VALUES &lt;br /&gt;
( '{SECURITY_CLASS}', '{USER_ID}', '{SECTION_NAME}', '{GROUP_NAME}', '{OPTION_NAME}', '{LAST_CHANGE_DATETIME}', '{LAST_CHANGE_USER}'    );&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Add ZZ Items to a Role===&lt;br /&gt;
Example of creating a role items from a new &amp;quot;ZZ&amp;quot; security items:&lt;br /&gt;
&lt;br /&gt;
Select:&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
SELECT * FROM cctsectl&lt;br /&gt;
where last_change_datetime between '7/26/19' and '7/29/19'&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
DELETE FROM CCTSECTL WHERE LAST_CHANGE_DATETIME='8/1/19';&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
INSERT INTO cctsectl&lt;br /&gt;
( SECURITY_CLASS, USER_ID, SECTION_NAME, GROUP_NAME, OPTION_NAME, LAST_CHANGE_DATETIME, LAST_CHANGE_USER )  VALUES &lt;br /&gt;
( NULL, '~DISPATCH', '{SECTION_NAME}', '{GROUP_NAME}', '{OPTION_NAME}', '8/1/19', 'HIT'    );&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;/div&gt;</summary>
		<author><name>Intra&gt;Chanson</name></author>
	</entry>
</feed>