<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://mwiki.gichd.org/IM/index.php?action=history&amp;feed=atom&amp;title=Missing_Date_of_Information_PGSQL</id>
	<title>Missing Date of Information PGSQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://mwiki.gichd.org/IM/index.php?action=history&amp;feed=atom&amp;title=Missing_Date_of_Information_PGSQL"/>
	<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;action=history"/>
	<updated>2026-04-25T00:19:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22423&amp;oldid=prev</id>
		<title>Alnaucler at 05:33, 11 November 2016</title>
		<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22423&amp;oldid=prev"/>
		<updated>2016-11-11T05:33:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;amp;diff=22423&amp;amp;oldid=22418&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Alnaucler</name></author>
	</entry>
	<entry>
		<id>http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22418&amp;oldid=prev</id>
		<title>Alnaucler at 16:22, 10 November 2016</title>
		<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22418&amp;oldid=prev"/>
		<updated>2016-11-10T16:22:46Z</updated>

		<summary type="html">&lt;p&gt;&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 18:22, 10 November 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l235&quot;&gt;Line 235:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 235:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{NavBox &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Upgrade&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{NavBox &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Hub&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:NoPublic]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:NoPublic]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SQL Queries]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:SQL Queries]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Alnaucler</name></author>
	</entry>
	<entry>
		<id>http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22417&amp;oldid=prev</id>
		<title>Alnaucler: Created page with &quot;{{Under construction| The SQL below are in MySQL.}}  {{TOC right}} {{Note | The Summary item/window calculation is &#039;&#039;&#039;depending&#039;&#039;&#039; on that &#039;&#039;Date of Information&#039;&#039; is filled in...&quot;</title>
		<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Missing_Date_of_Information_PGSQL&amp;diff=22417&amp;oldid=prev"/>
		<updated>2016-11-10T16:21:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Under construction| The SQL below are in MySQL.}}  {{TOC right}} {{Note | The Summary item/window calculation is &amp;#039;&amp;#039;&amp;#039;depending&amp;#039;&amp;#039;&amp;#039; on that &amp;#039;&amp;#039;Date of Information&amp;#039;&amp;#039; is filled in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Under construction| The SQL below are in MySQL.}} &lt;br /&gt;
{{TOC right}}&lt;br /&gt;
{{Note | The Summary item/window calculation is &amp;#039;&amp;#039;&amp;#039;depending&amp;#039;&amp;#039;&amp;#039; on that &amp;#039;&amp;#039;Date of Information&amp;#039;&amp;#039; is filled in and the rules for if a DEF is Unapprovable are also depending on &amp;#039;&amp;#039;Date of Information&amp;#039;&amp;#039;.}}&lt;br /&gt;
&lt;br /&gt;
==Missing Date of Information ==__NOEDITSECTION__ &lt;br /&gt;
[[Image:Missing date info.png|1000px|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039; How it should NOT look like&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
If &amp;#039;&amp;#039;Date of Information&amp;#039;&amp;#039; is missing it has to be set. If the DEF that misses &amp;#039;&amp;#039;Date of Information&amp;#039;&amp;#039; is an Activity or Education then you might be able to use &amp;#039;&amp;#039;End date&amp;#039;&amp;#039;.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL &lt;br /&gt;
ORDER BY&lt;br /&gt;
imsmaenum.enumvalue DESC, `Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you have any output here you need to take action. The queries below help you to identify for which item(s) the rows in the table &amp;#039;&amp;#039;fieldreport&amp;#039;&amp;#039; need to be updated.&lt;br /&gt;
&lt;br /&gt;
=== Hazard===__NOEDITSECTION__ &lt;br /&gt;
[[Image:Missing date info2.png|1000px|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039; Example of result - it is &amp;#039;&amp;#039;&amp;#039;important&amp;#039;&amp;#039;&amp;#039; to decide where you may find a date to use that is in chronological order. &amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
With this result set you can show the country which Hazards are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
hazardinfoversion.dataentrydate AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
INNER JOIN hazardinfoversion ON fieldreport.fieldreport_guid = hazardinfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
hazardinfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accident===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which Accidents are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
accidentinfoversion.dataentrydate AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join accidentinfoversion ON fieldreport.fieldreport_guid = accidentinfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
accidentinfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Hazard reduction===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which Hazard Reductions are affected and figure out a solution e.g. use End date if NOT NULL&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
hazreducinfoversion.dataentrydate AS InfoVerDate, &lt;br /&gt;
hazreducinfoversion.enddate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join hazreducinfoversion ON fieldreport.fieldreport_guid = hazreducinfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
hazreducinfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Location===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which Loctions are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
locationinfoversion.dataentrydate AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join locationinfoversion ON fieldreport.fieldreport_guid = locationinfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
locationinfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== MRE===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which MREs are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
mreinfoversion.dataentrydate  AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join mreinfoversion ON fieldreport.fieldreport_guid = mreinfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
mreinfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== QM===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which QMs are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
qainfoversion.dataentrydate AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join qainfoversion ON fieldreport.fieldreport_guid = qainfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
qainfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Victim===__NOEDITSECTION__ &lt;br /&gt;
With this result set you can show the country which Victims are affected and figure out a solution. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid AS `Form ID`,&lt;br /&gt;
fieldreport.dateofreport AS `Date of Information`,&lt;br /&gt;
fieldreport.reportreceiveddate AS `Data Entry Date`,&lt;br /&gt;
fieldreport.reportcompleteddate AS `Submitted Date`,&lt;br /&gt;
fieldreport.reportverifieddate AS `Approved Date`,&lt;br /&gt;
fieldreport.dataenterer AS `Data enterer`,&lt;br /&gt;
fieldreport.verifiedby AS `Approved by`,&lt;br /&gt;
imsmaenum.enumvalue AS `WB status`,&lt;br /&gt;
victiminfoversion.dataentrydate AS InfoVerDate&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
Inner Join victiminfoversion ON fieldreport.fieldreport_guid = victiminfoversion.fieldreport_guid&lt;br /&gt;
INNER JOIN imsmaenum ON fieldreport.workbenchstatusenum_guid = imsmaenum.imsmaenum_guid&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL  AND&lt;br /&gt;
victiminfoversion.link_only =  &amp;#039;0&amp;#039;&lt;br /&gt;
ORDER BY&lt;br /&gt;
InfoVerDate ASC,&lt;br /&gt;
`Form ID` ASC&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example UPDATE query==__NOEDITSECTION__ &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
update fieldreport&lt;br /&gt;
Inner Join hazardinfoversion ON fieldreport.fieldreport_guid = hazardinfoversion.fieldreport_guid&lt;br /&gt;
SET&lt;br /&gt;
fieldreport.dateofreport = hazardinfoversion.dataentrydate&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport IS NULL&lt;br /&gt;
AND&lt;br /&gt;
hazardinfoversion.link_only =  &amp;#039;0&amp;#039; AND&lt;br /&gt;
hazardinfoversion.dataentrydate IS NOT NULL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Future date==__NOEDITSECTION__ &lt;br /&gt;
Date of Information in the &amp;#039;&amp;#039;&amp;#039;future&amp;#039;&amp;#039;&amp;#039;. Use one day after the backup was taken in the WHERE.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT&lt;br /&gt;
fieldreport.fieldreport_localid,&lt;br /&gt;
fieldreport.dateofreport&lt;br /&gt;
FROM&lt;br /&gt;
fieldreport&lt;br /&gt;
WHERE&lt;br /&gt;
fieldreport.dateofreport &amp;gt;  &amp;#039;2015-04-07&amp;#039;&lt;br /&gt;
Order by 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{NavBox Upgrade}}&lt;br /&gt;
[[Category:NoPublic]]&lt;br /&gt;
[[Category:SQL Queries]]&lt;/div&gt;</summary>
		<author><name>Alnaucler</name></author>
	</entry>
</feed>