<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged queries</title>
<link>https://overflow.efficy.io/?qa=tag/queries</link>
<description>Powered by Question2Answer</description>
<item>
<title>DUPLICATES Table meaning of the STATUS field</title>
<link>https://overflow.efficy.io/?qa=638/duplicates-table-meaning-of-the-status-field</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;what is the meaning of the values A and N in the STATUS field in the DUPLICATES table?&lt;/p&gt;

&lt;p&gt;I have to run a query and I wonder if I have to respect/filter the field or not...&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=638/duplicates-table-meaning-of-the-status-field</guid>
<pubDate>Thu, 13 Aug 2015 12:46:43 +0000</pubDate>
</item>
<item>
<title>How to add number of days until Due date in Widget Due (with deadline date)</title>
<link>https://overflow.efficy.io/?qa=624/how-add-number-days-until-due-date-widget-with-deadline-date</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
My customer would like to see the number of days until Due date in the widget. The query is the one with Master=32 and Detail=3 ou 4.&lt;br&gt;
I don't how to code DateDiff function in Efficy Query on Oracle DB.&lt;br&gt;
Could someone help?&lt;br&gt;
Thanks&lt;br&gt;
Anne&lt;/p&gt;
</description>
<category>Database</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=624/how-add-number-days-until-due-date-widget-with-deadline-date</guid>
<pubDate>Tue, 11 Aug 2015 09:09:36 +0000</pubDate>
</item>
<item>
<title>How to Add a condition to the Search Query?</title>
<link>https://overflow.efficy.io/?qa=252/how-to-add-a-condition-to-the-search-query</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;How can we make sure that for every search of projects, the projects with a boolean put on 1 will not be shown, without using securities ? Just that they don't appear in the search results.&lt;/p&gt;

&lt;p&gt;we've taken the system query and changed it, but because the Search is dynamic in creating the queries, our added where isn't taken into account.&lt;/p&gt;

&lt;p&gt;The Changed Sys Query : ( Proj Search )&lt;/p&gt;

&lt;p&gt;[Select]&lt;br&gt;
PROJECTS.K&lt;em&gt;PROJECT&lt;br&gt;
PROJECTS.NAME&lt;br&gt;
PROJECTS.REFERENCE&lt;br&gt;
PROJECTS.D&lt;/em&gt;START&lt;br&gt;
PROJECTS.D_END&lt;br&gt;
PROJECTS.OPENED&lt;/p&gt;

&lt;p&gt;[From]&lt;br&gt;
PROJECTS&lt;/p&gt;

&lt;p&gt;[Orderby]&lt;br&gt;
PROJECTS.NAME&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[Where]&lt;br&gt;
PROJECTS.F_ARCHIVED IN (0)&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;[Columns]&lt;br&gt;
TREEVIEWPLUS,MENU,NAME{NAMESEARCH},REFERENCE,K_PROJECT{NEWLINE1TREEVIEW}&lt;/p&gt;

&lt;p&gt;We also tried with  [FIXED] added to the where line, but this didnt change any thing&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What is executed really :&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;SELECT &lt;br&gt;
  PROJECTS.K&lt;em&gt;PROJECT,&lt;br&gt;
  PROJECTS.NAME,&lt;br&gt;
  PROJECTS.REFERENCE,&lt;br&gt;
  PROJECTS.D&lt;/em&gt;START,&lt;br&gt;
  PROJECTS.D_END,&lt;br&gt;
  PROJECTS.OPENED&lt;br&gt;
FROM&lt;br&gt;
  ADMINDEV.PROJECTS PROJECTS&lt;br&gt;
WHERE&lt;br&gt;
  (&lt;br&gt;
(PROJECTS.NAME like N'%%%')&lt;br&gt;
or&lt;br&gt;
(PROJECTS.REFERENCE like N'%%%')&lt;br&gt;
)&lt;/p&gt;

&lt;p&gt;AND ((1 &amp;lt;&amp;gt; 0) OR EXISTS (SELECT S1.K&lt;em&gt;USER FROM ADMINDEV.ACC&lt;/em&gt;GROUPS S1, ADMINDEV.PROJ&lt;em&gt;USER S2 WHERE S1.K&lt;/em&gt;USER = S2.K&lt;em&gt;USER AND S1.K&lt;/em&gt;USER2 = 2 AND S2.K&lt;em&gt;PROJECT = PROJECTS.K&lt;/em&gt;PROJECT))&lt;br&gt;
ORDER BY PROJECTS.NAME&lt;/p&gt;

&lt;p&gt;So how can we get this working ? &lt;br&gt;
Is there a way to force from the system query a condition that always has to be taken into account..?&lt;/p&gt;
</description>
<category>Efficy Developers</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=252/how-to-add-a-condition-to-the-search-query</guid>
<pubDate>Thu, 05 Mar 2015 13:50:30 +0000</pubDate>
</item>
</channel>
</rss>