How to search BETWEEN Dates
I'm on 9i.
I have the following query which will not work. I need to search for data between the time range I have in the WHERE Clause below.
SELECT *
FROM SYS.AUD$
WHERE TIMESTAMP# BETWEEN '23-Jul-07 06:55:00 PM' AND '23-Jul-07 07:30:00 PM'
ORDER BY 4 DESC
The data in the TIMESTAMP# Column looks like this;
23-Jul-07 06:55:00 PM
The TIMESTAMP# Column is a DATE DataType.
How do I get my query to work? I thought that because it is a DATE DataType, I wouldn't need to perform any sort of conversion such as TO_DATE()
@stelliosk
The top of your post was spot on.
However...
Be careful converting a date to a string for comparison. Strings have an entirely different way of evaluating comparison operators.
SELECT 1
FROM DUAL
WHERE
TO_DATE('12-01-06', 'MM-DD-RR') < TO_DATE('11-01-07', 'MM-DD-RR');
1
1
1 rows selected
SELECT 1
FROM DUAL
WHERE
'12-01-06' < '11-01-07';
1
0 rows selected
SELECT 1
FROM DUAL
WHERE
TO_DATE('May 2007', 'Mon YYYY') < TO_DATE('Aug 2007', 'Mon YYYY');
1
1
1 rows selected
SELECT 1
FROM DUAL
WHERE
'May 2007' < 'Aug 2007';
1
0 rows selected
Similar Messages
-
I have a table which contains a list of enquiries that I
receive. I have an 'Input_Date' field as a column. I have set up a
page on my site on which to input two dates to search between for
enquiries. One input field is called Start and the other End.
What is the SQL I would need in order to display the results
on a page which I go to after hitting 'submit'? Also, how would I
define the variables, 'Request.Form' or 'Request.QueryString'?
Thanks for your help in advance!If your 'Input_Date' DataType is datetime or Int you can use
a BETWEEN
clause.
eg. WHERE Input_Date BETWEEN Start AND End
As for whether to use Request.Form or Request.Querystring,
this depends on
whether you are using POST or GET on submission of the Form.
Do a Google on 'SQL BETWEEN' and you will find loads of good
articles. It's
very easy and straightforward to use.
Pat.
"Yorkshire Newbie" <[email protected]> wrote
in message
news:e7ojm4$4e1$[email protected]..
>I have a table which contains a list of enquiries that I
receive. I have an
> 'Input_Date' field as a column. I have set up a page on
my site on which
> to
> input two dates to search between for enquiries. One
input field is called
> Start and the other End.
>
> What is the SQL I would need in order to display the
results on a page
> which I
> go to after hitting 'submit'? Also, how would I define
the variables,
> 'Request.Form' or 'Request.QueryString'?
>
> Thanks for your help in advance!
> -
This is confusing so I will do my best to explain.
We have an app where employees sign out of the office. They
supply there userID, LeaveDate, and ReturnDate and it is written
into one record in SQL.
There are also several searches for this data, one of which
is to enter two dates and a userID and return whether that user is
signed out between those two dates by looking at whether the
LeaveDate is between the two search dates.
The problem arose that if someone was signed out from the 8th
to the 15th, and a search was done on them for the 11th to the
13th, it would not return anything since the LeaveDate (8th) did
not fall between the two search dates.
So now I am tasked with a way to fix this. Is there a search
between two dates and determine if any date in that span is in the
span of dates that the employee is signed out? Is it possible to,
when the employee signs out, create a record for each date in the
span of days they are gone? So if someone signed out from the 10th
to the 12th, it would create three different entries.
Any help is appreciated.> return whether that user is signed out between those two
> dates by looking at whether the LeaveDate is between the
> two search dates
Start by creating a few date examples that will cover all
possibilities. Such as
If the search dates are:
Search Start = 11th
Search End = 13th
You want to include these cases
1. Date1 is before Search Start ..AND.. Date2 is between
Search Start and End
Example: 6th to 13th
2. Date1 is between Search Start and End ..AND...Date2 is
after search End
Example: 9th to 17th
3. Date1 is between Search Start and End ..AND...Date2 is
between Search Start and End
Example: 7th to 12th
4. Date1 is before Search Start ...AND...Date2 is after
Search End
Example: 5th to 21st
Next translate those conditions to sql and test with some
sample values. If your fields contain dates only the comparisons
are simple. If they contain a date and time be sure to properly
account for the time in your comparisons.
There are better ways to write this but here is an example of
how you might start translating the 4 conditions above. Once you've
got the initial query working you can improve the sql.
Psuedo-CF/SQL
WHERE ( Date1 < #Start# AND Date2 BETWEEN #Start# AND
#End# )
OR ( Date1 BETWEEN #Start# AND #End# AND Date2 > #End# )
OR ( Date1 BETWEEN #Start# AND #End# AND Date2 BETWEEN
#Start# AND #End# )
OR ( Date1 < #Start# AND Date2 > #End#) -
How to search for data on the web and return to jsp
I need to collect data from a web site and return that data to my jsp file. The page should consist of a web page in which the user search for available flights then I conect to easyjet automatically fill in the form and return the result from easyjet.com to my jsp file..Do anyone know how can I do this?? I need to use java for this and not cgi..I found also some JavaScripts that can perform the same thing..Thanks...
Hi,
are you able to change dynamically the operation.url = "assets/data/shopping.xml";?
i need to do that based on the users input.
Thanks in advance, -
How to search for data in active directory
if i have an administrator priviledge, how can i search for user's data if i know his username from active directory.
What form do you have the user's name in ?
ANTIPODES\alberteString searchFilter = "(&(objectClass=user)(samAccountName=alberte))";[email protected] searchFilter = "(&(objectClass=user)(userPrincipalName=[email protected]))";Albert EinsteinString searchFilter = (&(objectClass=user)(givenName=Albert)(sn=Einstein))";or using Ambiguous Name Resolution (anr)String searchFilter = "(&(objectClass=user)(anr=Albert Einstein))";or it's even clever enough to useString searchFilter = "(&(objectClass=user)(anr=Einstein Albert))"; -
How to search XML data from a HTTPMultiService and display the result on the Spark List
Hello all,
I am totally new to Flash Builder and Actionscript and hope someone might be able to help me out. I basically create a mobile app with a single view. The view has a TextInput as a search box and a search button. I conntected a Data/Service using a local XML file and bind the Data to a Spark List. Innitally the List will show nothing until the user enter the search term and hit the button. The List suppose to show the XML data that match the search term.
Now is my problem. I cannot make the List to show the data that match the search text. The List just shows ALL the data.
Here are my MXML code:
<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:shopping="services.shopping.*"
title="Search">
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
protected function button1_clickHandler(event:MouseEvent):void
navigator.popView();
protected function list_creationCompleteHandler(event:FlexEvent):void
getDataResult.token = shopping.getData();
protected function seach_clickHandler(event:MouseEvent):void
getDataResult.token = shopping.getSearchData(searchTxt.text);
]]>
</fx:Script>
<fx:Declarations>
<s:CallResponder id="getDataResult"/>
<shopping:Shopping id="shopping"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:actionContent>
<s:Button height="79" label="Back" click="button1_clickHandler(event)"/>
</s:actionContent>
<s:List id="list" left="0" right="0" top="111" bottom="0"
creationComplete="list_creationCompleteHandler(event)" labelField="english">
<s:AsyncListView list="{getDataResult.lastResult}"/>
</s:List>
<s:TextInput id="searchTxt" x="80" y="34" width="250" height="49" enabled="true"
prompt="search..."/>
<s:Button id="search" x="338" y="35" width="72" height="49" label="s"
click="seach_clickHandler(event)"/>
</s:View>
Here is the _Super_Shopping.as file:
* This is a generated class and is not intended for modification. To customize behavior
* of this service wrapper you may modify the generated sub-class of this class - Shopping.as.
package services.shopping
import com.adobe.fiber.core.model_internal;
import com.adobe.fiber.services.wrapper.HTTPServiceWrapper;
import com.adobe.serializers.xml.XMLSerializationFilter;
import mx.rpc.AbstractOperation;
import mx.rpc.AsyncToken;
import mx.rpc.http.HTTPMultiService;
import mx.rpc.http.Operation;
import valueObjects.Shop;
[ExcludeClass]
internal class _Super_Shopping extends com.adobe.fiber.services.wrapper.HTTPServiceWrapper
private static var serializer0:XMLSerializationFilter = new XMLSerializationFilter();
// Constructor
public function _Super_Shopping()
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService();
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "getData");
operation.url = "assets/data/shopping.xml";
operation.method = "GET";
operation.serializationFilter = serializer0;
operation.properties = new Object();
operation.properties["xPath"] = "/::shop";
operation.resultElementType = valueObjects.Shop;
operations.push(operation);
operation = new mx.rpc.http.Operation(null, "getSearchData");
operation.url = "assets/data/shopping.xml";
operation.method = "GET";
operation.resultFormat = "text";
argsArray = new Array("item");
operation.argumentNames = argsArray;
operation.properties = new Object();
operation.properties["xPath"] = "/::shop";
operation.resultElementType = valueObjects.Shop;
operations.push(operation);
_serviceControl.operationList = operations;
preInitializeService();
model_internal::initialize();
//init initialization routine here, child class to override
protected function preInitializeService():void
* This method is a generated wrapper used to call the 'getData' operation. It returns an mx.rpc.AsyncToken whose
* result property will be populated with the result of the operation when the server response is received.
* To use this result from MXML code, define a CallResponder component and assign its token property to this method's return value.
* You can then bind to CallResponder.lastResult or listen for the CallResponder.result or fault events.
* @see mx.rpc.AsyncToken
* @see mx.rpc.CallResponder
* @return an mx.rpc.AsyncToken whose result property will be populated with the result of the operation when the server response is received.
public function getData() : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getData");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send() ;
return _internal_token;
public function getSearchData(item:String) : mx.rpc.AsyncToken
var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getSearchData");
var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(item);
return _internal_token;
The getSearchData() supposed to return XML data that match the search text, but it doesn't. Can anyoen help?
Thank you!Hi,
are you able to change dynamically the operation.url = "assets/data/shopping.xml";?
i need to do that based on the users input.
Thanks in advance, -
How to search for Data elements...
Hai friends,
I have the 'short descriptions' of some fields and I need data elements relating to those short descriptions.
I searched using se12 transaction. But the result is not upto the mark. Is there any other way of searching..? If yes, please tell me.
Thank YouHi,
Go to Tcode se15 and expand ABAP Dictionary and then double click Data Elements, on the right hand side you will get Standard Selections, give ur description there and then press enter...
hope this will give you solution.
Regards,
Ramesh. -
How to search the data of a WLI Workflow Instance
Is there a way to do any of the following in WLI 70?
a) access the data stored in a workflow instance as filesystem files so awk can be run against them to find specific occurrences of xml data elements?
b) perform a search upon the data stored in a workflow instance to find specific occurrences of xml data elements?Hi Olivier,
Thanks for the reply.
I think using the File Control could work like you said if we could change the JPD, I also think some public API (perhaps an observer of some type) would work as you suggested.
However, this is one of our older prod apps (thankfully nearing retirement) and we really don't like to make changes unless we really really need to (few support resources are available, especially testers).
Also, and sorry if my initial post wasn't very clear about this, we want to search the past history of workflow instance data, not the new incoming data.
Any other ideas? -
How to search the data of a completed process?
Hello,
I want to know if it is possible and how can I search for the information of a completed process.
Best Regards
SUHere you go ...
http://help.sap.com/saphelp_nw72/helpdata/en/98/b872739db2469fb9dd945d2162fef2/frameset.htm
Regards,
Mahesh -
Hi,
i have create report using to table i have take search option in that report now i want to display report between two dates
How to put Between Date Quary in search option in where Clause .
My code is
select CRM_SALES_DEALs.id,
"CRM_SALES_CUSTOMERS"."CUSTOMER_NAME" as "CUSTOMER_NAME",
"CRM_SALES_SALESREPS"."REP_LAST_NAME"||', '||
"CRM_SALES_SALESREPS"."REP_FIRST_NAME" as "REP_NAME",
"CRM_SALES_DEALS"."DEAL_NAME" as "DEAL_NAME",
"CRM_SALES_DEALS"."EMAIL" as "EMAIL",
"CRM_SALES_DEALS"."DEAL_CLOSE_DATE" as "DEAL_CLOSE_DATE",
"CRM_SALES_DEALS"."DEAL_AMOUNT" as "DEAL_AMOUNT",
"CRM_SALES_DEALS"."DEAL_PROBABILITY" as "DEAL_PROBABILITY",
"CRM_SALES_DEAL_STATUS_CODES"."STATUS_CODE" as "STATUS_CODE" ,
"CRM_SALES_DEALS"."DATE_OF_QUARY" as "DATE_OF_QUARY",
"CRM_SALES_DEALS"."DEAL_SOURCE" as "DEAL_SOURCE",
"CRM_SALES_DEALS"."DEAL_AMOUNT" *
"CRM_SALES_DEALS"."DEAL_PROBABILITY" / 100 weighted_forecast,
(select count(*) from CRM_SALES_DEAL_products where deal_id = "CRM_SALES_DEALS".id) products,
nvl("CRM_SALES_DEALS".updated_on,"CRM_SALES_DEALS".created_on) last_changed,
t.territory_name,
CRM_SALES_DEALS.qtr, "CRM_SALES_DEALS"."CONTACT_NAME" as "CONTACT_NAME",
"CRM_SALES_DEALS"."ACTIVE_FLAG" as "ACTIVE_FLAG"
from
"CRM_SALES_SALESREPS",
"CRM_SALES_DEAL_STATUS_CODES" ,
"CRM_SALES_CUSTOMERS",
"CRM_SALES_DEALS",
CRM_SALES_territories t
where
CRM_SALES_customers.customer_territory_id = t.id(+) and
"CRM_SALES_DEALS"."CUSTOMER_ID"="CRM_SALES_CUSTOMERS"."ID"(+)
and "CRM_SALES_DEALS"."DEAL_STATUS_CODE_ID"="CRM_SALES_DEAL_STATUS_CODES"."ID"(+)
and "CRM_SALES_DEALS"."SALESREP_ID_01"="CRM_SALES_SALESREPS"."ID"(+) and "CRM_SALES_DEALS"."ACTIVE_FLAG" ='Y' and (:p1_find is null or instr(upper("CRM_SALES_CUSTOMERS"."CUSTOMER_NAME"),upper(:p1_find))>0 or instr(upper("CRM_SALES_DEALS"."DEAL_NAME"),upper(:p1_find))>0 or
instr(upper("CRM_SALES_SALESREPS"."REP_FIRST_NAME"||' '||"CRM_SALES_SALESREPS"."REP_LAST_NAME"),upper(:p1_find))>0)
and
(nvl(:P1_TERRITORY,0) = 0 or t.id= :P1_TERRITORY)
and
(nvl(:P1_ACCOUNT,0) = 0 or "CRM_SALES_CUSTOMERS".id = :P1_ACCOUNT)
and
(nvl(:P1_QUARTER,'0') = '0' or CRM_SALES_deals.qtr = :P1_QUARTER)
and
*("CRM_SALES_DEALS".created_on between :P1_CREATE_DATE and :P1_END_DATE ) >0 and* *Here I have put Quary*
instr(upper("CRM_SALES_DEALS"."CREATED_ON"),upper(nvl(:P1_CREATE_DATE,"CRM_SALES_DEALS"."CREATED_ON"))) > 0
and
nvl(DEAL_PROBABILITY,10) between nvl(:P1_MINIMUM_PROBABILITY,0) and nvl(:P1_MAXIMUM_PROBABILITY,100) AND
(nvl(:P1_LEAD_SOURCE,'0') = '0' or CRM_SALES_DEALS.DEAL_SOURCE = :P1_LEAD_SOURCE)Show me Error Command not Properly Ended
How can i search Between two date In Search option.
ThanksI'm guessing that this is Jay???
Please heed my numerous previous comments regarding formatting and those horrible full table aliases and upper case, double quoted names... Grrr...
Anyway, try this...
SELECT CRM_SALES_DEALs.id,
CRM_SALES_CUSTOMERS.CUSTOMER_NAME AS CUSTOMER_NAME,
CRM_SALES_SALESREPS.REP_LAST_NAME
|| ', '
|| CRM_SALES_SALESREPS.REP_FIRST_NAME
AS REP_NAME,
CRM_SALES_DEALS.DEAL_NAME AS DEAL_NAME,
CRM_SALES_DEALS.EMAIL AS EMAIL,
CRM_SALES_DEALS.DEAL_CLOSE_DATE AS DEAL_CLOSE_DATE,
CRM_SALES_DEALS.DEAL_AMOUNT AS DEAL_AMOUNT,
CRM_SALES_DEALS.DEAL_PROBABILITY AS DEAL_PROBABILITY,
CRM_SALES_DEAL_STATUS_CODES.STATUS_CODE AS STATUS_CODE,
CRM_SALES_DEALS.DATE_OF_QUARY AS DATE_OF_QUARY,
CRM_SALES_DEALS.DEAL_SOURCE AS DEAL_SOURCE,
CRM_SALES_DEALS.DEAL_AMOUNT * CRM_SALES_DEALS.DEAL_PROBABILITY / 100
weighted_forecast,
(SELECT COUNT ( * )
FROM CRM_SALES_DEAL_products
WHERE deal_id = CRM_SALES_DEALS.id)
products,
NVL (CRM_SALES_DEALS.updated_on, CRM_SALES_DEALS.created_on)
last_changed,
t.territory_name,
CRM_SALES_DEALS.qtr,
CRM_SALES_DEALS.CONTACT_NAME AS CONTACT_NAME,
CRM_SALES_DEALS.ACTIVE_FLAG AS ACTIVE_FLAG
FROM CRM_SALES_SALESREPS,
CRM_SALES_DEAL_STATUS_CODES,
CRM_SALES_CUSTOMERS,
CRM_SALES_DEALS,
CRM_SALES_territories t
WHERE CRM_SALES_customers.customer_territory_id = t.id(+)
AND CRM_SALES_DEALS.CUSTOMER_ID = CRM_SALES_CUSTOMERS.ID(+)
AND CRM_SALES_DEALS.DEAL_STATUS_CODE_ID =
CRM_SALES_DEAL_STATUS_CODES.ID(+)
AND CRM_SALES_DEALS.SALESREP_ID_01 = CRM_SALES_SALESREPS.ID(+)
AND CRM_SALES_DEALS.ACTIVE_FLAG = 'Y'
AND (:p1_find IS NULL
OR INSTR (UPPER (CRM_SALES_CUSTOMERS.CUSTOMER_NAME),
UPPER (:p1_find)) > 0
OR INSTR (UPPER (CRM_SALES_DEALS.DEAL_NAME), UPPER (:p1_find)) >
0
OR INSTR (
UPPER( CRM_SALES_SALESREPS.REP_FIRST_NAME
|| ' '
|| CRM_SALES_SALESREPS.REP_LAST_NAME),
UPPER (:p1_find)
) > 0)
AND (NVL (:P1_TERRITORY, 0) = 0 OR t.id = :P1_TERRITORY)
AND (NVL (:P1_ACCOUNT, 0) = 0
OR CRM_SALES_CUSTOMERS.id = :P1_ACCOUNT)
AND (NVL (:P1_QUARTER, '0') = '0'
OR CRM_SALES_deals.qtr = :P1_QUARTER)
AND CRM_SALES_DEALS.created_on BETWEEN :P1_CREATE_DATE
AND :P1_END_DATE
AND INSTR (
UPPER (CRM_SALES_DEALS.CREATED_ON),
UPPER (NVL (:P1_CREATE_DATE, CRM_SALES_DEALS.CREATED_ON))
) > 0
AND NVL (DEAL_PROBABILITY, 10) BETWEEN NVL (:P1_MINIMUM_PROBABILITY,
0)
AND NVL (
:P1_MAXIMUM_PROBABILITY,
100
AND (NVL (:P1_LEAD_SOURCE, '0') = '0'
OR CRM_SALES_DEALS.DEAL_SOURCE = :P1_LEAD_SOURCE)Cheers
Ben -
Query to search between two specific dates and time period
Hi,
Need a query to search between two particular dates and time period
Like i want to search table having one date field .
Suppose the date range is '01-JUL-06' and '01-AUG-06' and time frame
is 23:00:00 to 08:00:00
i.e i want to search between dates 01 july to 01 aug and also within the time frame i.e 23:00 to 08:00 hrs onlyThe general principle is
SELECT * FROM your_table
WHERE some_date BEWTEEN to_date('01-JUL-06') and to_date('01-AUG-06' )+0.99999
AND ( some_date <= trunc(some_date)+8/24
OR some_date >= trunc(some_date)+23/24 )
/Cheers, APC -
Hi,
May I know what's the best way to select between date? I just want to ask If this is the right way to search between dates using date formate 'mm/dd/yyy'.
This is my query,
SELECT TO_CHAR("PmntDate",'mm/dd/yyyy') FROM "OCHO" WHERE TO_CHAR("PmntDate",'mm/dd/yyyy') BETWEEN '04/27/2015' AND '04/27/2015';
BTW, the datatype of field is TIMESTAMP
ThanksEither you convero t the date to YYYYMMDD format and then apply the BETWEEN clause or do as below
select PERNR from PA0001
where
CURRENT_DATE between to_date(BEGDA) and to_date(ENDDA);
--where BEGDA and ENDDA in YYYYMMDD format
Sree -
Hi,
I have a fields start_date(Literal Date) and end date (Literal Date) in my MDM table.
Could any one give me a clue how to search values between these two dates from java program to this type of columns.
Waiting for reply.Hi,
Following is a snippet of code for searching a range on a date/time field in an MDM repository.
In the following code, the table we are searching on is called "Products", and has two fields: "Part Number" and "Update Date" which is the date field. We will search for all products with "Update Date" between 2006-1-1 and 2006-1-31. (Remember in Java that MONTHS are from 0-11, and NOT 1-12).
============= START OF CODE =================
// Create a ResultSetDefinition
ResultSetDefinition rsd = new ResultSetDefinition("Products");
rsd.AddField("Part Number");
rsd.AddField("Update Date");
// Create a Search object
Search search = new Search("Products");
FreeFormTableParameter fftp = search.GetParameters().NewFreeFormTableParameter("Products");
FreeFormParameterField ffpf = new FreeFormParameterField("Update Date");
FreeFormParameter ffp = new FreeFormParameter();
ffpf.Add(new DateTimeParameter(2006, 0, 1, 0, 0, 0, 0, FreeFormParameter.GreaterThanOrEqualToSearchType));
ffpf.Add(new DateTimeParameter(2006, 0, 31, 0, 0, 0, 0, FreeFormParameter.LessThanOrEqualToSearchType));
ffpf.SetSearchOperator(FreeFormParameterField.SEARCH_OPERATOR_AND);
fftp.Add(ffpf);
// Get the results using the search
A2iResultSet rs = catalog.GetResultSet(search, rsd, "Part Number", true, 0);
System.out.println("Num found = " + rs.GetRecordCount());
============= END OF CODE =================
Hope this helps,
Walter -
How to search data from a context node.
Hi Friends,
Thanks for ur help for previous problem . I am facing some other problem i.e how to
search data from a context node.
i have a context node :-
Car(main node) which consist of details, owners, engine and Brand as its sub node.
the value attibutes of difft nodes are:-
Car- category
Details- Mileage, Price, registration_no, miles_used
owner - name, phnno,addrs
Brand - main_brand, co_brand
Engine- Bhp,Rpm
Now i have to apply a search criteria on the basis of price, miles_used .
pls help to implement that .
Thanks & regards
Pravin jhaHi PRAVIN,
What I can understand from your problem is that, you have a list with various properties and you want to display them and search them in your WD App. If I am correct, use the following approach:
Instead of using "details, owners, engine and Brand" Nodes, use the attributes inside the parent node. i.e in the node Car, add all the attributes viz. Mileage, Price, registration_no, miles_used, name, phnno,addr etc.
Now you can create a table of this node "Car" and can easily search on the basis of any criteria.
I hope this solves your issue. If you are looking for something else, please revert, I'll be happy to help you.
Cheers!!!
Umang -
How do i deduct dates using formatted search with a query
Hi Experts,
I would like to know how to get the date difference using query and formatted search. Below are the details:
1. I have created 3 Header UDF's composed of 2 Date type fields and 1 Quantity field.
2. The first one is for the Original Date, the next one is for the Payment Date and the Last one is for the No. of Days Lapsed.
What I would like to do is automatically compute for the number of days from the original date to the payment date. What query syntax should i use to achieve this?
Thanks,
YvetteHi Yvette,
It should be something like;
DATEDIFF (day, T0.[createDate], T0.[closeDate] ) as 'Aging' This is just an example. You may add your udf's instead of dates.
Thanks,
Joseph
Edited by: Joseph Antony on Jul 2, 2010 1:53 PM
Maybe you are looking for
-
How can my wife and I share cloud with 2 different login's
How can my wife and I share cloud with 2 different login's
-
My Apple TV works great through the TV but I cannot receive audio to my home stereo. I am using a Radio Shack analog/digital converter, line out audio is connected to my stereo tape in. Please help
-
I have a flashfile called "start.swf" that loads other swf-files into a mc with the instancename "placeholder" by different buttons. In a file called "mprint.swf". I want a dynamic textfield (with the imprint information) to be loaded into placeholde
-
Airplay won't stop trying to connect and internal speakers don't work
Yesterday I was listening to music (not iTunes) through my headphones when all of a sudden the sound stopped working. At the same time, a window popped up asking me to enter the Airplay password of a device I did not recognize (I was in a public loc
-
Iso 8041 - frequency weighting filters
Hello, I've faced a problem with these weighting filters described in details in ISO 2631, 5349 and 8041. The problem was that I wanted to use them in LabVIEW Embedded Module for ARM Microcontrollers, however in this module there is no access to Soun