Plsql insert statement.  urgent help needed

Hi all oracle gurus
I am trying to insert a value which is difference between two dates, for that reason i am doing (" rec_jag_promos.end_date -rec_jag_promos.start_date") inside my insert statement.
but it is not working. my plsql code is running but not giving me any o/p.
Here what i am trying to do is i want to insert DAYS value into my table which is between start date and end date.
........its not working . please guide me or correct me.
Below is part of my querry ........
Thanks
-- migrate data
FOR rec_jag_promos IN cur_jag_promos
LOOP
v_jag_count := v_jag_count + 1;
BEGIN
v_wots_hot_id := rec_jag_promos.promotion_id;
-- this call will throw and exception 0 or many regions found
v_region_id := get_region_id( rec_jag_promos.promotion_id, rec_jag_promos.region_display_type );
INSERT INTO wotif_promo.WOTS_HOT
( id, country_code,
start_date, end_date,inventory_source_id,hotel_id,
rate_plan_code,region_id,blurb, modified_username,
version,DAYS_ACTIVE )
VALUES
( v_wots_hot_id, rec_jag_promos.country_code,
rec_jag_promos.start_date, rec_jag_promos.end_date,v_inv_source_id,rec_jag_promos.hotel_id,
rec_jag_promos.rate_plan_code, v_region_id, rec_jag_promos.blurb, rec_jag_promos.modified_username,
1, rec_jag_promos.end_date-rec_jag_promos.start_date);
v_wots_hot_inserts := v_wots_hot_inserts + 1;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
v_wots_hot_errs := v_wots_hot_errs + 1;
END;

I am trying to insert a value which is difference between two dates, for that reason i am doing (" rec_jag_promos.end_date -rec_jag_promos.start_date") inside my insert statement.
........its not working . please guide me or correct me.
Below is my file ........
Thanks
DECLARE
-- cursors
CURSOR cur_inventory_source IS
select id
from wotif_common.inventory_source
where SHORT_DESCRIPTION = 'wotif';
CURSOR cur_jag_promos IS
select wh.id as wots_hot_id, p.id as promotion_id, cty.iso_countrycode as country_code,
wh.blurb, dm.propid as hotel_id,
p.startdts as START_DATE, p.expirydts as END_DATE,
wa.username as modified_username, rt.roomtypecode as rate_plan_code,
dm.dealdate as hot_date, dm.advertisedrate as price,
wh.REGIONDISPLAYTYPE as region_display_type
from wotif_web.PROM_wots_hot wh
join wotif_web.PROMOTION p on wh.promotionid=p.id
join wotif_web.country cty on p.countrycode=cty.countrycode
join wotif_web.deal_master dm on wh.dealid=dm.dealid
join wotif_web.prop_master_room_type rt on rt.proproomtypeid=dm.proproomtypeid
join wotif_web.wotif_administrator wa on p.adminid = wa.administratorid
where p.expirydts < trunc(sysdate) ---> TRUNC(sysdate)
order by wh.id;
-- variables
v_debug BOOLEAN := FALSE;
v_nls_length_semantics VARCHAR2(255);
v_jag_count INTEGER := 0;
v_inv_source_id WOTIF_COMMON.INVENTORY_SOURCE.ID%TYPE;
v_wots_hot_id WOTIF_PROMO.WOTS_ON.ID%TYPE;
v_wots_hot_day_id WOTIF_PROMO.WOTS_ON_DAY.ID%TYPE;
v_wots_hot_inserts INTEGER := 0;
v_wots_hot_day_inserts INTEGER := 0;
v_wots_hot_errs INTEGER := 0;
v_wots_hot_rate_plan_errs INTEGER := 0;
v_wots_hot_day_errs INTEGER := 0;
v_region_id wotif_promo.WOTS_HOT.region_id%TYPE;
-- variables
FUNCTION get_region_id
p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
p_region_type_enum IN wotif_web.PROM_WOTS_HOT.regiondisplaytype%TYPE
) RETURN NUMBER
IS
CURSOR cur_sub_region
p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
) IS
select reg.region_id as REGION_ID
from wotif_web.PROM_WOTS_HOT wh
join wotif_web.PROPERTY_REGION reg on wh.propid = reg.prop_id
where wh.promotionid = p_promotion_id
and reg.region_type = p_region_type;
CURSOR cur_region
p_promotion_id IN wotif_web.PROMOTION.id%TYPE,
p_region_type IN wotif_web.PROPERTY_REGION.region_type%TYPE
) IS
select NVL(reg.parent_id, reg.id) as REGION_ID
from wotif_web.PROM_WOTS_HOT wh
join wotif_web.PROPERTY_REGION prop_reg on wh.propid = prop_reg.prop_id
join wotif_web.region reg on prop_reg.region_id = reg.id
where wh.promotionid = p_promotion_id
and prop_reg.region_type = p_region_type;
v_region_id wotif_web.PROPERTY_REGION.region_id%TYPE;
BEGIN
-- if region A
IF p_region_type_enum = 0
THEN
OPEN cur_region( p_promotion_id, 'A' );
FETCH cur_region INTO v_region_id;
CLOSE cur_region;
END IF;
-- if region B
IF p_region_type_enum = 2
THEN
OPEN cur_region( p_promotion_id, 'B' );
FETCH cur_region INTO v_region_id;
CLOSE cur_region;
END IF;
-- if sub_region A
IF p_region_type_enum = 1
THEN
OPEN cur_sub_region( p_promotion_id, 'A' );
FETCH cur_sub_region INTO v_region_id;
CLOSE cur_sub_region;
END IF;
-- if sub_region B
IF p_region_type_enum = 3
THEN
OPEN cur_sub_region( p_promotion_id, 'B' );
FETCH cur_sub_region INTO v_region_id;
CLOSE cur_sub_region;
END IF;
RETURN v_region_id;
END get_region_id;
-- main block
BEGIN -- outer block
-- initialise
DBMS_OUTPUT.enable( 1000000 );
-- validate
EXECUTE IMMEDIATE 'alter session set NLS_LENGTH_SEMANTICS = ''CHAR''';
SELECT VALUE
INTO v_nls_length_semantics
FROM NLS_SESSION_PARAMETERS
WHERE PARAMETER = 'NLS_LENGTH_SEMANTICS';
DBMS_OUTPUT.put_line('nls length semantics: ' || v_nls_length_semantics);
IF v_nls_length_semantics 'CHAR' THEN
RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: NLS_LENGTH_SEMANTICS set incorrectly');
END IF;
OPEN cur_inventory_source;
FETCH cur_inventory_source INTO v_inv_source_id;
CLOSE cur_inventory_source;
DBMS_OUTPUT.put_line('v_inv_source_id: ' || v_inv_source_id);
IF v_inv_source_id IS NULL THEN
RAISE_APPLICATION_ERROR( -20005, 'PROMO_MIGRATION ERROR: v_inv_source_id not set');
END IF;
-- migrate data
FOR rec_jag_promos IN cur_jag_promos
LOOP
v_jag_count := v_jag_count + 1;
BEGIN
v_wots_hot_id := rec_jag_promos.promotion_id;
-- this call will throw and exception 0 or many regions found
v_region_id := get_region_id( rec_jag_promos.promotion_id, rec_jag_promos.region_display_type );
INSERT INTO wotif_promo.WOTS_HOT
( id, country_code,
start_date, end_date,inventory_source_id,hotel_id,
rate_plan_code,region_id,blurb, modified_username,
version,DAYS_ACTIVE )
VALUES
( v_wots_hot_id, rec_jag_promos.country_code,
rec_jag_promos.start_date, rec_jag_promos.end_date,v_inv_source_id,rec_jag_promos.hotel_id,
rec_jag_promos.rate_plan_code, v_region_id, rec_jag_promos.blurb, rec_jag_promos.modified_username,
*1, rec_jag_promos.end_date -rec_jag_promos.start_date);*
v_wots_hot_inserts := v_wots_hot_inserts + 1;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
v_wots_hot_errs := v_wots_hot_errs + 1;
END;
-- insert single mandatory wots_hot_day
BEGIN
v_wots_hot_day_id := wotif_promo.wots_hot_day_seq.nextval;
INSERT INTO wotif_promo.wots_hot_day
( id, wots_hot_id, hot_date, price )
VALUES
( v_wots_hot_day_id, v_wots_hot_id, rec_jag_promos.hot_date, rec_jag_promos.price );
v_wots_hot_day_inserts := v_wots_hot_day_inserts + 1;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT DAYS Insert Error on wots_hot_id : ' || rec_jag_promos.wots_hot_id );
DBMS_OUTPUT.PUT_LINE( SQLCODE || ' ' || SQLERRM );
v_wots_hot_day_errs := v_wots_hot_day_errs + 1;
END;
END LOOP; -- wots_hot loop
DBMS_OUTPUT.PUT_LINE( 'Jaguar wots hot count ' || NVL( v_jag_count,0) );
DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT' );
DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_inserts,0) );
DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_errs,0) );
DBMS_OUTPUT.PUT_LINE( ' ' );
DBMS_OUTPUT.PUT_LINE( 'WOTS_HOT_DAY' );
DBMS_OUTPUT.PUT_LINE( 'inserts ' || NVL( v_wots_hot_day_inserts,0) );
DBMS_OUTPUT.PUT_LINE( 'errors ' || NVL( v_wots_hot_day_errs,0) );
DBMS_OUTPUT.PUT_LINE( ' ' );
END; --outer block
commit;
select count(*) from wotif_promo.wots_hot;
select count(*) from wotif_promo.wots_hot_day;
select * from wotif_promo.wots_hot_day;
--commit;
--rollback;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • URGENT HELP NEEDED ... Tomcat Realm and JRE1.4 plug-in problem

    I have tried the Security Realm of Tomcat. Since I do not have
    an LDAP server, I decided to use the Tomcat-users.xml file in
    Tomcat\conf directory.
    I added the following lines of code in the web.xml file.
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>Entire Application</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
    <!-- NOTE: This role is not present in the default users file -->
    <role-name>webviewer</role-name>
    </auth-constraint>
    </security-constraint>
    <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Manager Application</realm-name>
    </login-config>
    The <role-name> "webviewer" is added into "Tomcat-Users.xml" as the following:
    <tomcat-users>
    <user name="test" password="password" roles="webviewer" />
    </tomcat-users>
    So, now when we type the url: http://localhost:8080/adbpdbre/default.htm, TOMCAT shows a dialog box asking for UserName: and Password:Now, only when we give the username and password, it shows the page. This is exactly what we want.
    But the problem now is, this default.htm page, has 5 links to 5 applets. The first time that I click on one of these links, the JRE plug of 1.4 shows a dialog again asking for the username and password. Till I dont provide the username and password the system doesnt go ahead and applet doesnt load. I do not want the JRE to ask me for the username/passwords again..How to avoid this ?
    Can you give me some more information on this. Ultimately in the production usage, we will be using LDAP and not Tomcat's memory realm.
    URGENT HELP NEEDED ... I need to get back to my client on this.
    Help would be v. much appreciated.

    In the config file, you 're essentially saying that you want Tomcat to prompt for usr/passw on every request (url-pattern = /*) made by a 'webviewer', and that's exactly what Tomcat is doing.
    Consider using specific url-patterns & roles for resources to be protected. If for now, all you need is to protect the first page, use a more specific url-pattern.
    Just an advice : if you'll be using LDAP in production, do not waste time with Tomcat's Security Realm and the BASIC authentication type, since the two have not much in common. Start reading doc on LDAP, and code a prototype, or even better, a vertical slice of the app (i.e a proof of concept).

  • URGENT HELP NEEDED - iPhone 3Gs no longer detected or charged by MacBook

    My iPhone 3Gs (3.1) has been running fine, until several hours ago today, when I plugged it to my MacBook, the iPhone is no longer detected - it doesn't show up in iTunes, nor it is charged. I tried opening iPhoto, and it wasn't there too. Not with Image Capture too. I tried charging it using the out-of-box wall charger using the same out-of-box USB cable I use for MacBook, and it can be charged without any problem. Then I put it into Recovery mode, and there iTunes can see it. I don't want to restore it before I figure out exactly what went wrong, as I don't want the restore process somehow gets stuck in the middle that the connection is lost again.
    I've tried reinstalled iTunes, including completely removal of Apple Mobile Device Support, as instructed by Apple. But still no luck.
    I've tried switching to another USB port of my MacBook. No luck.
    My iTunes is the latest 9.0.1, and my Mac OSX is 10.6.1. My iPhone is on 3.1, upgraded from 3.0.
    I've read from web that it seems I'm not the only one out there having this problem. But none of them seem having any real working solution.
    Urgent help needed & appreciated. Millions of thanks in advance.
    Gary

    1. I used both cables - theirs & mine ... and on several macs
    2. yes, same cable for wall & mac
    3. as said, i did completely remove & install itunes (incl. apple mobile device support), as instructed on the apple webpage
    anyway, did a restore just now. it seems okay now. but the problem is i have no idea what cause this, and i can't replicate the problem. so i don't know when it will happen again ... maybe a bug with os 3.1 ... others on web said os 3.1 is quite buggy ...

  • Urgent help needed, can I restore N900 Backup file...

    i owned a N900 (now sold out)
    before selling i took backup of contacts from backup restore option in application section
    now i bought a N8 but i m not able to restore my contacts
    1. is there any way to restore them in N8?
    2. if not, can i convert them in TEXT or any readable format
    urgent help needed
    thanks in advance

    The backup procedures built into the phone are only designed for restoring to the same phone (ie: in case or data corruption, software update or repair etc.), they can't usually be used to restore to a phone with a different operating system.
    You should have backed up with Ovi Suite before selling the N900, that would have been able to restore to the N8.

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Urgent help needed - new to Macs, accidently cut and paste over top of photo folder and now no sign of folder or file, no auto back-up in place, how can I restore photos pls

    Thanks for prompt reply, yes we have tried that but have now closed down the browser we where the photos were.
    We haven't sent up time machine, do you know whether there is any roll-back function on a Mac?
    Thanks

  • Urgent help needed with un-removable junk mail that froze Mail!!

    Urgent help needed with un-removable junk mail that froze Mail?
    I had 7 junk mails come in this morning, 5 went straight to junk and 2 more I junked.
    When I clicked on the Junk folder to empty it, it froze Mail and I can't click on anything, I had to force quit Mail and re-open it. When it re-opens the Junk folder is selected and it is froze, I can't do anything.
    I repaired permissions, it did nothing.
    I re-booted my computer, on opening Mail the In folder was selected, when I selected Junk, again, it locks up Mail and I can't select them to delete them?
    Anyone know how I can delete these Junk mails from my Junk folder without having to open Mail to do it as it would appear this will be the only solution to the problem.

    Hi Nigel
    If you hold the Shift key when opening the mail app, it will start up without any folders selected & no emails showing. Hopefully this will enable you to start Mail ok.
    Then from the Mail menus - choose Mailbox-Erase Junk Mail . The problem mail should now be in the trash. If there's nothing you want to retain from the Trash, you should now choose Mailbox- Erase Deleted Messages....
    If you need to double-check the Trash for anything you might want to retain, then view the Trash folder first, before using Erase Junk Mail & move anything you wish to keep to another folder.
    The shift key starts Mail in a sort of Safe mode.

  • IPhone 3G 8GB Crashes when syncing with iTunes. URGENT HELP NEEDED.

    I have latest iTunes and OS on my iPhone 3G...
    Every time i plug my iPhone in it begins to sync and then iTunes will freeze and not respond..
    I have tried re installing iTunes.. I can't reset my iPhone as i can't create a backup..
    URGENT HELP NEEDED PLEASE!

    I don't have an iphone, but if it's anything like my click-wheel ipod, a reset doesn't delete anything.
    It just resets the ipod's operating system, kind of like a PC restart. Did you try this Sleep/Wake button thing mentioned here?
    http://support.apple.com/kb/HT1737
    Maybe it's a podcast of voice memo causing the problem like it did for this person
    http://discussions.apple.com/message.jspa?messageID=10907809#10907809
    That's all I got. You might have better luck on an iPhone forum. Everyone there would probably have one. Like I said, I don't.

  • IPhone 4 reset itself, photos lost -URGENT HELP NEEDED

    Hi there,
    Urgent help needed!!
    Tonight I was taking extremely important photos throughout an event on my iPhone 4, however, my iPhone 4 ran out of battery once I was near a charger I plugged it in and for some reason my iPhone had reset itself. Back up icloud options were from yesterday, but the photos that I was taking at the event are needed urgently. Is there any way possible I can recover the photos that were taken?
    Thanks in advance!!!!

    Slymm71 wrote:
    just had similar problem got email from find my phone saying initiating full phone wipe this cannot be stopped ***? i own the phone from new and registerred in m name but wiped whilst i was using it !!!
    See your other post... 
    https://discussions.apple.com/message/18876037#18876037

  • Computer restarts when ipod is connected urgent help needed

    alright this is weird, I've had my ipod for ages and suddenly I go to plug it in and the computer slows down really really really slow and eventually just turns it self off, restarts and then sits in a black screen. if I leave the ipod plugged into the computer and restart it again it just goes straight back to the black screen, but both my ipod and computer work fine when there not connected. i have the latest version of itunes which seemed to help the first time i tried it actually started to update the ipod but then guess what the computer has another heart attack. urgent help needed please!!!

    if I leave the ipod plugged into the computer and restart it again it just goes straight back to the black screen
    Given this, I'd put it down to a flaky power supply in the computer. Might want to try using another computer or replacing the PSU.

  • User Exit for Material Group...Urgent help needed

    Does anybody have an idea of which user exit can be used to capture the changes made to material group in MM02(Material)..... Urgent help needed...

    See  the below user exit and this will trigger under MM01,MM02 and MM17 Transaction
    Enhancement name : MGA00001
    Function module :EXIT_SAPLMGMU_001
    Include : ZXMG0U02
    Reward Points if it is helpful.
    Thanks
    Seshu

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • Problem uninstalling MaxMSPRuntime on mac - urgent help needed

    Hello there,
    I've been using Cycle 74's MaxMSP Runtime version 5.1 for a while but recently had to witch to an earlier version to make some hardware function along side the Max runtime environment. The problem is that where i would usually just drag and drop Max 5.1 into the trash to uninstall it, for some reason, after i have done this and try to install the older version of Max, OSX wont let me install Max 4.0.8 as it says an updated version is currently installed. I have scoured my hard drive for the remanence of Max 5.1. and deleted everything i've found. Is there a way of overriding macosx and getting it to replace Max5.1 with an older version?
    Urgent help needed as i am playing a show this weekend and currently am not able to get my equipment to function.
    A shiny nickel for the one who saves my ***.
    Thanks
    Henry

    Hi- Try this...
    If you can, reinstall or use time machine to recover your recently deleted MaxMSP Runtime 5.1.
    Then, download AppZapper. It is a utility that helps you cleanly delete programs off your mac. It is free for the first 5 uses.
    http://appzapper.com/
    Then, install AppZapper, and then go ahead and drag the MaxMSP Runtime 5.1 into it, and it should hopefully get rid of the pesky program

  • Recovering windows XP -Urgent help needed

    I am new to Toshiba. I hav a 60 GB hard disk with no partition and windows XP home installed. I want to partition the hard disk now. Now after formatting the hard disk do i lose Windows XP HE completely or is there chance to recover it and reinstall it. Urgent help needed.

    Hi
    You can reinstall your notebook using Recovery CD. It is easiest and fastest way to reinstall OS, all necessary drivers and tools. Put Recovery CD into DVD-ROM, start notebook and press down C button. At the beginning there is choice between two kinds of installation (Standard mode and expert mode).
    If you choose the first one whole HDD will be formatted and used for OS installation. With second one (expert mode) it is possible to install OS on first partition. It is also possible to define how big the partition should be.
    Try it. It is very simple to do it.
    Good luck

  • Urgent help needed... PL/SQL Insert statement

    Hi...
    I need some urgent help on this project. I have a 2 column table with values that need to be inserted into another existing table which has a sequence.
    This is the 2 column table:
    FUND YEAR
    29587 05
    29587 07
    Existing table:
    Name Null? Type
    LIST_ID NOT NULL NUMBER(6) -- This is a sequence
    WEB_USER_ID NOT NULL VARCHAR2(10)
    RESOURCE_TYPE NOT NULL VARCHAR2(8)
    LIST_TYPE NOT NULL VARCHAR2(10)
    LIST_NAME NOT NULL VARCHAR2(50)
    LIST_CODE_1 NOT NULL VARCHAR2(6) -- FUND from table above
    LIST_CODE_2 NOT NULL VARCHAR2(6) -- YEAR from table above
    LIST_CODE_3 NOT NULL VARCHAR2(6)
    LAST_UPDATED_DT NOT NULL DATE
    LAST_UPDATED_BY NOT NULL VARCHAR2(10)
    LIST_CODE_4 NOT NULL VARCHAR2(20)
    The columns from table 1 (FUND, YEAR) correspond to columns (LIST_CODE_1, LIST_CODE_2) in table 2. The column LIST_ID is a sequence. I can put in sysdate for LAST_UPDATED_DT and my initials SN for LAST_UPDATED_BY. This is going to be for 2 unique WEB_USER_IDs which would be in the WHERE clause. I will be inserting 2200 rows for each id. A single insert statement would look like this -
    INSERT INTO EXISTING_TBL (list_id,web_user_id,resource_type,list_type,list_name,list_code_1,list_code_2,list_code_3,list_code_4,last_updated_dt,last_updated_by) VALUES ('470027','WEBUSER','GL','FUNDFYF',' FUND BALANCE SUM','12010','01',' ',' ',{ts '2010-5-19 10:16:9'},'SN')
    How would I do this to insert the 2200 values from my 2 column table to the existing table?
    All help is greatly appreciated!!
    SN

    Hello ,
    I think this will work
    INSERT INTO TABLE2
         LIST_ID,
         WEB_USER_ID,
         RESOURCE_TYPE,
         LIST_TYPE,
         LIST_NAME,
         LIST_CODE_1,
         LIST_CODE_2,
         LIST_CODE_3,
         LIST_CODE_4,
         LAST_UPDATED_DT,
         LAST_UPDATED_BY
    SELECT
         SEQ.NEXTVAL,
         FUND,
         YEAR,
         <VALUE FOR RESOURCE_TYPE>,
         <VALUE FOR LIST_TYPE>,
         <VALUE FOR LIST_NAME>,
         <VALUE FOR LIST_CODE_1>,
         <VALUE FOR LIST_CODE_2>,
         <VALUE FOR LIST_CODE_3>,
         <VALUE FOR LIST_CODE_4>,
         SYSDATE,
         'SN'
    FROM
         TABLE1
    REGARDS
    Rahul Sharma

Maybe you are looking for

  • Can some one tell me a better way...

    Hi All.. I work on a web application. I create user ids for people logging into my application. here I have a small problem.. This is what I am currently doing... When I create a new user, I assign a new user id to the user and store all hi info. All

  • How to find out what access a group has

    Hello. I inherited a portal that has a lot of groups & some of which do not appear to be in use from what I can see. I would like to get rid of these groups if they are no longer viable. So, I would like to know if there are any api's that I could us

  • Lookup values to edit data

    Hi. Is it possible to have a lookup list on the table records grid for a column that happens to be a foreign key to another table? Say, I want to have a departments lookup list for the departments column in the employees table. Thanks.

  • How to create a new instance of a global activity

    Hi, I have one global activity and three interactive tasks. I need a mechanism, which allows me to invoke the global activity from the interactive tasks. The global activity should have some information of the task that invoked it and initiate anothe

  • HT1539 What do I do if there is no digital copy code.

    I'm trying to copy the expendables but there is no digital copy code...? How do I copy it?