Selection of records for today only?

In my view, this should be easy, but everything I try is back to launch no results.

Basically I have an existing query that uses an outer join to bring 2 tables together (this is for a very basic tracking site).

Without the clause of "WHERE to", it performs exactly as I had hoped.  However, I need to be able to refine the results of the current day only (and perhaps other beaches of dates in the near future).

The end result, I'm looking for is a list of sites and the unique visitors for each.  Yet once, it works fine when I run it without narrowing down for today only.  The field 'eventdt' on the MySQL server is a datetime type.

< name cfquery = "getsites" datasource = "#datasource #" >
SELECT s.id, s.sitename, count (DISTINCT t.uuid) t_cnt, t.eventdt, t.sitename AS site
S SITE
LEFT JOIN followed t
ON s.sitename = t.sitename
WHERE t.eventdt = #CreateODBCDate (now ()) #.
GROUP BY s.sitename
ORDER BY s.sitename ASC
< / cfquery >

Thank you for the pointers :-)

Today = createdate (year (now ()), month (now (), day (now ()));)

tomorrow = dateadd ("d", 1, today);

in your query

where eventdt > = today

and eventdt<>

With the syntax appropriate of course.

Tags: ColdFusion

Similar Questions

  • Select a record for each Member of the Group

    Hello
    will have a table where in I'll take data for so many members of the group. I need to retrieve data for a particular group whose number of rows of data may be more in number (but I don't want only one row of data for each Member of the Group)

    Here is the query to retrieve all rows of data
    select RI.RESOURCE_NAME,TR.MSISDN,TR.ADDRESS1_GOOGLE, TR.MSG_DATE_INFO, FROM TRACKING_REPORT TR, RESOURCE_INFO RI 
    WHERE TR.MSISDN IN (SELECT MSISDN FROM RESOURCE_INFO WHERE GROUP_ID ='1' AND COM_ID=2 ) AND RI.MSISDN=TR.MSISDN 
     order by MSG_DATE_INFO
    This query result is...
    >
    DDD 12345 13 March 10 19:43:03
    EEE 54321 Tamilnadu, India 13 March 10 19:39:48
    DDD 12345 13 March 10 19:32:58
    EEE 54321 Tamilnadu, India 13 March 10 19:30:07
    DDD 12345 13 March 10 19:23:08
    EEE 54321 Tamilnadu, India 13 March 10 19:20:14
    FFF 98765 March 13 10 19:19:22
    DDD 12345 13 March 10 19:13:01
    EEE 54321 Tamilnadu, India 13 March 10 19:09:50
    DDD 12345 13 March 10 19:02:56
    EEE 54321 tn, ind March 13, 10 18:59:49
    DDD 12345 13 March 10 18:53:08
    EEE 54321 tn, ind March 13, 10 18:49:50
    DDD 12345 13 March 10 18:42:56
    EEE 54321 tn, ind March 13, 10 18:39:50
    DDD 12345 13 March 10 18:33
    EEE 54321 tn, ind March 13, 10 18:29:50
    DDD 12345 13 March 10 18:22:54
    EEE 54321 tn, ind March 13, 10 18:19:50
    DDD 12345 13 March 10 18:12:56
    EEE 54321 tn, ind March 13, 10 18:09:50
    DDD 12345 13 March 10 18:02:54
    EEE 54321 tn, ind March 13, 10 18:00:02
    FFF 98765 Tamilnadu, India March 13, 10 17:59:26
    FFF 98765 Tamilnadu, India March 13, 10 17:54:26
    DDD 12345 13 March 10 17:52:56
    EEE 54321 tn, ind March 13, 10 17:49:50
    FFF 98765 Tamilnadu, India March 13, 10 17:49:25
    FFF 98765 Tamilnadu, India March 13, 10 17:44:26
    DDD 12345 13 March 10 17:42:56

    >

    This output, I only want a new album for each member(ddd,eee,fff). That is to say
    >
    DDD 12345 13 March 10 19:43:03
    EEE 54321 Tamilnadu, India 13 March 10 19:39:48
    FFF 98765 March 13 10 19:19:22
    >

    How to change the query to do this...?

    Ok. I looked more carefully at your sample and it looks like you are looking for:

    SELECT  RI.RESOURCE_NAME,
            TR.MSISDN,
            MAX(TR.ADDRESS1_GOOGLE) KEEP(DENSE_RANK LAST ORDER BY TR.MSG_DATE_INFO),
            MAX(TR.MSG_DATE_INFO)
      FROM  TRACKING_REPORT TR,
            RESOURCE_INFO RI
      WHERE TR.MSISDN IN (
                          SELECT  MSISDN
                            FROM  RESOURCE_INFO
                            WHERE GROUP_ID ='1'
                              AND COM_ID=2
                         )
        AND RI.MSISDN = TR.MSISDN
      GROUP BY  RI.RESOURCE_NAME,
                TR.MSISDN
    / 
    

    SY.

  • Keep records for read-only reset

    I uploaded a few photos from my iPhone using the cloud and kept that find whatever program I opened in, the computer would not save changes as it said that the file or folder is read-only.  I checked the file by clicking on properties and ensure that the read-only box has been disabled.  Then, I checked the file do the same thing and found that the folder itself has been set to ReadOnly.  I then unchecked that hit 'apply' and then returned to the folder for editing photos, but it's the same thing.  Then, I went to the propeorties folder and found he had turned to read-only.  I thought that reading only may be applied to a higher level, namely my pictures or My Documents, which he was, if I disabled and it is simply coming back again!  I was wondering if there was a way to fix this or if there is a higher level than I can uncheck the read only options for if that's what is behind each photo be read-only.

    No. I thought maybe iCloud still had the file to open.

    You can check the permissions to make sure that you have write access to the files.

    I would like to use Process Monitor to get more information about what exactly is happenning. But this produced a lot of data and needs a degree of knowledge of the functioning of WIndows.

    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645

    If you decide to try this, there is an introduction to use it here:

    Windows Sysinternals Primer: Process Explorer, Process Monitor and more. Tech· Ed 2010 North America | Channel 9

  • record selector don't work for the specific selection of records

    Hello

    I have a problem with the record selector in the spotlight.

    I want to select specific record, but when I select the control in the record are not in the selected record tab!

    the dataservice.json and endecaBrowserService.json files are correctly set up I think. I compare it with the app to Discover, but I do not want would be the question! not that the dynamic selection of records are working properly

    endecaBrowserService.json

    {

    "host': 'W177."

    "port": "15101."

    "recSpecProp": "Product_SKU",

    "recAggregationKey": "Endeca_Rollup_Id",

    "recFilter",:

    "recImgUrlProp": "URL_Thumbnail1",

    'recDisplayProps': ['brand', 'Category_EN', 'Product_SKU'],

    "textSearchKey": "interface_EN",

    'textSearchMatchMode': 'ALLPARTIAL '.

    }

    DataService. JSON

    {

    "jcr:primaryType': ' short: unstructured."

    "host': 'W177."

    "port": "15101."

    "recordSpecName": "Product_SKU",

    "aggregationKey": "Endeca_Rollup_Id",

    «recordFilter ": «,»

    'wildcardSearchEnabled': false,

    "recordNameField": "product_name_en",

    "fields": {"Brand": "', 'Category_EN': '',' Product_SKU'": ""}

    }

    any idea

    Thank you

    What is the record specification for records that fail?  For example, I found that the editor will fail if the record ID have spaces. That is to say 'Id1 Id2'.  Our resolution after conferring with support is to add an underscore 'Id1_Id2 '.

  • I need a query that selects the amount of records for each day of a table.

    I need a query that selects the amount of records for each day of a table.
    For example, the result would be:

    1 14 date
    Date 2-3

    etc.

    Any ideas?

    Sort:

    SELECT count ([IDCommentaire]), convert (varchar, dateAdded, 112)

    OF COMMENTSgroup by convert (varchar, dateAdded, 112)

  • How to select a record in one table to manipulate data in a database?

    Hello community,

    Using 32-bit Labview 2015.

    I created a user interface that runs a query and retrieves my table from a sql database.

    I want to be able to manage only one record at a time by selecting the record in my table and then manipulate the data according to the needs.

    Whenever the user runs a query, I want as the first record in the table to be selected / highlighted.

    I want an indicator that is currently active.

    Then a click of a button, to be able to scroll the actively selected record.

    Once I have the selected record, I want a way to write a query to edit or delete the record.

    Is attached a photo of my query to select all of my table and connect data in my table (results).

    Attached a photo of my painting showing the timeline of my sql database.

    What is the best way to go on a record selection in a table and the modification of data with a query?

    Any help would be greatly appreciated.

    Thank you

    I guess that's not a table, but multi-column listbox.

    Right click, select--> highlight whole line selection Mode

    The value of the multicolumn listbox is the row index - you can write a local variable to highlight the line, the event structure to handle the user clicking on, etc.

    If you enable the property editable ListBox cells, you can allow users to edit the items of the listbox.

    If you want to get the data in row, you hint REF table and work with the array of strings in row - convert it to cluster, etc..

    I don't know, what type of data, it is, how you structure the database looks like, I don't even know if you use the wrapper to work with the database, I can't write queries for you.

    Something like Update Tablica Set Serial = '5' where ID = '22';

  • Difference in the number of records for the same date - 11 GR 2

    Guy - 11 GR on Windows2005 2, 64-bit.

    BILLING_RECORD_KPN_ESP - is a monthly partitioned table.
    BILLING_RECORD_IDX #DATE - is a local index on "charge_date" in the table above.

    SQL > select / * + index (BILLING_RECORD_KPN_ESP BILLING_RECORD_IDX #DATE) * /.
    2 (trunc (CHARGE_DATE)) CHARGE_DATE;
    3 count (1) Record_count
    4. IN "RATOR_CDR". "" BILLING_RECORD_KPN_ESP ".
    where the 5 CHARGE_DATE = January 20, 2013.
    Group 6 by trunc (CHARGE_DATE)
    5 m

    CHARGE_DATE RECORD_COUNT
    ------------------ ------------
    2401 20 January 13-> > some records here.

    -> > Here I can see only '2041' records for Jan/20. But in the query below, it shows "192610" for the same date.

    Why is this difference in the number of records?

    SQL > select / * + index (BILLING_RECORD_KPN_ESP BILLING_RECORD_IDX #DATE) * /.
    (trunc (CHARGE_DATE)) CHARGE_DATE,
    2 count (1) Record_count
    3. FOR "RATOR_CDR." "" BILLING_RECORD_KPN_ESP ".
    "4 where CHARGE_DATE > 20 January 2013."
    Group of 5 by trunc (CHARGE_DATE)
    6 order by trunc (CHARGE_DATE)
    5 m

    CHARGE_DATE RECORD_COUNT
    ------------------ ------------
    192610 20 January 13-> > more records here
    JANUARY 21, 13 463067
    JANUARY 22, 13 520041
    23 JANUARY 13 451212
    JANUARY 24, 13 463273
    JANUARY 25, 13 403276
    JANUARY 26, 13 112077
    27 JANUARY 13 10478
    28 JANUARY 13 39158

    Thank you!

    Because in the second example you also select rows that have a nonzero component.

    The first example selects only rows that are 00:00:00

    (by the way, you should ask questions like this in the forum SQL)

  • Selection of records based on the flag

    Hi all

    I have records as follows:

    Program name Effective_Date Valid_Flag
    N 10/02/2012 ABCD
    N 14/02/2012 ABCD
    ABCD 20/02/2012 Y
    N 01/03/2012 ABCD
    N 10/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    N 26/03/2012 ABCD
    N 27/03/2012 ABCD
    N 28/03/2012 ABCD
    N 29/03/2012 ABCD
    ABCD 25/04/2012 Y



    I have to write a select statement to keep the first record and then only pull records when the Valid_Flag has changed. The result set should be as below.

    Program name Effective_Date Valid_Flag
    ABCD 10/02/2012 N - I kept the first record
    20/02/2012 ABCD is - Valid_Flag chages to a Y for the first time and so on.
    N 01/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    ABCD 25/04/2012 Y

    If there is no change in the flag, I don't have to draw from this record. Please help with suggestions of SQL. Thanks for your time and your help.

    ssk1974 wrote:
    Hi all

    I have records as follows:

    Program name Effective_Date Valid_Flag
    N 10/02/2012 ABCD
    N 14/02/2012 ABCD
    ABCD 20/02/2012 Y
    N 01/03/2012 ABCD
    N 10/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    N 26/03/2012 ABCD
    N 27/03/2012 ABCD
    N 28/03/2012 ABCD
    N 29/03/2012 ABCD
    ABCD 25/04/2012 Y

    I have to write a select statement to keep the first record and then only pull records when the Valid_Flag has changed. The result set should be as below.

    Program name Effective_Date Valid_Flag
    ABCD 10/02/2012 N - I kept the first record
    20/02/2012 ABCD is - Valid_Flag chages to a Y for the first time and so on.
    N 01/03/2012 ABCD
    ABCD 14/03/2012 Y
    N 25/03/2012 ABCD
    ABCD 25/04/2012 Y

    If there is no change in the flag, I don't have to draw from this record. Please help with suggestions of SQL. Thanks for your time and your help.

    In the future, it would be nice if you could provide the sample data as below, I created.

    ME_XE?with data as
      2  (
      3     select 'ABCD' as col1, to_date('2/10/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      4     select 'ABCD' as col1, to_date('2/14/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      5     select 'ABCD' as col1, to_date('2/20/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual union all
      6     select 'ABCD' as col1, to_date('3/01/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      7     select 'ABCD' as col1, to_date('3/10/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
      8     select 'ABCD' as col1, to_date('3/14/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual union all
      9     select 'ABCD' as col1, to_date('3/25/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     10     select 'ABCD' as col1, to_date('3/26/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     11     select 'ABCD' as col1, to_date('3/27/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     12     select 'ABCD' as col1, to_date('3/28/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     13     select 'ABCD' as col1, to_date('3/29/2012', 'mm/dd/yyyy')       as col2, 'N' as col3    from dual union all
     14     select 'ABCD' as col1, to_date('4/25/2012', 'mm/dd/yyyy')       as col2, 'Y' as col3    from dual
     15  )
     16  select *
     17  from
     18  (
     19     select
     20             col1, col2, col3,
     21             lag(col3) over (partition by col1 order by col2 asc) as last_flag
     22     from data
     23  )
     24  where last_flag    != col3
     25  or    last_flag    is null;
    
    COL1         COL2                       COL LAS
    ------------ -------------------------- --- ---
    ABCD         10-FEB-2012 12 00:00       N
    ABCD         20-FEB-2012 12 00:00       Y   N
    ABCD         01-MAR-2012 12 00:00       N   Y
    ABCD         14-MAR-2012 12 00:00       Y   N
    ABCD         25-MAR-2012 12 00:00       N   Y
    ABCD         25-APR-2012 12 00:00       Y   N
    
    6 rows selected.
    
    Elapsed: 00:00:00.08
    ME_XE?
    

    See you soon,.

  • How to select priority records

    Hi gurus,

    Here's the scenario of my problem. Records can be present/absent both in the table as follows.
    ELEMENT ID            ELEMENT DETAILS                    SOURCE  
    
    167               Some Details from S1-1          S1
    167               Some Details from S1-2          S1
    167               Some Details from S1-3          S1
    
    
    167               Some Details from S2-1          S2
    167               Some Details from S2-2          S2
    167               Some Details from S2-3          S2
    
    167               Some Details from S3-1          S3
    167               Some Details from S3-2          S3
    167               Some Details from S3-3          S3
    
                    OR records can be present as follows
    
    ELEMENT ID            ELEMENT DETAILS                    SOURCE  
    
    
    167               Some Details from S2-1          S2
    167               Some Details from S2-2          S2
    167               Some Details from S2-3          S2
    
    167               Some Details from S3-1          S3
    167               Some Details from S3-2          S3
    167               Some Details from S3-3          S3
    
                 OR  records can be present as follows
    
    ELEMENT ID            ELEMENT DETAILS                    SOURCE  
    
    167               Some Details from S1-1          S1
    167               Some Details from S1-2          S1
    167               Some Details from S1-3          S1
    
    
    
    167               Some Details from S3-1          S3
    167               Some Details from S3-2          S3
    167               Some Details from S3-3          S3
    
    and so on ...
    The result I want

    If all the RECORDS in sources (S1, S2, S3) are present and to SELECT only data source S1
    IF S2 and S3 RECORDS present and then SELECT only data S2.
    IF S3 RECORDS present data and then SELECT S3
    IF S1 and S3 RECORDS present data only SELECT S1
    IF S1 and S2 RECORDS then present S1 only SELECT data

    for example, S1 is on the highest priority, as appropriate and then S2 and S3 last.

    How to write a select based on above logic.

    Structure table data and the sample are less than
    create table element_priority(element_id number,element_details varchar2(100),source varchar2(100) )      
           
    insert into element_priority
    select * from (
    WITH T1 AS(
       SELECT    167, 'Some Details from S1-1',  'S1' from dual
       union
       SELECT    167, 'Some  Details from S1-2',  'S1' from dual
       union
       SELECT    167, 'Some Details from S1-3',  'S1' from dual
       union
       SELECT    167, 'Some Details from S2-1',   'S2' from dual
       union
       SELECT    167, 'Some Details from S2-2',   'S2' from dual
       union
       SELECT    167, 'Some Details from S2-3',   'S2' from dual
       union
        SELECT    167, 'Some Details from S3-1',   'S3' from dual
       union
       SELECT    167, 'Some Details from S3-2',   'S3' from dual
       union
       SELECT    167, 'Some Details from S3-3',   'S3' from dual
       )
       select * from   t1
    )
    Any help would be very appreciated

    Thanks in advance

    Use an analytic RANK(), DENSE_RANK() as ROW_NUMBER() according to what is required - perhaps DENSE_RANK or RANK what you have said and the possibility of having several #1 rankings in the same partition.

    Not sure if the precise logic is clear, but something like this:

    SQL> WITH T1(element_id, element_details, source) AS(
      2     SELECT    167, 'Some Details from S1-1',  'S1' from dual
      3     union
      4     SELECT    167, 'Some  Details from S1-2',  'S1' from dual
      5     union
      6     SELECT    167, 'Some Details from S1-3',  'S1' from dual
      7     union
      8     SELECT    167, 'Some Details from S2-1',   'S2' from dual
      9     union
     10     SELECT    167, 'Some Details from S2-2',   'S2' from dual
     11     union
     12     SELECT    167, 'Some Details from S2-3',   'S2' from dual
     13     union
     14      SELECT    167, 'Some Details from S3-1',   'S3' from dual
     15     union
     16     SELECT    167, 'Some Details from S3-2',   'S3' from dual
     17     union
     18     SELECT    167, 'Some Details from S3-3',   'S3' from dual
     19     )
     20  select element_id
     21  ,      element_details
     22  ,      source
     23  from   (select element_id
     24          ,      element_details
     25          ,      source
     26          ,      dense_rank() over (partition by element_id
     27                                    order by decode(source, 'S1',1,'S2',2,'S3',3)) rn            
    
     28          from   t1)
     29  where  rn = 1;
    
    ELEMENT_ID ELEMENT_DETAILS         SO
    ---------- ----------------------- --
           167 Some  Details from S1-2 S1
           167 Some Details from S1-1  S1
           167 Some Details from S1-3  S1
    
  • By selecting certain records by using the check box

    Hello

    I have a similar problem mentioned in this thread Re: select specific records using the checkbox I got if I have only one primary key value in the work table. I don't know how to handle it when I have several primary keys of the table I want to use for filtering?

    Thank you.

    Hello

    You can use rowid
    First report

    SELECT APEX_ITEM.CHECKBOX(1,e.rowid) chk,
    e.*
    FROM emp e
    

    Use even submit after processes.
    And target page report

    SELECT e.*
    FROM emp e
    WHERE EXISTS(
    SELECT 1
    FROM apex_collections c
    WHERE c.collection_name = 'P46COL'
    AND c.c001 = e.rowid)
    

    Kind regards
    Jari

    Published by: jarola on October 14, 2010 10:50

  • Firefox for Android only displays the desktop version of gmail rather than mobile.

    Android only question.

    I prefer to access gmail via a browser rather than the gmail app. Tests of other browsers on Android (Chrome and Dolphin) I see that they display a mobile-specific version of the gmail Web site.

    Firefox for Android only displays the version of office on my Nexus 7 (5.1 runs Android 2012) - and therefore more difficult to read and use. Any help or ideas would be greatly appreciated.

    Thank you

    Pinellas Chuck

    Well, Yes, it's that Word annoying Tablet.

    What I'm going to describe is difficult to type, so I hope that you can open this page on your tablet.

    Select (0) and copy the following text on your Tablet if possible to avoid the excesses of type:

    general.useragent.override.mail.google.com Android; Tablet;#Android; Mobile;
    

    The forum linkifies this first part, but it is not supposed to be a link.

    (1) open a new tab to Subject: config (type about: config the Awesomebar and hit the arrow go or tap Enter).

    You can bookmark it for easy future access.

    (2) in the search box, type agen and make a pause while Firefox filter list

    (3) scroll down to the bottom and look for a preference named general.useragent.site_specific_overrides and confirm that it has its default value true. If it is set to false, press the reset button for it back to true.

    (4) scroll back up and press the big button "+" to the left of the search box to add a new parameter

    (A) the name of the preference must be general.useragent.override.google. com (for all Google sites) general.useragent.override.mail.google. com (for Gmail only)

    If you type this, beware of the correction automatic insertion of spaces and be sure to remove those.

    If paste, remove the part after that.

    (B) on the right side, type Boolean and in the popup, change it to a String

    (C) the value of the preference should be Android; Tablet; #Android; Mobile; -in other words, substituting Mobile for Tablet.

    If you type, pay attention to the excess spaces.

    If gluing, remove the preference name and extra space before this part.

    (D) then click on create

    If you open https://mail.google.com/ must now use the mobile layout.

    Success?

    Edit: To clarify the name of preference options.

  • I would like to know where to find a friend app has been installed on my phone and who else is listed on it? I would love the history of this app on my phone for today's date, please.

    I would like to know where to find a friend app has been installed on my phone and who else is listed on it? I would love the history of this app on my phone for today's date, please. I changed my phone a couple of times, because the application was initially installed, but I can't work when it has been installed or that has first been listed on it... where I'd get that information from? I do my back ups on my laptop that uses OS X El Capitan Version 10.11.4 on iTunes. Thank you.

    Locate the app in iTunes > window Apps, select it, and press Cmd + I to get info. The file tab should show which account it was acquired on and when. Another I don't think that there is no history, that you can get. All you can see is a current list of those you follow and you allowed to follow you.

    TT2

  • Prevention of ListView, select the element for multi select

    How do you keep a user to select specific items during a statement select multi. You can use the MultiSelectHandler to do?

    I have essentially two types of elements. Setting caching and QUERIES.  When the user performs a Multi Select on a cached item... I want only their selection to other cached items.  Even if the user is running a Multi Select statement on an item not cached... I want only their selection of other items not cached.

    Is anyway to do this?  Been Googling for half an hour and can't find that everything about this use case.

    Since I use an element of custom list, I went to this subject a little differently. My CustomListItem implements a ListItemListener. I've implemented the select method as such.

    void CustomStandardListItem::select(bool select) {
        bb::cascades::ListItemListener* lil = static_cast(m_sli);
        bb::cascades::ListView * view = qobject_cast(this->parent());
    
        if (view->multiSelectHandler()->isActive()) {
            bool isCached = view->property("isMultiSelectTypeCached").toBool();
    
            if (m_cachedImageView->isVisible() && isCached) { // is cached.. allow selection of other cached objects only
                lil->select(select);
            }
            else if (!m_cachedImageView->isVisible() && !isCached) { // is not cached.. allow selection other cached objects only
                lil->select(select);
            }
        }
        else {
            lil->select(select);
        }
    }
    

    The dynamic property 'isMultiSelectTypeCached' is just a bool on ListView value that gets defined the type of ListItemComponent. It could have just as well been the type of ListItemComponent.

  • PersistentStore, selectively loading records in memory possible?

    Hello

    I need to store images on the disk, I tried to use RMS but to see that the authorized maximum disk space is 64 KB.

    So now, I'm trying to store these images using the RIM API "PersistentStore." I'm trying to use it as a database because I can't store all images in memory at a time. I want to leave a few images on the disc, draw some in memory when needed.

    The example in the docs show an example where a vector is created, restaurant names (strings) are added to this vector, the vector is committed to the persistent store for you. I don't know if it helps me well because it implies that the store everything is kept in memory in the vector. I want to selectively load the images, not all those that I have stored on the disk.

    Is this possible? I read wrong?

    With the RMS system you could open the store and browse at least disc records before choosing to load in memory.

    That's what I read:

    http://NA.BlackBerry.com/eng/deliverables/647/BlackBerry_Java_Development_Environment_Development_Gu...

    Thank you

    Your application can use the FileConnections API and can have settings where the user can select the destination for the saved files.

    You can check by program this memory card and offer to record on SD card.

    If there is no present SD card - save the files to the internal memory, but keep an eye on the free internal memory volume.

  • SQL query to retrieve a single record for each employee of the following table?

    Hi all

    Help me on the writing of SQL query to retrieve a single record for each employee of the following table? preferably a standard SQL.

    CREATE TABLE xxc_contact)

    empnum NUMBER,

    alternatecontact VARCHAR2 (100),

    relationship VARCHAR2 (10),

    phtype VARCHAR2 (10),

    Phone NUMBER

    );

    insert into xxc_contact values (123456, 'Rick Grimes', 'SP', 'Cell', 9999999999)

    insert into xxc_contact values (123456, 'Rick Grimes', 'SP', 'Work', 8888888888)

    insert into xxc_contact values (123457, 'Daryl Dixon', 'EN', 'Work', 7777777777)

    insert into xxc_contact values (123457, 'Daryl Dixon', 'EN', 'Home', 3333333333)

    insert into xxc_contact values (123456, 'Maggie Greene', 'CH', 'Cell', 9999999999)

    insert into xxc_contact values (123456, 'Maggie Greene', 'CH', 'Home', 9999999999)

    expected result:

    EmpNum AlternateContact Relationship PhType Phone       

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    Thanks in advance.

    994122 wrote:

    Thank you all, that I got a result

    http://www.orafaq.com/Forum/m/620305/#msg_620305

    By Lalit Kumar B...

    Specifically, the two simple solutions provided were:

    1 using the row_number, entitled Oracle ranking based on descending order of the inside telephone each empnum group. And finally selects the lines which has least rank (of least since that order is descending for phone).

    SQL > column alternatecontact format A20;

    SQL >

    SQL > SELECT empnum, alternatecontact, relationship, phtype, phone

    2 from (SELECT a.*, row_number() over r (PARTITION BY empnum ORDER BY phone / / DESC))

    3 FROM xxc_contact one)

    4. WHEN r = 1

    /

    EMPNUM ALTERNATECONTACT RELATIONSHIP PHTYPE PHONE

    ---------- -------------------- ---------- ---------- ----------

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    2. with the help of MAX, Oracle automatically assigns the maximum phone for all the rows in each group of empnum. And finally selects the rows with the maximum phone. Order by clause is omitted here intentionally. You can find out why.

    SQL > SELECT empnum, alternatecontact, relationship, phtype, phone

    2 (SELECT a.*, MAX (phone) over (PARTITION BY empnum) rn FROM xxc_contact one)

    3 WHERE phone = rn

    4.

    EMPNUM ALTERNATECONTACT RELATIONSHIP PHTYPE PHONE

    ---------- -------------------- ---------- ---------- ----------

    123456 rick Grimes SP cell 9999999999

    Daryl Dixon EN work 7777777777 123457

    Home 123458 Maggie Greene CH 6666666666

    Kind regards

    Lalit

Maybe you are looking for

  • Loose key keyboard MacBook Pro 2011

    Is anyone having problems with certain keys on the keyboard detaches? It is true that it is a 2011 and gets a lot of hits (the keys A, E and N are worn down). The letter "O" button became loose and wobbly; even pushing down (it would snap into place

  • Accident every night on twitch.tv

    When I decided to try to watch a stream of work before last night I had a problem. My block every night when I go to a specific game on twitch.tv page and hover on a miniature of flow. It loads everything on the thin cover. However even if I type the

  • Satellite C50 - A touch pad no longer works

    I bought a new laptop of C50 - A satellite but the touchpad has stopped working.I tried updating driver but says I have the latest version of the driver. He worked for a few seconds after switching on, then freezes.My usb mouse works. Don't know what

  • Memory for T510

    The T510 does support memory PC3L? I want to upgrade fomr 4 GB to 8 GB and find that PC3L is less expensive than the PC3 slightsly. Thank you.

  • Mouse magic disconnection since 10.11.2 upgrade

    Since the update of this week OSX, my Magic Mouse disconnects frequently Bluetooth. Was working fine before. Have changed batteries. Removed and re-paired, but still the problem persists. Seems to be triggered by the use of the extended screen - when