Why I need to_char allows to compare the date?

Hi guys:

I have a question that seem silly, but I couldn't know.

I have a simple query on Oracle 11 G R2 and I use SQL developer 3.1.07, the schema and the data has been migrated from a SQL Server:
select *
from vernote 
where whendate='09-JUL-12';
It returns empty results. However, tuples are in the table. When I try this:
select *
from vernote 
where to_char(whendate)='09-JUL-12';
He returned 677 lines. the whendate data type is date. but when I try another table in the same pattern:
select *
from invoices
where transpostdate='09-JUL-12';
It returns tuples, and I don't have to use the function to_char. transpostdate is also a date. Could someone tell me why the two columns: whendate, transpostdate both are of type date, but I have to use to_char to compare, the other does not?

Thanks in advance!

Sam

lxiscas wrote:
Hi guys:

I have a question that seem silly, but I couldn't know.

I have a simple query on Oracle 11 G R2 and I use SQL developer 3.1.07, the schema and the data has been migrated from a SQL Server:

select *
from vernote
where whendate='09-JUL-12';

It returns empty results. However, tuples are in the table. When I try this:

select *
from vernote
where to_char(whendate)='09-JUL-12';

He returned 677 lines. the whendate data type is date. but when I try another table in the same pattern:

select *
from invoices
where transpostdate='09-JUL-12';

It returns tuples, and I don't have to use the function to_char. transpostdate is also a date. Could someone tell me why the two columns: whendate, transpostdate both are of type date, but I have to use to_char to compare, the other does not?

Thanks in advance!

Sam

What kind of data are WHENDATE & TRANSPOSTDATE?

If they are the data type DATE, then they contain data too part TIME.
NEVER rely on the implicit data type conversion.
July 9, 12 ' is STRING; not a DATE

When TRUNC (transpostdate) = TO_DATE('09-JUL-2012','DD-MON-YYYY');

Tags: Database

Similar Questions

  • Using Virgin go 2 broadband, why am I not allowed to access the internet?

    I want to use the Virgin @ go broadband on my laptop, why am I not allowed access to the internet?

    There could be several reasons why you can't access the internet. Are you getting any sort of error message? If so, what would you say?

    He has already worked, or is it a new product?

    You might consider posting your question in the forums of Virgin Mobile here:http://www.virginmobileusa.com/mobile-broadband/

  • No need to advise - compare the date in *.sql with sysdate.

    Hi guys,.

    Need some help here.

    Someone has a script that will compare the date specified with the current sysdate. If previously, he will order that SQL * PLUS to leave immediately.
    The audit will be essentially in a script *.Sql. Whenever we run the script, @c:\script.sql, it will be first of all to compare the dates and decide whether to proceed with the rest of the codes (dml) below the date checker in the same script.sql

    Thank you

    I would like to combine the solutions of bencol and alberto:

    whenever sqlerror exit
    
    DECLARE
       v_date   DATE := TO_DATE('', 'YYYYMMDD');
    BEGIN
       IF v_date >= TRUNC(SYSDATE) -- or perhaps:  v_date>= sysdate
       THEN
         null;
       ELSE
         raise_application_error(-20000,'Date is before SYSDATE!');
       END IF;
    END;
    /
    
    whenever sqlerror continue
    
    -- rest of your script
    ...
    

    (not tested)

    Published by: hm on 08.05.2012 02:51

  • compare the data and the output data that do not exist

    Hello
    I've written a procedure to insert data into a table 3 where I compare the data between two tables, if it matches it insert in the table test_a Joanie. If the exists not or other tables i.e. test_code and test_type it should output this data, where there is no. my code works for a single table, which is test_code. It's not DBMS display a line that is not in the table test_type. could just tell my why? Assume that if test_code a line which is only not in test_type it should out saying this line of incompatibilities with test_type and vice versa.

    -Here's my code

    Test of CREATE OR REPLACE PROCEDURE. GET_data
    IS

    BEGIN
    DELETE test.test_a;
    FOR c IN (select a.cCODE,
    a.type,
    a.Indicator,
    RTrim (xmlagg (xmlelement (e, a.codenum |))) (') a.codenum order) .extract ('/ / text()'), ',') codeNUMber.
    b.CCODE cc,
    b.type tp,
    b.Indicator ind
    test.test_code a, test.test_type b
    where a.ccode = b.ccode (+)
    AND a.type = b.type (+)
    AND a.indicator = b.indicator (+)
    Group of a.ccode, a.type, a.indicator, b.CCODE, b.type, b.indicator
    order of a.ccode)
    LOOP
    BEGIN
    IF (c.cCODE = C.c.c.
    AND C.type = C.tp
    AND C.indicator = C.ind
    AND C.SYS_IND = C.SYSIND) THEN
    insert into test.test_a (CCODE, type indicator)
    values (C.cCODE, C.type, C.indicator);
    ON THE OTHER
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END IF;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END;
    end loop;
    commit;
    END;
    /


    Thank you

    You must use a FULL OUTER JOIN instead an OUTER JOIN for this.

    Just curious, why do you need to use dbms_output instead to execute the SQL query with additional conditions (if part of your procedure)?. You can use two times, one to insert those that match and one for the selection of others who do not match.

    Kind regards.

  • Why fields view object cannot display in the data control?

    Hello
    Work in jdev 11.1.2.3.0.
    I create two objects from view of the entities under the project module.
    and see the AppModule.xml as follows:
    ..
    < ViewUsage
    Name = "TransAccountVO1".
    ViewObjectName = "Project1. TransAccountVO "/ >"
    < ViewUsage
    Name = "TransAccountBillVO1".
    ViewObjectName = "Project1. TransAccountBillVO "/ >"
    ...
    Under the control of data panel shows these two nodes:
    -TransAccountVO1
    -id
    -name
    ---..
    + Operation
    + Named criteria

    -TransAccountBillVO1
    + operations
    + Named criteria,

    THE first node is ok, but the second miss (node TransaccountBillVO1) areas.
    Why fields view object cannot display in the data control?

    Thanks in advance.

    delete and Add again... the value editable forever.

  • How do you compare the data collected continuously?

    So, I'm stuck on the basic architecture, therefore, hoping that you can push took me.

    What I have is a VI that measures the tensions permanently, then, I have a flow of power from DAQ hardware data points.  What I WANT is to act on the data points of tension, only, which are larger than the previous points.  For example, I want to act on the first data point, since it will be the most important, since there is nothing to compare to, then I want to compare the points of data subsequent to the first, until there is a greater than the first data point.  Then, I want to compare tensions the NEW value more and so on, etc. and act only on the NEW larger value.

    Consider this list of data points and corresponding outcomes:

    2 LAW

    4 LAW

    3. DO NOTHING

    3. DO NOTHING

    4-DO NOTHING

    5 LAW

    4-DO NOTHING

    5-DO NOTHING

    4-DO NOTHING

    3. DO NOTHING

    6 LAW

    I've been watch combinations of them for WHILE loops and shift registers and the tables, but the table would get so huge so fast and the MIN/MAX value of the TABLE palette function would get pretty slow and I don't need to evaluate all previous data.  I just need to be able to identify the highest value and then compare it to the following values until there is a NEW larger value.  It's a bit like how the warriors would fight several opponents until they lost and then, there's a new champion, and all subsequent warriors are compared to the new champion and so on and so forth.

    You have any suggestions on how to achieve this?  I'm puzzled.

    Thank you

    Dave

    Yes, either case will work, I put it in the structure case just to show that you need to put in there if you want to use.

  • Compare the date of the day against a date entered

    Hello

    In my form, I need for the user to enter a 'date needed '. So I need to compare the need of today, and if it is less than 15 days away, I need to display a message: we need more 15 days to respond to your command. »

    I found some scripts on the Forum, but none is exactly what I need and I can't find how to modify them for this specific problem. Any help is appreciated.

    Thank you

    MDawn

    OK, you just need to add a script to the output of the dateNeeded field event.

    If (date2num ($.formattedValue, "MM/DD/YYYY") lt date() + 15) then

    $host.messageBox ("at least 15 days in the future be as date", "entered an incorrect date", 0, 0)

    endif

  • shared object why? If you already have all the data in a mysql database

    Hello.

    I see that a shraed object can be used to store the data locally is to say: what avatar you use, what level you are and what the screen you are currently on. But why you need or use a shared if object you all this info on a mysql database, anyway.

    In addition, a shared object can get destroyed as you clear the cache, as many people have. In addition, Governments are looking at the cookies and they start to hang.

    That is to say: should really so we have?

    I quite often to store a user name in a shared object and pre-fill the login form

    most of the browsers that will be for text html in any case boxes

    you could add an option "Remember me on this computer" connect directly, and then you would save username and password

    your site might only need to login to some privelidges, like posting in a forum. You may want to save the preferences for the shared object if they are applied before the opening of the session

    BTW, the shared object is not a cookie. clear cookies, cache and browser history make the shared object. In fact I bet that most of the users don't know how to delete it.

  • Calculated in point by comparing the Dates in IR

    Someone at - he was able to use a component calculated in IR to compare a date and post something else
    example of

    If (date > 1 January 2009 ') {1} else {2}

    I can not get to post whatever it is as 1 Although I graduate to that date dates in the field that I use to compare. Am I missing something, it seems like it should work, but it doesn't

    Any help would be appreciated.

    Thank you!!

    What is source and data type of the area date ?

    If it's a Date from the database then you compare a Date into a string. You need to convert one of them to the data of the other type

    Try

    If (date > ToDate (January 1, 2009 "")) {1} else {2}

  • want to compare the data in excel with real-time signal

    Hello

    my request is to check the PCB pins of I/o... Firstly I have signal corresponding to each pin in GOOD PCB board and the output of each needle is saved in excel using scripture to the spreadsheet... then the database be act as master for more tips of PCB...

    If I want to check the other pcb edge means that the same signals should be send on the pin of each Member of the PCB... received out of the Council should check with the data already stored in the database if this is the way to match status LED should illuminate otherwise is not to shine...

    pls help me finish this application... I have attached model vi with poster and Excel in too...

    I hate to say it, but you don't have really any type of application there.  It is quite difficult to help you complete when you barely started.  An express VI couple in a sequence structure do not apply.

    What you need to do is sit down and write a design specification.  What are your entries for this application? What are your results?  What do you think the UI to look like?  What steps do you need to do to go from A to B?  Chart out.

  • I'm not allowed to transfer the data from the laptop on an external hard drive.

    Original title: operating system Windows 7, problems with Permissions

    I use the Windows 7 operating system. Recently my system I cannot transfer all the data from my laptop to any external hard drive. The Popup says that you don't have any administrative permissions... I am a single user and a newspaper with my Admin password but some how it continues to be. Help, please.

    You may need to take possession of the records on your external drive - see here:
    http://social.answers.Microsoft.com/forums/en-us/w7network/thread/24bdf172-2DBC-43b8-995d-a99b6a81413c/
    Alternatively, you can reformat the external hard drive.
  • By comparing the Dates in a group of data (different lines)

    I have a requirement where I have to compare dates in a dataset for each employee.  The data looks like this:

    WITH test_data AS

    (SELECT the '1' AS pk, '5900' AS emp_id, '5' AS rec_id, to_date('01-JAN-2014') AS rec_date FROM dual

    UNION ALL

    SELECT '2', '5900', '5', to_date('01-FEB-2014') FROM dual

    UNION ALL

    SELECT '3', '5900', '5', to_date('01-MAR-2014') FROM dual

    UNION ALL

    SELECT '4', '5900', '5', to_date('01-JAN-2014') FROM dual

    UNION ALL

    SELECT '5', '5900', '6', to_date('06-JAN-2014') FROM dual

    UNION ALL

    SELECT '6', '5900', '6', NULL FROM dual

    UNION ALL

    SELECT '7', '5900', '6', to_date('01-JUL-2014') FROM dual

    UNION ALL

    SELECT '8', '5900', '7', to_date('29-JAN-2014') FROM dual

    UNION ALL

    SELECT '9', '5900', '7', to_date('29-SEP-2014') FROM dual

    UNION ALL

    SELECT '10', '5900', '7', to_date('01-OCT-2014') FROM dual

    UNION ALL

    SELECT '11', '8595', '5', to_date('01-SEP-2014') FROM dual

    UNION ALL

    SELECT '12', '8595', '6', to_date('05-SEP-2014') FROM dual

    UNION ALL

    SELECT '13', '8595', '7', to_date('30-SEP-2014') FROM dual

    UNION ALL

    SELECT '14', '8595', '7', NULL FROM dual

    )

    REC_ID column is composed of 3 different types of records, which must satisfy this requirement:

    REC_ID 5 acts as point of departure, and REC_ID 6 must have a REC_DATE within 7 days of REC_ID 5 REC_ID 7 must have a REC_DATE within 30 days of REC_ID 6.

    • If the requirements are any record in REC_ID 5 acts like zero day or the starting point;
    • Any record in REC_ID 6 must be within 7 days of the date of REC_ID 5;
    • Any record in REC_ID 7 must be within 30 days from 6 REC_ID.

    My results:

    Expected results - satisfactory records

    EMP_ID

    DATE_1

    DATE_2

    DATE_3

    5900

    1 January 14

    6 January 14

    29 January 14

    8595

    1 sep-14

    5 sep-14

    30 sep-14

    I don't know how to compare dates in a dataset that are on different lines.  I thought using self-joins, query using the window as rank (), factoring functions, but I'm stuck pretty quickly.

    I appreciate all help.  Thank you!

    Aqua

    Hello

    AquaNX4 wrote:

    WOW odie_63: it would be a blessing if I was... but unfortunately, I'm on 10 gr 2.  That would have been great!

    Frank Kulash:

    I'm stuck (mentally) to the fact that there is an amount without discernment of records in the base table for each type of REC_ID.

    Some employees have 5 folders for REC_ID, 10 REC_ID 6 and 7 for REC_ID 7, which leaves me confused in how many self-joins I should do, or if it is at all possible.  I did a lot of arithmetic of dates with the data on the same line and certain ranks () functions for data residing on different lines, but this 1 seems to confuse me...

    I ran 1 self-join as below to see what it looks like and it confused me even more because I know the timestamp of the arithmetic in where clause still will not produce data as I want...  I am now trying another way...

    SELECT td2.rec_id,

    TD2.emp_id,

    TD2.rec_date

    Of

    test_data2 td2

    LEFT JOIN test_data td1 ON td1.emp_id = td2.emp_id


    It's a good start.

    You want an inner join, however, not an outer join, not you?  Outer join means "include td2 lines if they have data in the corresponding TD1".  If I understand the question, you are only interested in cases where it is matching data.

    Here's a way to do it:

    WITH joined_data AS

    (

    SELECT d5.emp_id

    d5.rec_date LIKE date_1

    d6.rec_date AS date_2

    d7.rec_date AS date_3

    ROW_NUMBER () OVER (PARTITION BY d5.emp_id

    ORDER BY d5.rec_date

    d6.rec_date

    d7.rec_date

    ) AS r_num

    OF test_data d5

    JOIN test_data d6 ON d6.emp_id = d5.emp_id

    AND d6.rec_date > = d5.rec_date

    AND d6.rec_date<= d5.rec_date="" +="">

    JOIN test_data d7 ON d7.emp_id = d6.emp_id

    AND d7.rec_date > = d6.rec_date

    AND d7.rec_date<= d6.rec_date="" +="">

    WHERE d5.rec_id = '5'

    AND d6.rec_id = "6"

    AND d7.rec_id = "7"

    )

    SELECT emp_id, date_1, date_2, date_3

    OF joined_data

    WHERE r_num = 1

    ;

    The subquery joined_data find all combinations of rows that meet the criteria.  We want to only 1 line by emp_id, so I used ROW_NUMBER assign unique r_nums (starting at 1) to all lines with the same emp_id and then, in the main query, rejected all but the 1st row.

    Knapen had a good idea, but it won't work for all cases.  There may be situations where the only combination of rows that meet the criteria does not use the MIN or MAX of dates of one (or several).

  • Need to find gaps in the data

    Hi all

    I have the following documents:

    -Drop Table
    drop table agreement;
    drop table GRP_INFO;
    -Create table
    create table agreement
    (
    Agreement_Id Number (5),
    Date of Coverage_Effective_Date,
    Date of COVERAGE_termination_date
    );
    Create Table GRP_INFO
    (
    Agreement_Id Number (5),
    Grp_Id Number (5),
    Date of Effective_Date,
    Date TERMINATION_DATE
    );
    ------------

    -Insertion
    Insert into the agreement
    Select 100,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 200,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 300,'01 JAN - 2013", December 31, 2013"
    From Dual;

    Insert into the agreement
    Select 400,'01 JAN - 2013", December 31, 2013"
    From Dual;
    ----------
    Insert into Grp_Info
    Select 100.1, 1 January 2013 ", 31 March 2013"
    Of the double
    UNION ALL
    Select 100.2, April 1, 2013 ", April 2, 2013"
    Of the double
    UNION ALL
    Select 100.3, April 3, 2013 ", April 15, 2013"
    Of the double
    UNION ALL
    Select 100.4, April 3, 2013 ", April 15, 2013"
    Of the double
    UNION ALL
    Select 100.5, 1 June 2013 ", December 31, 2013"
    Of the double
    Union All
    Select 200.6, 1 January 2013 ", April 2, 2013"
    Of the double
    Union All
    Select 200,7, April 3, 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 200,8, April 3, 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 200,9, June 1, 2013 ", November 30, 2013"
    Of the double
    Union All
    Select 300,10, 1 January 2013 ", April 15, 2013"
    Of the double
    Union All
    Select 300,11, April 16, 2013 ", December 31, 2013"
    Of the double
    Union All
    Select 400,12, January 2, 2013 ", December 31, 2013"
    From Dual;

    COMMIT;

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

    -Queries on the table of the agreement

    Select * agree;

    -Result of the query

    agreement_id coverage_effective_date coverage_termination_date

    100                                         01-JAN-13                                                   31-DEC-13

    200                                         01-JAN-13                                                   31-DEC-13

    300                                         01-JAN-13                                                   31-DEC-13

    400                                         01-JAN-13                                                   31-DEC-13

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

    -Queries on grp_info table

    agreement_id grp_id effective_date termination_date

    100                                              1                     01-JAN-13                       31-MAR-13

    100                                              2                     01-APR-13                       02-APR-13

    100                                              3                     03-APR-13                       15-APR-13

    100                                              4                     03-APR-13                       15-APR-13

    100                                              5                     01-JUN-13                        31-DEC-13

    200                                              6                     01-JAN-13                        02-APR-13

    200                                              7                     03-APR-13                        15-APR-13

    200                                              8                     03-APR-13                        15-APR-13

    200                                              9                     01-JUN-13                         30-NOV-13

    300                                              10                   01-JAN-13                         15-APR-13

    300                                              11                   16-APR-13                         31-DEC-13

    400                                              12                   02-JAN-13                          31-DEC-13

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

    -Result

    agreement_id

    100

    200

    400

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

    -Logic for the above result

    Each agreement_id have several grp_id and grp_id all or at least one should cover all the period agreement_id for example:

    -Agreement_id 100 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 100 so you can find the period from April 16, 2013 until 31 May 2013 are missing so I need this agreement_id.

    -Agreement_id 200 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 200 then you can find that the period from December 1, 2013 until 31 December 2013 are missing so I need this agreement_id.

    -Agreement_id 300 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 300 then you can find that no period is missing, I don't need this agreement_id.

    -Agreement_id 400 a protection from the date is January 1, 2013 and coverage_termination_date is December 31, 2013, and if you look in all the archives against agreement_id 300 then you can find that the period from January 1, 2013, until January 1, 2013 is missing, so I need this agreement_id.

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

    Please let me know if you have any related questions my script and I really appreciate if someone can give me the solution for this problem.

    Concerning

    Line

    Hello

    Here's one way:

    WITH got_gap AS

    (

    SELECT agreement_id, effective_date, termination_date

    CASE

    WHEN effective_date >

    1 + MAX (termination_date) OVER (PARTITION BY agreement_id

    ORDER BY effective_date

    ROWS BETWEEN UNBOUNDED PRECEDING

    AND 1 PRECEDING

    )

    THEN 1

    Difference in the END as the

    OF grp_info

    )

    SELECT g.agreement_id

    OF got_gap g

    JOIN agreement has ON a.agreement_id = g.agreement_id

    GROUP BY g.agreement_id

    GIVEN the NUMBER (g.gap) > 0

    MIN (g.effective_date) OR > MIN (a.coverage_effective_date)

    OR MAX (g.termination_date)< max="">

    ORDER BY g.agreement_id

    ;

    Output:

    AGREEMENT_ID

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

    100

    200

    400

    Makes no assumptions about effective_date and termination_date, except that effective_date<= termination_date="" on="" each="" row. ="" it's="" okay="" if="" different="" rows="" for="" the="" same="" agreement_id="" overlap,="" or="" if="" one="" encompasses="">

    Do not attempt to insert VARCHAR2 values (like January 1, 2013 "") in the DATE columns.  Use TO_DATE, either DATE literals.

  • By comparing the date to sysdate

    I'm trying to compare a date from a database of Oracle (10 g R1) sysdate but does not work.

    DECLARE
       v_exit_date DATE;   --Let's assume exit_date from the database is today's date '15-APR-10'
    BEGIN
        SELECT 
          exit_date 
        INTO
          v_exit_date
        FROM TABLE_1 WHERE student_id = 3020;
          
       IF v_exit_date = sysdate  THEN
           dbms_output.putline ('Dates are equal');
       ELSE
           dbms_output.putline ('Dates are not equal');
       END;
    END;
    An equality (=) expression is not evaluated. I always 'The Dates are not equal' when waiting for "the Dates are equal." What is the problem with my PL/SQL?

    Thank you

    Published by: Northstar on April 15, 2010 11:32

    I ran this example below and it does not work on my db:

    Connected to Oracle Database 11g Enterprise Edition Release 11.1.0.6.0
    Connected as fsitja
    
    SQL>
    SQL> set serveroutput on
    SQL> create table table_1 as select sysdate exit_date, 3020 student_id from dual;
    
    Table created
    SQL> DECLARE
      2     v_exit_date DATE;   --Let's assume exit_date from the database is today's date '15-APR-10'
      3  BEGIN
      4      SELECT exit_date
      5        INTO v_exit_date
      6        FROM TABLE_1 WHERE student_id = 3020;
      7     IF TRUNC(v_exit_date) = TRUNC(SYSDATE)
      8       THEN dbms_output.put_line ('Dates are equal');
      9       ELSE dbms_output.put_line ('Dates are not equal');
     10     END IF;
     11  END;
     12  /
    
    Dates are equal
    
    PL/SQL procedure successfully completed
    
    SQL> 
    
  • Need help with XML, view the data by scanning/click

    Hello.

    I am creating a moibile app that displays XML data. It is a telephone directory. I want the data to change when we slide. I can get the data very well. I can get it to display fine. I do not see the correct image first, however. I think it's a problem with my imagenum variable.

    Then, I want to change what is displayed when the user clicks/slide on the screen. How do I do that?

    Stop();
    var nameArray:Array = new Array();
    var countryArray:Array = new Array();
    var portraitArray:Array = new Array();
    var flagArray:Array = new Array();
    var jobtitleArray:Array = new Array();

    var imageNum:Number = 0;
    var totalImages:Number;

    Loading XML
    var XMLURLLoader:URLLoader = new URLLoader();
    XMLURLLoader.load (new URLRequest ("recbook.xml"));


    XMLURLLoader.addEventListener (Event.COMPLETE, processXML);


    function processXML(event:Event):void {}

    var theXMLData:XML = new XML (XMLURLLoader.data);
    totalImages = theXMLData.name.length ();
    for (var i: Number = 0; i < totalImages; i ++) {}
    Data in the tables xml push
    nameArray.push (theXMLData.name [i]);
    countryArray.push (theXMLData.country [i]);
    portraitArray.push (theXMLData.portrait [i]);
    flagArray.push (theXMLData.flag [i]);
    jobtitleArray.push (theXMLData.jobtitle [i]);
    }
    the data is processed

    loadData();
    }

    function loadData (): void {}

    var thisPortrait:String = portraitArray [imageNum];
    var thisCountry:String = countryArray [imageNum];
    var thisName:String = NomTableau [imageNum];
    var thisJobtitle:String = jobtitleArray [imageNum];
    var thisFlag:String = flagArray [imageNum];

    var dataLoader:Loader = new Loader();
    dataLoader.load (new URLRequest (portraitArray [imageNum]));
    dataLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, dataLoaded);
    function dataLoaded(event:Event):void {}

    I want to start with 0 (img1.jpg) image and scroll with a click of the mouse (finger on iOS kick)
    stage.addEventListener (MouseEvent.CLICK, loadMainImage1);
    function loadMainImage1(event:MouseEvent):void {}
    portraitUILoader.source = thisPortrait;
    flagUILoader.source = thisFlag;
    selectedName.text = thisName;
    selectedCountry.text = thisCountry;
    selectedJobtitle.text = thisJobtitle;
    }
    }

    Add to imageNum (1);
    imageNum ++;
    If (imageNum < totalImages) {//stopping to img2
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere

    loadData();
    }

    trace ("Total Images" + totalImages);

    }

    Click here to pass the screenI House would this gap. do not know how.
    homeScreen_mc.addEventListener (MouseEvent.CLICK, goNext);

    function goNext(event:MouseEvent):void
    {
    nextFrame();
    }


    * / Here is the result:
    imageNum 1
    image name (tomyline) images/img1.jpg
    imageNum 2
    image name (tomyline) images/img2.jpg
    imageNum 3
    image name (tomyline) images/img3.jpg
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images
    Total of 4 Images

    It starts on frame 1 display (the second in the series img2.jpg) * /.

    If (imageNum< totalimages)="" {//stopping="" at="">
    trace ("imageNum" + imageNum);
    trace ("name of the image (tomyline)" + tomyline "); losing picture 4 somewhere
    imageNum ++;
    If (imageNum! = totalImages) loadData();
    }

Maybe you are looking for