How to query a range of dates?

I have a tables containing holiday data such as the sites they visit and the dates they depart.
I need a query that only shows the holidays that depart in the June-2011. I have got it to work for specific dates e.g ='06-02-2011'.
But if i try and do more than one date e.g ='06-02-2011',06-15-2011'..or just June in general it doesnt work.
Is there a way to do this? I am using query builder by the way but am happy to use SQL commands if thats easier.
Thanks in advance!

No problemo.
You could also have done...
WHERE column >= '01-JUL-2010'
AND column <= '31-JUL-2010'Just for info!
Cheers
Ben

Similar Messages

  • How to load a range of data in Diadem?

    Hello; I have a set of Access DB containing analytic data of 5 jears. How can I import a range of data (eg. all year 2003 data)in Diadem for analysis?
    Thank's

    Thank's,
    but I couldn't choose explizit the time channel. Also I couldn't set a command like 'between 1.1.2003 and 31.12.2003'. Attached is an exemple of the dataset. The time channel is '50_DAT'.
    It would be nice to get an answer.
    Thank's Matthias
    Attachments:
    B0P2DAT8_50.MDB ‏400 KB

  • How to Query for last updated data in planning Cube?

    Hi,
    i want to see the last updated data with specific timestamp on one of our planning application Cube, IS it possible ?
    I have gone through application log and essbase server log but didn't get much information
    Can any one please let me know.
    Thx

    How was the data updated, if it was through planning then you can enabling data auditing and you should be able to then query the information.
    If it is was a data load then in EAS go the database, edit properties, modications, it should display data load information.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How to query the rdf format data?

    I am new in both rdf and BDB XML, and I have got some problems while using both. Now, I am eager for your help.
    I wrote a simple rdf file which can be validated in [http://www.w3.org/RDF/Validator].
    {color:#0000ff}&lt;?xml version="1.0"?&gt;
    &lt;rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:class="http://www.ict.ac.cn/e_learning#"&gt;
    &lt;rdf:Description rdf:about="Chinese"&gt;
    &lt;class:ID&gt;0000001&lt;/class:ID&gt;
    &lt;class:teacher&gt;Kongzi&lt;/class:teacher&gt;
    &lt;class:classroom&gt;101&lt;/class:classroom&gt;
    &lt;class:lesson&gt;0000000001&lt;/class:lesson&gt;
    &lt;class:year&gt;2007&lt;/class:year&gt;
    &lt;/rdf:Description&gt;
    &lt;rdf:Description rdf:about="Math"&gt;
    &lt;class:ID&gt;0000002&lt;/class:ID&gt;
    &lt;class:teacher&gt;Gauss&lt;/class:teacher&gt;
    &lt;class:classroom&gt;102&lt;/class:classroom&gt;
    &lt;class:lesson&gt;0000010001&lt;/class:lesson&gt;
    &lt;class:year&gt;2008&lt;/class:year&gt;
    &lt;/rdf:Description&gt;
    &lt;/rdf:RDF&gt;
    {color}
    I create a container, put the content listed above into the container as a document. But no matter what I want to query, for example, {color:#0000ff}"collection('learn')/rdf:RDF/rdf:Description[@rdf:about='Math']"{color}("learn" is the alias), does it return no results. But when I change the "{color:#0000ff}rdf:Description{color}" into whatever other words like "{color:#0000ff}rdf:aaa{color}", in both document and query expression, the results are right. My BDB XML version is 2.4.16.
    Could anybody help? Thank you very much!
    Edited by: user10795743 on 2009-2-2 下午11:29

    Hi,
    Just try to set namespace and alias explicitly. Maybe your namespace/alias is not set correctlly.
    I've use dbxml shell to test:
    1. Create container and document for test.
    dbxml> createcontainer learn.xml
    dbxml> addAlias learn
    Added alias: learn
    dbxml> putdocument doc1.xml '<?xml version="1.0"?>
    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:class="http://www.ict.ac.cn/e_learning#">
    <rdf:Description rdf:about="Chinese">
    <class:ID>0000001</class:ID>
    <class:teacher>Kongzi</class:teacher>
    <class:classroom>101</class:classroom>
    <class:lesson>0000000001</class:lesson>
    <class:year>2007</class:year>
    </rdf:Description>
    <rdf:Description rdf:about="Math">
    <class:ID>0000002</class:ID>
    <class:teacher>Gauss</class:teacher>
    <class:classroom>102</class:classroom>
    <class:lesson>0000010001</class:lesson>
    <class:year>2008</class:year>
    </rdf:Description>
    </rdf:RDF>'2. set namespace
    dbxml> setnamespace rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
    Binding rdf -> http://www.w3.org/1999/02/22-rdf-syntax-ns#
    dbxml> setnamespace class http://www.ict.ac.cn/e_learning#
    Binding class -> http://www.ict.ac.cn/e_learning#3. query
    dbxml> query 'collection("learn")/rdf:RDF/rdf:Description'
    2 objects returned for eager expression 'collection("learn")/rdf:RDF/rdf:Description'4; result
    dbxml> print
    <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="Chinese">
    <class:ID xmlns:class="http://www.ict.ac.cn/e_learning#">0000001</class:ID>
    <class:teacher xmlns:class="http://www.ict.ac.cn/e_learning#">Kongzi</class:teacher>
    <class:classroom xmlns:class="http://www.ict.ac.cn/e_learning#">101</class:classroom>
    <class:lesson xmlns:class="http://www.ict.ac.cn/e_learning#">0000000001</class:lesson>
    <class:year xmlns:class="http://www.ict.ac.cn/e_learning#">2007</class:year>
    </rdf:Description>
    <rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="Math">
    <class:ID xmlns:class="http://www.ict.ac.cn/e_learning#">0000002</class:ID>
    <class:teacher xmlns:class="http://www.ict.ac.cn/e_learning#">Gauss</class:teacher>
    <class:classroom xmlns:class="http://www.ict.ac.cn/e_learning#">102</class:classroom>
    <class:lesson xmlns:class="http://www.ict.ac.cn/e_learning#">0000010001</class:lesson>
    <class:year xmlns:class="http://www.ict.ac.cn/e_learning#">2008</class:year>
    </rdf:Description>

  • Query a column of data through IFS?

    We need to know how to query a column of data through iFS (if this is even possible). For instance, in our database, there is a table ODM_TEST with a column RELEVANT_LOCATION. To get the unique values, we'd just query in SQL:
    SELECT DISTINCT(relevant_location) FROM odm_test
    WHERE relevant_location is not null
    ORDER BY relevant_location
    Is there a way of doing that through the iFS API?
    null

    You can use Selector or Search API of iFS to do the query. Selector is used for simple queries and Search is used for complex queries.
    For example, page 8-9 of Developer Reference of iFS release 9.0.1 has an example of how to use a selector to do the following query -
    SELECT * FROM ATTRIBUTE WHERE DATATYPE = BOOLEAN ORDER BY NAME DESC, REQUIRED
    You can also fine examples of how to use Search classes in the same chapter.
    I hope it helps.
    null

  • How to query a reporting data source using ranges?

    HI guys,
    I was looking at the BPM Reporting API available and more specifically the way one can query and search for data, stored in a reporting Data Source.
    I can see that there are methods in the API, allowing for a search by concrete field name and value, triggering data with exact or partial match of the specified value (query() and search() methods of ReportingDataSourceManager interface).
    However, we need to query using ranges of numbers or dates. Can someone advice how this can be done without creating a method of our own processing the whole data set?
    For example, how I can retrieve all data stored since yesterday? am I missing something in the BPM Reporting API? Any suggestions will be much appreciated.
    Kind Regards,
    Mariya Stancheva

    i think you have to do it by your own code.

  • Query based on a date range

    I want to query based on a date range. I wrote the following EJB QL:
    "select object(a) from ActionItems as a where a.dueDate
    between ?1 and ?2"
    But when I deployed the application to Oracle's EJB server, I got the following error:
    Auto-deploying biogen.jar (No previous deployment found)... Invalid type for expression (a.dueDate BETWEEN ?1 AND ?2)
    EJB QL statement : 'select object(a) from ActionItems as a where a.dueDate between ?1 and ?2'
    EJB QL method : public abstract java.util.Collection ActionItemsLocalHome.findByDueDateRange(java.sql.Date,java.sql.Date) throws javax.ejb.FinderException
    at com.sun.ejb.ejbql.parser.EjbQLParser.parse EjbQLParser.java:218)
    at com.sun.ejb.ejbql.EjbQLDriver.parse(EjbQLDriver.java:86)
    at com.sun.ejb.sqlgen.SQLGenerator.generateSQLForEjbQLQueries(SQLGenerator.java:704)
    It works fine for a number range, but does not work for a date range.
    Any one has an idea on how to write a correct EJB QL for a query based on date range?
    Thanks.
    Jingzhi

    Re-posted. Please help!

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • How to check the sales order that has been PGI from a range of dates.

    Hi SAP Gurus,
    I have a query on how can I check the sales order that has been PGI from a range of dates in SAP?
    Thanks,
    Madelyn

    Dear Madelyn
    Go to VA05, give the date range and execute.  List of sale orders will be generated.  There you can see a tab "Status"  in which, the status would be like
    -  Not delivered
    -  Partially delivered
    So based on this, you can decide whether the order is still open or completed.
    thanks
    G. Lakshmipathi

  • How to make default values for date range?

    Dear Colleagues,
    My customer is asking for a default value for a date range prompt.
    The FromDate should contain the 1st of current month, the ToDate should contain current date.
    Does anyone have any idea how I can meet this demand?
    Regards Silje

    Hi Federico,
    Thank you for the answer, we are back to the challenge after summer vacations!
    I have created a variable in the universe: SELECT current date  as TODAY FROM SYSIBM.SYSDUMMY1. I Called it TODAY.
    Then I created a prompt in the query based on Date. In Prompt Properties I tagged for "Set Default Values" and I typed in TODAY.
    When I try to run the query I get the error message:  The date for the query filter based on 'Date' is invalid (WIS10704).
    What is wrong? What do I have to do differently?
    My goal is to have a default for Date that gives me today..
    Regards Silje

  • In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    In oracle rac, If user query a select query and in processing data is fetched but in the duration of fetching the particular node is evicted then how failover to another node internally?

    The query is re-issued as a flashback query and the client process can continue to fetch from the cursor. This is described in the Net Services Administrators Guide, the section on Transparent Application Failover.

  • How to query opening balance for all customer or Vendor for an speci. date

    Hi,
    How to query opening balance for all customer or Vendor for an specific date?
    Example:
    put any date and query will show all customer/ Vendor  that date opening/current balance.
    Regards,
    Mizan

    Hi mizan700 ,
    Try this
    SELECT T0.[DocNum] As 'Doc No.', T0.[CardCode] As 'Customer Code',
    T0.[CardName] As 'Customer Name',(T0.[DocTotal]-T0.[PaidSys]) As 'O/S Balance'
    FROM OINV T0 INNER JOIN OCRD T1 ON T0.CardCode = T1.CardCode
    INNER JOIN OCRG T2 on T1.GroupCode = T2.GroupCode
    INNER JOIN INV1 T3 ON T0.DocEntry = T3.DocEntry
    WHERE T0.[DocStatus] ='O'
    AND
    (T0.[DocDate] >='[%0]' AND T0.[DocDate] <='[%1]')
    Regards:
    Balaji.S

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • How do I change the default "date range" when searching in the forums?

    Hi all,
    New to the SAP forums...  How do I change the default date range when searching in the forums?  I am getting a 90 day search by default.  Then I have to change it and search again.  Argh!
    Thanks,
    --Amy Smith

    Hi Amy,
    the default date range cannot be changed by users. It is defined system-wide.
    Regards,
    Michael

  • How to create user function in Data Functions in Query Designer?

    Could someone tell me how to create user function in Data Functions in Query Designer?
    I mean function like "NDIV0" in Data Functions.
    SAP BW 3.x.
    Query Designer (SAP BW 3.x)

    Hi check the following URL, it gives how to add in Formulas in formula Builder, not in DataFunctions.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f095592f-42f7-2a10-6ab1-c836a559b48f
    Thanks
    Reddy

Maybe you are looking for