Help with code to insert, and then update the form table.

I have a form where a user can add a new record in a table. Here is the procedure for recording button that works very well. But I call another procedure for updating the table with an "if" statement "The SQL code that I use works fine to get the data I'm looking for when I run it in SQL, but the 'if' statement updates all records in the table to ' n ' when some should be"Y". I am new to Oracle forms development (3 months) so it's probably very simple, but I'm stuck and need to get this finished form. Any help is greatly appreciated.


SAVE BUTTON TRIGGER PROCEDURE:*.

PROCEDURE SAVE_MM_1099_ADD IS

MM1099_NO NUMBER (10);
NUMBER OF THE YEAR (4);
NUMBER OF NOTICE_SEQ_NO (10);
NOTICE_NAME VARCHAR2 (30);
TIN_FROM_DB VARCHAR2 (23);
TSDI_DB VARCHAR2 (1);
IRS_NTYPE VARCHAR2 (10);
IRS_NDATE VARCHAR2 (10);
BU_WH VARCHAR2 (1);
NO_TIN_NAME VARCHAR2 (1);
DUP_IRS_NOTICE VARCHAR2 (1);
G1_IRS_NOTICE_3YR_2BS VARCHAR2 (1);

B_SAVE_ADD boolean;

Start

IF MM1099_NO IS NOT NULL THEN

insert into MM_1099
(
MM1099_NO,
YEAR,
NOTICE_SEQ_NO,
NOTICE_NAME,
TIN_FROM_DB,
TSDI_DB,
IRS_NTYPE,
IRS_NDATE,
BU_WH,
NO_TIN_NAME,
DUP_IRS_NOTICE,
G1_IRS_NOTICE_3YR_2BS
)
values
(
MM1099_NO,
YEAR,
NOTICE_SEQ_NO,
NOTICE_NAME,
TIN_FROM_DB,
TSDI_DB,
IRS_NTYPE,
IRS_NDATE,
BU_WH,
NO_TIN_NAME,
DUP_IRS_NOTICE,
G1_IRS_NOTICE_3YR_2BS
);


: system.message_level: = '5';
Commit_FORM;
: system.message_level: = '0';

END IF;

UPDATE_NUMOCCURTIN;

END;

PROCEDURE CALLED:*.

PROCEDURE UPDATE_NUMOCCURTIN IS

CURSOR c1 (NUMBER NUMOCCURTIN) IS
SELECT THE YEAR, TIN_FROM_DB, COUNT (TIN_FROM_DB) AS NUMOCCURTIN
OF MM_1099
TIN_FROM_DB GROUP, YEAR
SEEN (COUNT (TIN_FROM_DB) > 0);

CR1 c1% ROWTYPE;
number of v_recs;
NUMBER OF NUMOCCURTIN;

BEGIN
v_recs: = 0;

OPEN c1 (NUMOCCURTIN);

loop

Fetch c1 into cr1;
When the % notfound c1 or c1% rowcount output > v_recs;

IF cr1. NUMOCCURTIN > 1 THEN

UPDATE MM_1099
SET DUP_IRS_NOTICE = 'Y ';

ON THE OTHER

UPDATE MM_1099
SET DUP_IRS_NOTICE = 'N';

: system.message_level: = '5';
commit;
: system.message_level: = '0';

END IF;

v_recs: = v_recs + 1;

END LOOP;

CLOSE c1;

END;

For any help or suggestion will be greatly appreciated.

IF cr1. NUMOCCURTIN > 1 THEN

UPDATE MM_1099
SET DUP_IRS_NOTICE = 'Y ';

ON THE OTHER

UPDATE MM_1099
SET DUP_IRS_NOTICE = 'N';

: system.message_level: = '5';
commit;
: system.message_level: = '0';

END IF;

There is no WHERE condition in your update, so always update you all THE RECORDS in your table. I guess it must be something like:

UPDATE MM_1099 SET
  DUP_IRS_NOTICE = 'Y';
 WHERE TIN_FROM_DB=cr1.TIN_FROM_DB
   AND YEAR=cr1.YEAR

Some general order questions about your code:
Where your variables for your insert statement are filled? looking at your code they will always be NULL.
Be careful when using the variable exactly as the names of column names. This may cause unexpected behavior (for example when it is used in the UPDATE statements).
Why engage in the other branch, but not in the branch so?

Tags: Oracle Development

Similar Questions

  • I have a request for a phone number in my HTML code in my database which is automatically filled with the correct sales phone number when sending emails. I create HTML code in dreamweaver and then put the code in my e-mail program. I need to do the ph

    I have a request for a phone number in my HTML code in my database which is automatically filled with the correct sales phone number when sending emails. I create HTML code in dreamweaver and then put the code in my e-mail program. I need to make the phone number in the clickable query. I know the code to do it well not in a query. What is the code?

    As far as I saw, most of the smartphones will automatically recognize it these days, as long as the number is written in a format of regular phone number. This format also allows to make images or text other than a telephone number in a tap to call the link.

    Looking at what you have presented I guess it would be something along the lines of...

    urmcell>>">urmcell >

    When the location of the link and the link text would be the same variable.

    I've never worked with Intelliclick so above is a wild guess. They would be those who need to ask themselves if there is a way to fill in the address of a link like that.

  • Is it possible to access AMX element using the AMS item ID and then update the value of the AMX?

    I created a prototype - where I need to create a static Page AMX element. I have a bean that will have a method of UPDATING: the user interaction with the element AMX fires this UPDATE method, and the method will determine the value of another node AMX. The example is as follows

    <? XML version = "1.0" encoding = "UTF-8"? >

    "< amx:view xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xmlns:amx ="http://xmlns.oracle.com/adf/mf/amx"

    xmlns:dvtm ="http://xmlns.oracle.com/adf/mf/amx/dvt" >. "

    < amx:panelPage id = "pp1" >

    < amx:facet name = "header" >

    < amx:outputText value = "Header-XXX" id = "ot1" / >

    < / amx:facet >

    "< amx:selectOneChoice label = '1' id = 'soc1" value = ""valueChangeListener ="#{SolverLogic.Update1}" > "

    "< amx:selectItem label =" "id ="si667803"value ="-1"/ >"

    < amx:selectItem label = 'O1' id = 'si667804' value="667800.667803.667804"/ >

    < amx:selectItem label = "O2" id = "si667805" value="667800.667803.667805"/ >

    < amx:selectItem label = "O3" id = "si667806" value="667800.667803.667806"/ >

    < / amx:selectOneChoice >

    "< amx:selectOneChoice label ="2"id ="soc753865"value =" ">."

    "< amx:selectItem label =" "id ="si2"value ="-1"/ >"

    < amx:selectItem label = "Ø21" id = "si753866" value="667800.753865.753866"/ >

    < amx:selectItem label = "Ø22" id = "si753867" value="667800.753865.753867"/ >

    < amx:selectItem label = "O23" id = "si753868" value="667800.753865.753868"/ >

    < / amx:selectOneChoice >

    < / amx:panelPage >

    < / amx:view >

    When the user selects 'O1' - 'SolverLogic.Update1' bean - will calculate 'Ø21' must be selected. Is there a way to access the node AMX 'amx:selectOneChoice label is '2' ' - using the ID - id = "soc753865" sound, and then set the value as "value = 'Ø21' '"

    My requirement is that I don't need a DataController object, I have a binary file that contains the business logic, what I need is to create a static page and then use business logic to determine the result of user interaction and then update the user interface accordingly.

    Thank you

    Shailendra

    There is no label but value.

    You must have the below for the value of selectonechoice:

  • I currently have CS5 on my mac pro book. I just bought an i mac 21 "and you want to download my CS5 on my new imac, and then update the % of CS. How can I do this? Thank you

    I currently have CS5 on my mac pro book. I just bought an i mac 21 "and you want to download my CS5 on my new imac, and then update the % of CS. How can I do this? Thank you

    Hi Robing12544083,

    Please visit: https://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html

    Compatibility: Adobe - Creative Suite 5 Master Collection: System requirements

    I hope this helps.

    Concerning

    Megha Rawat

  • Question to load data using sql loader in staging table, and then in the main tables!

    Hello

    I'm trying to load data into our main database table using SQL LOADER. data will be provided in separate pipes csv files.

    I have develop a shell script to load the data and it works fine except one thing.

    Here are the details of a data to re-create the problem.

    Staging of the structure of the table in which data will be filled using sql loader

    create table stg_cmts_data (cmts_token varchar2 (30), CMTS_IP varchar2 (20));

    create table stg_link_data (dhcp_token varchar2 (30), cmts_to_add varchar2 (200));

    create table stg_dhcp_data (dhcp_token varchar2 (30), DHCP_IP varchar2 (20));

    DATA in the csv file-

    for stg_cmts_data-

    cmts_map_03092015_1.csv

    WNLB-CMTS-01-1. 10.15.0.1

    WNLB-CMTS-02-2 | 10.15.16.1

    WNLB-CMTS-03-3. 10.15.48.1

    WNLB-CMTS-04-4. 10.15.80.1

    WNLB-CMTS-05-5. 10.15.96.1

    for stg_dhcp_data-

    dhcp_map_03092015_1.csv

    DHCP-1-1-1. 10.25.23.10, 25.26.14.01

    DHCP-1-1-2. 56.25.111.25, 100.25.2.01

    DHCP-1-1-3. 25.255.3.01, 89.20.147.258

    DHCP-1-1-4. 10.25.26.36, 200.32.58.69

    DHCP-1-1-5 | 80.25.47.369, 60.258.14.10

    for stg_link_data

    cmts_dhcp_link_map_0309151623_1.csv

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    DHCP-1-1-2. WNLB-CMTS-03-3,WNLB-CMTS-04-4,WNLB-CMTS-05-5

    DHCP-1-1-3. WNLB-CMTS-01-1

    DHCP-1-1-4. WNLB-CMTS-05-8,WNLB-CMTS-05-6,WNLB-CMTS-05-0,WNLB-CMTS-03-3

    DHCP-1-1-5 | WNLB-CMTS-02-2,WNLB-CMTS-04-4,WNLB-CMTS-05-7

    WNLB-DHCP-1-13 | WNLB-CMTS-02-2

    Now, after loading these data in the staging of table I have to fill the main database table

    create table subntwk (subntwk_nm varchar2 (20), subntwk_ip varchar2 (30));

    create table link (link_nm varchar2 (50));

    SQL scripts that I created to load data is like.

    coil load_cmts.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_cmts IS SELECT *.

    OF stg_cmts_data;

    TYPE t_stg_cmts IS TABLE OF stg_cmts_data % ROWTYPE INDEX BY pls_integer;

    l_stg_cmts t_stg_cmts;

    l_cmts_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_cmts.

    Get the c_stg_cmts COLLECT in BULK IN l_stg_cmts;

    BECAUSE me IN l_stg_cmts. FIRST... l_stg_cmts. LAST

    LOOP

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_cmts (i) .cmts_token;

    IF l_cmts_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_cmts (i) .cmts_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_cmts (i) .cmts_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_cmts EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for dhcp


    coil load_dhcp.log

    Set serveroutput on

    DECLARE

    CURSOR c_stg_dhcp IS SELECT *.

    OF stg_dhcp_data;

    TYPE t_stg_dhcp IS TABLE OF stg_dhcp_data % ROWTYPE INDEX BY pls_integer;

    l_stg_dhcp t_stg_dhcp;

    l_dhcp_cnt NUMBER;

    l_cnt NUMBER;

    NUMBER of l_cnt_1;

    BEGIN

    OPEN c_stg_dhcp.

    Get the c_stg_dhcp COLLECT in BULK IN l_stg_dhcp;

    BECAUSE me IN l_stg_dhcp. FIRST... l_stg_dhcp. LAST

    LOOP

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = l_stg_dhcp (i) .dhcp_token;

    IF l_dhcp_cnt < 1 THEN

    INSERT

    IN SUBNTWK

    (

    subntwk_nm

    )

    VALUES

    (

    l_stg_dhcp (i) .dhcp_token

    );

    DBMS_OUTPUT. Put_line ("token has been added: ' |") l_stg_dhcp (i) .dhcp_token);

    ON THE OTHER

    DBMS_OUTPUT. Put_line ("token is already present'");

    END IF;

    WHEN l_stg_dhcp EXIT. COUNT = 0;

    END LOOP;

    commit;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    for link -.

    coil load_link.log

    Set serveroutput on

    DECLARE

    l_cmts_1 VARCHAR2 (4000 CHAR);

    l_cmts_add VARCHAR2 (200 CHAR);

    l_dhcp_cnt NUMBER;

    l_cmts_cnt NUMBER;

    l_link_cnt NUMBER;

    l_add_link_nm VARCHAR2 (200 CHAR);

    BEGIN

    FOR (IN) r

    SELECT dhcp_token, cmts_to_add | ',' cmts_add

    OF stg_link_data

    )

    LOOP

    l_cmts_1: = r.cmts_add;

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    SELECT COUNT (1)

    IN l_dhcp_cnt

    OF subntwk

    WHERE subntwk_nm = r.dhcp_token;

    IF l_dhcp_cnt = 0 THEN

    DBMS_OUTPUT. Put_line ("device not found: ' |") r.dhcp_token);

    ON THE OTHER

    While l_cmts_add IS NOT NULL

    LOOP

    l_add_link_nm: = r.dhcp_token |' _TO_' | l_cmts_add;

    SELECT COUNT (1)

    IN l_cmts_cnt

    OF subntwk

    WHERE subntwk_nm = TRIM (l_cmts_add);

    SELECT COUNT (1)

    IN l_link_cnt

    LINK

    WHERE link_nm = l_add_link_nm;

    IF l_cmts_cnt > 0 AND l_link_cnt = 0 THEN

    INSERT INTO link (link_nm)

    VALUES (l_add_link_nm);

    DBMS_OUTPUT. Put_line (l_add_link_nm |) » '||' Has been added. ") ;

    ELSIF l_link_cnt > 0 THEN

    DBMS_OUTPUT. Put_line (' link is already present: ' | l_add_link_nm);

    ELSIF l_cmts_cnt = 0 then

    DBMS_OUTPUT. Put_line (' no. CMTS FOUND for device to create the link: ' | l_cmts_add);

    END IF;

    l_cmts_1: = TRIM (SUBSTR (l_cmts_1, INSTR (l_cmts_1, ',') + 1));

    l_cmts_add: = TRIM (SUBSTR (l_cmts_1, 1, INSTR (l_cmts_1, ',') - 1));

    END LOOP;

    END IF;

    END LOOP;

    COMMIT;

    EXCEPTION

    WHILE OTHERS THEN

    Dbms_output.put_line ('ERROR' |) SQLERRM);

    END;

    /

    output

    control files -

    DOWNLOAD THE DATA

    INFILE 'cmts_data.csv '.

    ADD

    IN THE STG_CMTS_DATA TABLE

    When (cmts_token! = ") AND (cmts_token! = 'NULL') AND (cmts_token! = 'null')

    and (cmts_ip! = ") AND (cmts_ip! = 'NULL') AND (cmts_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:cmts_token))' cmts_token,

    cmts_ip ' RTRIM (LTRIM(:cmts_ip)) ")". "

    for dhcp.


    DOWNLOAD THE DATA

    INFILE 'dhcp_data.csv '.

    ADD

    IN THE STG_DHCP_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (dhcp_ip! = ") AND (dhcp_ip! = 'NULL') AND (dhcp_ip! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    dhcp_ip ' RTRIM (LTRIM(:dhcp_ip)) ")". "

    for link -.

    DOWNLOAD THE DATA

    INFILE 'link_data.csv '.

    ADD

    IN THE STG_LINK_DATA TABLE

    When (dhcp_token! = ") AND (dhcp_token! = 'NULL') AND (dhcp_token! = 'null')

    and (cmts_to_add! = ") AND (cmts_to_add! = 'NULL') AND (cmts_to_add! = 'null')

    FIELDS TERMINATED BY ' |' SURROUNDED OF POSSIBLY "" "

    TRAILING NULLCOLS

    ('RTRIM (LTRIM (:dhcp_token))' dhcp_token,

    cmts_to_add TANK (4000) RTRIM (LTRIM(:cmts_to_add)) ")" ""

    SHELL SCRIPT-

    If [!-d / log]

    then

    Mkdir log

    FI

    If [!-d / finished]

    then

    mkdir makes

    FI

    If [!-d / bad]

    then

    bad mkdir

    FI

    nohup time sqlldr username/password@SID CONTROL = load_cmts_data.ctl LOG = log/ldr_cmts_data.log = log/ldr_cmts_data.bad DISCARD log/ldr_cmts_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    nohup time username/password@SID @load_cmts.sql

    nohup time sqlldr username/password@SID CONTROL = load_dhcp_data.ctl LOG = log/ldr_dhcp_data.log = log/ldr_dhcp_data.bad DISCARD log/ldr_dhcp_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_dhcp.sql

    nohup time sqlldr username/password@SID CONTROL = load_link_data.ctl LOG = log/ldr_link_data.log = log/ldr_link_data.bad DISCARD log/ldr_link_data.reject ERRORS = BAD = 100000 LIVE = TRUE PARALLEL = TRUE &

    time nohup sqlplus username/password@SID @load_link.sql

    MV *.log. / log

    If the problem I encounter is here for loading data in the link table that I check if DHCP is present in the subntwk table, then continue to another mistake of the newspaper. If CMTS then left create link to another error in the newspaper.

    Now that we can here multiple CMTS are associated with unique DHCP.

    So here in the table links to create the link, but for the last iteration of the loop, where I get separated by commas separate CMTS table stg_link_data it gives me log as not found CMTS.

    for example

    DHCP-1-1-1. WNLB-CMTS-01-1,WNLB-CMTS-02-2

    Here, I guess to link the dhcp-1-1-1 with balancing-CMTS-01-1 and wnlb-CMTS-02-2

    Theses all the data present in the subntwk table, but still it gives me journal wnlb-CMTS-02-2 could not be FOUND, but we have already loaded into the subntwk table.

    same thing is happening with all the CMTS table stg_link_data who are in the last (I think here you got what I'm trying to explain).

    But when I run the SQL scripts in the SQL Developer separately then it inserts all valid links in the table of links.

    Here, she should create 9 lines in the table of links, whereas now he creates only 5 rows.

    I use COMMIT in my script also but it only does not help me.

    Run these scripts in your machine let me know if you also get the same behavior I get.

    and please give me a solution I tried many thing from yesterday, but it's always the same.

    It is the table of link log

    link is already present: dhcp-1-1-1_TO_wnlb-cmts-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-02-2

    link is already present: dhcp-1-1-2_TO_wnlb-cmts-03-3
    link is already present: dhcp-1-1-2_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-5

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-01-1

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-8
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-6
    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-0

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-03-3

    link is already present: dhcp-1-1-5_TO_wnlb-cmts-02-2
    link is already present: dhcp-1-1-5_TO_wnlb-cmts-04-4

    NOT FOUND CMTS for device to create the link: wnlb-CMTS-05-7

    Device not found: wnlb-dhcp-1-13

    IF NEED MORE INFORMATION PLEASE LET ME KNOW

    Thank you

    I felt later in the night that during the loading in the staging table using UNIX machine he created the new line for each line. That is why the last CMTS is not found, for this I use the UNIX 2 BACK conversion and it starts to work perfectly.

    It was the dos2unix error!

    Thank you all for your interest and I may learn new things, as I have almost 10 months of experience in (PLSQL, SQL)

  • Need help with PL/SQL so and then select

    Hello guys, I am new to the PL/SQl programming (only Java experience) and I'm pretty stuck to my task. It would be great if you could help me. I am in programming with Oracle SQL * Plus Version 10.2.0.3.0

    Whenever a user logs on to the server a database entry is created with information about the logged-on user. I need to create a PL/SQL command that selects all the information from last month. Unfortunately, the date_stamp column has a certain weird format: 1131210 for December 10, 2013


    My idea so far:


    DECLARE

    v_today NUMBER;

    BEGIN

    v_today: = TO_NUMBER (TO_CHAR (SYSDATE, 'MM'));       -Save the number of the month (e.g.12) in v_today

    IF v_today = 01 THEN

    SELECT * from audittrl

    WHERE the date_stamp between 1131201 AND the 1131231;

    ELSIF v_today = 02 THEN

    SELECT * from audittrl

    WHERE the date_stamp between the 1130131 AND 1130101;

    .......

    END IF;

    END;

    /

    Error code: "an INTO clause in this SELECT statement.

    I do not want to save the result to select a variable, hope you can help me. Thanks in advance.

    Hello

    6a4d1bcd-c00e-4dac-AB64-9b6bdb1652d1 wrote:

    Thanks, I'll try that, if still get caught once, I'll be back. Anway I'm not sure of the solution of Chris227, because I can't test it right now. From my point of view it gives you information the current month (e.g., December) and not the month previous (-online November), or have I missed something. ?

    You are right.  In addition, it does not for a given year.  If you have data from several years in the table, it will select lines for the month of December 2012, 2011, 2010,... but also of 2013.

    Here's a way to get around that:

    DECLARE

    prev_month_start PLS_INTEGER: = TO_NUMBER (TO_CHAR (ADD_MONTHS (SYSDATE-1)

    , "YYMM"1' "01"

    )

    );

    this_month_start PLS_INTEGER: = TO_NUMBER (TO_CHAR (SYSDATE

    , "YYMM"1' "01"

    )

    );

    BEGIN
    FOR (IN) rec
    SELECT *.
    Of audittrl
    WHERE the date_stamp > = prev_month_start
    AND date_stamp< >
    ORDER BY user_id, date_stamp - or other

    )
    LOOP
    dbms_output.put_line (rec.date_stamp);
    dbms_output.put_line (rec.event);
    dbms_output.put_line (rec.user_id)
    dbms_output.put_line (rec.host_name);
    END LOOP;
    END;

    This should also be more effective, because it will allow the optimizer to use an index on date_stamp.  Even if there is no index, it will be more effective because it avoids calling any function (for example, SUBSTR) on each line of the table.

    You needn't PL/SQL to get these results.  Just use SQL, you might say:

    SELECT event, host_name, user_id and date_stamp
    Of audittrl
    WHERE the date_stamp > = TO_NUMBER (TO_CHAR (ADD_MONTHS (SYSDATE-1)
    , "YYMM"1' "01"
    )
    )
    AND date_stamp<  to_number="" (="" to_char="" (="" sysdate="" to_number="" (="" to_char="" (="">


    , "YYMM"1' "01"
    )
    )

    ORDER BY user_id, date_stamp - or other

    ;

    Your front end will provide column headers and touch the data so that the columns line up.  It can also set the output to a file.  (For example, if your front-end is SQL * Plus, you can use the command of the COIL.)

    I guess date_stamp is a NUMBER.  If it is a string, the solutions above can be simplified a bit.

    This problem (and many other problems) would be so much simpler if date_stamp was a DATE column.  Using numbers or strings to store the date information is simply asking for trouble.

  • Start threading with another processID, and then close the application

    Hello

    It is a delicate issue, so maybe something for all wizards among us

    OS 4.6.0 9000 "BOLD", put to the test through Wifi and 3 G networks

    As far as my knowledge about operating systems goes, it is not possible to start a process of your own application, close the application and then update the application. This is because the process began has the processID of the app as a parentID. So long as the process is running the application is running and access its files of cod.

    I'm trying to get an update mechanism in my application. At the moment I am citing a new private and out of my application (via the call onClose() on all the screens on the stack or the System.exit (0)) after the start of the thread of displayPage() browsersessions. I know, that probably would never work, but it is the simplest approach and worth a try. With the two variants to close the parent application ota download starts but hangs at about 10%. I guess that's because then a cod of the application file is tried to be crushed. The following threads and knowledge previously mentioned on OSs, it would be the point where the application must be fully completed.

    Now, even after all ways to close an app I know... even if I try to reinstall on OTA via the external browser, download hangs at 10% (App closed before!). Seems I have the same problem as this guy, but calling onClose on all screens does not solve him.

    Screw on the problems to kill a bb - app

    After the crash, the machine stops and restarts. Unless I start the app again once I'm able to reinstall via OTA Download in the external browser. This brings me to some open handles that could be left by my application close. Is it possible to really put an end to the application without the remains? In the following article, I read that there is some app cleaner memory running in the background. A cleaning of my application data can be requested manually when closing?

    Thread mentioning the cleaner memory application

    Article on cleaning memory

    Another approach, that I thought would write a separat Updater app. It would be installed via OTA on the original app (does not affect the files of applications). Then the application closes, the update must be run manually by the user. It will offer an opening to private download ota of the new app problem is still that the download would crash unless the former PPP has been terminated correctly before.

    Any ideas on this subject?

    Rob has soon

    Thanks Jerome,.

    He will give a try.

    Regarding the problem of update: call the external browser works fine, the only thing to be wary of is not to close the app but just ask the application to get to bottom:

    synchronized(UiApplication.getEventLock()) {
        synchronized (PersistentStore.getSynchObject()) {
            UiApplication.getUiApplication().requestBackground();
        }
    }
    

    from the download ota after that works almost perfectly (browser cache needs to be cleared before, cod size is 650 kb).

    Regarding the intelligent programming, I found this:

    Article on installing and updating applications programmatically

  • Hi, I need to activate my Adobe CS3 on a new computer because my old is dead and I'm having trouble. Tried the average normal recording then connected with my Adobe ID and can see the software code and activation already registered. How to get o

    Hi, I need to activate my Adobe CS3 on a new computer because my old is dead and I'm having trouble. Tried the average normal recording then connected with my Adobe ID and can see the software code and activation already registered. How to get it on my computer saved?

    If your two activation is used, you need to call Adobe. Install CS3 point of activation and call Adobe at this time here.  They help in cases like your My drive crashed and I replaced it. Could not disable the activation of the accident.  I've done that twice in the years I use PS for about 20 years

    To see your key, you must click on the product in your products and services Adobe page.

  • [JS, CS3] Please help - need to find text and then insert to find

    Hi all

    I have a clever script that I use to make fractions by inserting a textframe inline.  It has a dialog box that allows you to enter the numerator and the denominator.

    Now, I would like to change this script to search for fractions in the text (for example, 5/16) and replace this part with my textframe inserted automatically.

    The problem is I can not understand how to find the word containing the character slash and then to get the insertion point, so I can add my textframe as an inline.  Once I found the word with the slash (fraction), I think I can split the fraction in the slash content for the numerator and the denominator.  Just can't pop than textframe there at this time and replace the word.

    Have I made this pretty clear to anyone who might be able to help?

    Kind regards

    Len Swierski

    Hey Len,

    You sent me on a journey into the past. I wrote about this issue very soon after CS hit the street with JavaScript for the first time. On this page:

    http://www.pdsassoc.com/index.php?NAV=javassub&ban=SettingFractions&info=jstutorials/Setti ngFractions/index.html

    you will find that I think it's a relevant discussion. I required the user to select a slash but this is where you will be after your script has found a slash. I hope this helps. I was maybe a little pedantic on this page, but this is all very new at the time.

    Dave

  • How will I know if I have KB926044 on my XP with SP3 & IIS installed and all updates installed

    Re: ESET Antivirus Rescue CD & KB926044

    The above application requires that I have the Windows Automated Installation Kit (Windows AIK) installed and that KB926044 is installed on my XP with SP3 & IIS installed and all updates installed.

    Is there a way I can check that KB926044 is installed?

    Hello

    I want you to know that the Services IIS and IIS can be installed only on Windows XP Professional. Microsoft Windows XP Home edition users are not given the ability to add IIS in the typical method. Using the method "Add / Remove Programs' in the control panel would be nice, but only the XP Professional edition allows.

    View a list of updates installed on your computer, follow these steps.

    Open Add or remove programs.

    At the top right, select the Show updates check box. All installed updates appear at the top of your list of programs.

    Notes: To open Add / Remove Programs, click Start, click Control Panel, and then double-click on Add / Remove Programs.

    You can also view your history for installation on the Windows Update Web site (http://www.microsoft.com).

    You can contact Eset customer service here: http://go.eset.com/us/support/contact/s1/#

    I hope this helps.

  • How do I register a very old acrobat from adobe and then download the upgrade? It seems that the serial number is not consistent with the serial number required by the adobe Web site. My serial number starts with the letter instead numbers.

    How do I register a very old acrobat from adobe and then download the upgrade? It seems that the serial number is not consistent with the serial number required by the adobe Web site. My serial number starts with the letter instead numbers.

    Please see:

    Redeem your student and teacher edition purchase, convert a redemption code to a number of series and much more .

    I hope this helps.

    Concerning

    Megha Rawat

  • Insert and update the nested table

    Hello

    I created a nested table containing the following columns. I need to insert records into the nested table. And also I have to update the nested table. Please find below my table and get error message.

    Please advose...!
    SQL> create type details as object(
      2  basic number(7,2),
      3  da number(6,2),
      4  hra number(6,2),
      5  pf number(6,2),
      6  it number(6,2),
      7  gross number(7,2),
      8  ded number(6,2),
      9  net number(8,2));
     10  /
    
    Type created.
    
    SQL> create type details_t is table of details;
      2  /
    
    Type created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  create table emp_tab(empno number(4),name varchar2(10),details_tab details_t)
      2* nested table details_tab store as empl_details
    SQL> /
    
    Table created.
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1* insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null)))
    SQL> /
    Enter value for empno: 1
    Enter value for name: asdf
    Enter value for da: 120
    Enter value for hra: 130
    Enter value for pf: 120
    Enter value for it: 120
    old   1: insert into emp_tab values(&empno,'&name',details_t(details(&da,&hra,&pf,&it,null,null,null
    new   1: insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
    insert into emp_tab values(1,'asdf',details_t(details(120,130,120,120,null,null,null)))
                                                 *
    ERROR at line 1:
    ORA-02315: incorrect number of arguments for default constructor
    Can I use '&' while inserting records in the nested table? Yes / No?

    I do need to update also net gross, ded, columns... !!

    Please help me... !!

    Concerning
    A
    $ sqlplus scott/tiger
    
    SQL*Plus: Release 10.2.0.2.0 - Production on Thu Apr 21 16:18:16 2011
    
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> CREATE TYPE details AS OBJECT(
     basic NUMBER(7,2),
     da NUMBER(6,2),
     hra NUMBER(6,2),
     pf NUMBER(6,2),
     it NUMBER(6,2),
     gross NUMBER(7,2),
     ded NUMBER(6,2),
     net NUMBER(8,2));  2    3    4    5    6    7    8    9
     10  /
    
    Type created.
    
    SQL> CREATE TYPE details_t IS TABLE OF details;
      2  /
    
    Type created.
    
    SQL> CREATE TABLE emp_tab(empno NUMBER(4),name VARCHAR2(10),details_tab details_t)
     NESTED TABLE details_tab store as empl_details  2
      3  /
    
    Table created.
    
    SQL> INSERT INTO emp_tab VALUES(7001,'Saubhik',details_t(details(100,100,50,10,10,null,null,null)));
    
    1 row created.
    
    SQL> SELECT * FROM TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001);
    
         BASIC         DA        HRA         PF         IT      GROSS        DED
    ---------- ---------- ---------- ---------- ---------- ---------- ----------
           NET
    ----------
           100        100         50         10         10
    
    SQL> ^C
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  UPDATE TABLE (SELECT details_tab FROM emp_tab WHERE empno=7001)
      2     emp_sal
      3*    SET emp_sal.net=emp_sal.basic+emp_sal.da+emp_sal.hra
    SQL> /
    
    1 row updated.
    
    SQL> SELECT * FRM emp_tab;
    SELECT * FRM emp_tab
             *
    ERROR at line 1:
    ORA-00923: FROM keyword not found where expected
    
    SQL> SELECT * FROM emp_tab;
    
         EMPNO NAME
    ---------- ----------
    DETAILS_TAB(BASIC, DA, HRA, PF, IT, GROSS, DED, NET)
    --------------------------------------------------------------------------------
          7001 Saubhik
    DETAILS_T(DETAILS(100, 100, 50, 10, 10, NULL, NULL, 250))
    
    SQL>
    
  • When I click on a link in a new tab is no longer open in Firefox. Now, I have to copy the link, manually open a tab and then paste the link. Simply, this started happening a few days ago and I haven't changed anything in my settings. Can anyone help?

    When I click on a link in a new tab is no longer open in Firefox. Now, I have to copy the link, manually open a tab and then paste the link. Simply, this started happening a few days ago and I haven't changed anything in my settings. Can anyone help? Thank you

    This problem may be caused by an extension that is not working properly.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • As a plug-in?  I have problems with an editable IRS form.   It gives me "Access denied" and then opens the file as an editable file.  I was able to open the form in the library.

    As a plug-in?  I have problems with an editable IRS form.   It gives me "Access denied" and then opens the file as an editable file.  I was able to open the form in the library.

    I found a few other questions on this forum who have remained unanswered.   I found a site citing the problem for drive X - I use XI.

    Change to drive XI.   Perhaps the reader at the library had this as its default setting.

    1. In Adobe Reader, clear the check box enable the Mode protected at startup :

      • If you have a PDF open, right-click the document, and then click Page Display Preferences.
      • If you open Adobe Reader from the shortcut, click on Edit > Preferences.
    2. In the categories dialog box Preferences pane, click (enhanced) protection, and then clear the box enable the Mode protected at startup .
    3. Close and reopen Reader.

    I have no idea if that setting has been changed in my XI player since I used this version exactly one year ago.

  • I'm Swedish in Sweden. And I installed Adobe for a trial period of 30 days. The menus are in Swedish, but when I want to start and then editing the language changes in Finnish, a language completely different to almost all other languages. Help!

    I'm Swedish in Sweden. And I installed Adobe for a trial period of 30 days. The menus are in Swedish, but when I want to start and then editing the language changes in Finnish, a language completely different to almost all other languages. Help!

    Hello

    This link might help: changing the language setting of your Cloud Creative applications

    Kind regards

    Sheena

Maybe you are looking for

  • How to restore a category deleted bookmarks?

    I deleted inadvertently in my 'Other' bookmarks category, not just a single file. How to recover and restore all of the category?

  • HP Pavilion 15-n057sr: AMD graphics card does not work on windows 10

    Hello! I have an AMD graphics card in my laptop, but there is no drivers for windows 10 forher. Installation driver Windows 8.1, latest drivers from amd or windows has always led to a screen of death, and after him, he appears each time you start. To

  • Where's my photos download status bar?

    I make videos of my photos on an external hard drive. With iPhoto, there used there will be a download status bar that would jump by telling me how much time was left until the file has been transferred. Now, nothing is still show that he is working

  • Factory Image tab A10

    Where can I download and how do I install the factory for Lenovo tab A10 image?

  • How do we install VPN on Server 2008 R2?

    How do we install VPN on Server 2008 R2 edition? I followed so many tutorials on youtube but doesn't seem to work! My goal is to be able to give access to my server remotely and access shared files and folders that I have activated. The only way I ca