Need suggestion in BENEFITS for a STD Plan

My client has STD plan with standard 60% and 100% coverage, But the no. of weeks employee gets 100% coverage depends on employee's years of service. And the cost is 1.45 per $1000 of coverage....max 12,000
Ex:
  <u>Years of Service</u>         -
               <u>weeks payed at 100%</u>
           under 1----
      0
            1 to 2 -
     2
             2 to 3----
     4
etc ....
How can we accommodate these conditions of 100% coverage for different weeks?
Thanks in advance for your help and time..
regards

drop the loop
DELETE FROM tab2 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
DELETE FROM tab3 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
DELETE FROM tab4 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
DELETE FROM tab5 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
DELETE FROM tab6 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );if you can accomplish the task without looping, by all means do so!
you could also do a bulk delete.
forall j in indices of act_p_item save exceptions
  DELETE tab2
   WHERE item = act_p_item(j);etc for tab3 to 6
but unless the query SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' is horrible, I'd stick to the
DELETE FROM tab2 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' ); path
Edited by: tanging on Dec 21, 2009 10:19 AM

Similar Messages

  • Need suggestion in deletion for five tables at a time

    Hi,
    I need some suggestion regarding a deletion and i have the following scenario.
    tab1 contains 100 items.
    for one item tab2..6 tables contain 4000 rows.So the loop will run for each item and will delete 20,000 lines and will do a commit.
    Currently for 5,00,000 deletion it is taking 1 hr.All the tables and indexes are analysied.
    CURSOR C_CHECK_DELETE_IND
    IS
    SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y';
    type p_item IS TABLE OF tab1.item%type;
    act_p_item p_item;
    BEGIN
    OPEN C_CHECK_DELETE_IND;
    LOOP
    FETCH C_CHECK_DELETE_IND bulk collect INTO act_p_item limit 5000;
    FOR i IN 1..act_p_item.count
    LOOP
    DELETE FROM tab2 WHERE item = act_p_item(i);
    DELETE FROM tab3 WHERE item = act_p_item(i);
    DELETE FROM tab4 WHERE item = act_p_item(i);
    DELETE FROM tab5 WHERE item = act_p_item(i);
    DELETE FROM tab6 WHERE item = act_p_item(i);
    COMMIT;
    END IF;
    END LOOP;
    exit when C_CHECK_DELETE_IND%notfound;
    END LOOP;
    Hope i have explained the scenario.Can you please suggest me the right approach.
    Thanks in advance.

    drop the loop
    DELETE FROM tab2 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
    DELETE FROM tab3 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
    DELETE FROM tab4 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
    DELETE FROM tab5 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );
    DELETE FROM tab6 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' );if you can accomplish the task without looping, by all means do so!
    you could also do a bulk delete.
    forall j in indices of act_p_item save exceptions
      DELETE tab2
       WHERE item = act_p_item(j);etc for tab3 to 6
    but unless the query SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' is horrible, I'd stick to the
    DELETE FROM tab2 WHERE item in (SELECT api.item FROM tab1 api WHERE api.delete_item_ind = 'Y' ); path
    Edited by: tanging on Dec 21, 2009 10:19 AM

  • Need to change datasource for the existing Planning application.

    Can I change the datasource to point to different relational database and recreate the same application. Please help me..I am on 11.1.1.3.
    Thanks,
    Vince

    Hi,
    Pointing to an existing application to a new database means you are going to lose your forms, security, task lists etc. Instead, I suggest 2 options:
    1. first make a duplicate of your app, use LCM to export everything, deploy duplicated app and import exported LCM profile back into this app. It's very straight forward.
    2. Simply migrate & deploy the existing application to a new one. (right click on app in app library, select migrate). Although this is even simpler, this only applies to epma apps.
    Cheers,
    Alp

  • Need suggestion for designing a BEx report

    Hi,
    I need suggestions for designing a BEx report.
    Iu2019ve a DSO with below structure:
    1. Functional Location u2013 Key
    2. Maintenance Plan u2013 Key
    3. Maintenance Item u2013 Key
    4. Call # - Key
    5. Cycle u2013 Data Field
    6. Planned Date u2013 Data Field
    7. Completion Date u2013 Data Field
    This DSO contains data like:
    Functional -
    Plan --- Item -
    Call# --- Cycle -
    Planned Dt -
    Completion Dt
    Location
    11177 -
         134 -
         20 -
         1 -
    T1 -
         02-Jan-2011 -
         10-Jan-2011
    11177 -
         134 -
         20 -
         2 -
    T2 -
         15-Feb-2011 -
    11177 -
         134 -
         20 -
         3 -
    T1 -
         15-Mar-2011 -
    11177 -
         134 -
         20 -
         4 -
    M1 -
         30-Mar-2011 -
    25000 -
         170 -
         145 -
         1 -
    T1 -
         19-Jan-2011 -
         19-Jan-2011
    25000 -
         134 -
         145 -
         2 -
    T2 -
         20-Feb-2011 -
         25-Feb-2011
    25000 -
         134 -
         145 -
         3 -
    T1 -
         14-Mar-2011 -
    Now Iu2019ve to create a report which will be executed at the end of every month and should display the list of Functional Locations whose Cycles were planned in that particular month, along with the last completed Cycle/Date.
    Thus based upon above data, if I execute report at the end of (say) March then report must display:
    Functional ---     Curr. Cycle --- Planned Date --- Prev. completed Cycle --- Prev Completed Date
    Location
    11177 -
         T1 -
         15-Mar-2011 -
    ---     T1 -
    --     10-Jan-2011
    11177 -
         M1 -
         30-Mar-2011 -
    ---     T1 -
    --     10-Jan-2011
    25000 -
         T1 -
         14-Mar-2011 -
    ---     T2 -
    --     25-Feb-2011
    Any idea how can I display Previous Completed Cycle and Completion Date (i.e. the last two columns)?
    Regards,
    Vikrant.

    hi vikrant,
    You can a Cube at the reporting layer  which gets data from DSO and which has these 2 extra characteristics completion date and previous cycle along with other chars and keyfigures from DSO.
    You can populate these  based on your logic in the field routine.
    Hope it helps.
    Regards
    Dev

  • Need Suggestion for Archival of a Table Data

    Hi guys,
    I want to archive one of my large table. the structure of table is as below.
    Daily there will be around 40000 rows inserted into the table.
    Need suggestion for the same. will the partitioning help and on what basis?
    CREATE TABLE IM_JMS_MESSAGES_CLOB_IN
    LOAN_NUMBER VARCHAR2(10 BYTE),
    LOAN_XML CLOB,
    LOAN_UPDATE_DT TIMESTAMP(6),
    JMS_TIMESTAMP TIMESTAMP(6),
    INSERT_DT TIMESTAMP(6)
    TABLESPACE DATA
    PCTUSED 0
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 1M
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    LOGGING
    LOB (LOAN_XML) STORE AS
    ( TABLESPACE DATA
    ENABLE STORAGE IN ROW
    CHUNK 8192
    PCTVERSION 10
    NOCACHE
    STORAGE (
    INITIAL 1M
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    BUFFER_POOL DEFAULT
    NOCACHE
    NOPARALLEL;
    do the needful.
    regards,
    Sandeep

    There will not be any updates /deletes on the table.
    I have created a partitioned table with same struture and i am inserting the records from my original table to this partitioned table where i will maintain data for 6 months.
    After loading the data from original table to archived table i will truncating the original table.
    If my original table is partitioned then what about the restoring of the data??? how will restore the data of last month???

  • One Year in USA coming from Italy: i have 1 pc and 1 smartphone LG 5 i need for a convenient plan to talk to Italy and 4 GB for PC. Can you help me?

    One year in USA coming from Italy: i have 1 pc and 1 smartphone LG 5 i need for a convenient plan to talk to Italy and 4 GB for PC. What kind of plan to buy?

    Your devices are incompatible with the Verizon Wireless CDMA/LTE network. You might want to look at the local GSM carriers like AT&T or T-Mobile or a regional GSM carrier.

  • Need Suggestion​: buy ThinkPad Edge E540 or wait for Edge E550?

    Hello Everyone,
    I need suggestion what to do: buy ThinkPad Edge E54020C6003AGE (i7 4702MQ & GF 740M 2GB) or wait for Edge E550?
    http://www.notebookcheck.net/Review-Lenovo-ThinkPa​d-Edge-E540-20C6003AGE-Notebook.114194.0.html in Germany is price about 830 Euros
    I use ThinkPads in last 10 years for study and gaming (R60, SL510, Edge 520) and wish sell my Edge E520 replace it with new one due stuck with old Radeon 6630M drivers (I cannot use a new AMD drivers when I try I getting mostly BOSD errors and latest Official Lenovo driver is from 2012) second reason is that E520 fan cannot be accessed & cleaned on easy way.
    In which month Lenovo mostly release new Edges, What is your option are Broadwell CPU + GeForce 840/940M in Edges worth to wait?
    In future I try to avoid AMD GPU due poor drivers support.
    I know that there is much better notebooks for gaming but I like ThinkPads

    To support it the model you're buying should be equiped with the :
    Intel® Dual Band Wireless-N 7260
    Intel® Dual Band Wireless-AC 7260 
    Wireless network adapters and core i5/i7 cpu's . But careful, not all E540s come with the intel wireless card
    Just check this and you're good to go.

  • Need suggestion for new laptop

    Hi, everyone I'm needing suggestions. I had a touchsmart tx2z however after nearly 4 years it has bit the dust couldn't be saved after its last crash computer would turn on but screen would stay black and ome of the keys like the caps lock would flash. Computer guys say my motherboard has gone bad.  I'm looking for another computer now but would like one that is similar to the hp touchsmart but does not cost a lot of money.  

    Here is the current line-up of HP Touchscreen Laptops. Prices start at about $650 and go up from there. $650 sounds OK to my for a touchscreen laptop, but price is a subjective item. If these are too rich for you, you could always look at regular laptops.
    Please send KUDOs
    Frank
    {------------ Please click the "White Kudos" Thumbs Up to say THANKS for helping.
    Please click the "Accept As Solution" on my post, if my assistance has solved your issue. ------------V
    This is a user supported forum. I am a volunteer and I don't work for HP.
    HP 15t-j100 (on loan from HP)
    HP 13 Split x2 (on loan from HP)
    HP Slate8 Pro (on loan from HP)
    HP a1632x - Windows 7, 4GB RAM, AMD Radeon HD 6450
    HP p6130y - Windows 7, 8GB RAM, AMD Radeon HD 6450
    HP p6320y - Windows 7, 8GB RAM, NVIDIA GT 240
    HP p7-1026 - Windows 7, 6GB RAM, AMD Radeon HD 6450
    HP p6787c - Windows 7, 8GB RAM, NVIDIA GT 240

  • Need suggestion for small USB/FW camera for chat

    I have an old (Tiger, PPC) laptop. My wife has an old (Panther, PPC) mini. I'm going on a trip and want to use Skype or iChat to be able to see the kids when we talk. Can someone suggest a camera USB/firewire camera which would be good for this purpose? I don't need too many fancy features but it would be nice if it weren't big and heavy (since I'll be traveling with mine). If it's on a flexible stick or mounts to the top of the monitor/laptop screen, that would be great. I see a bunch on Amazon but it's not clear which work with Panther/Tiger, which have Mac drivers, etc. Thank you!
    Mike

    Hi,
    Yes and no (Again)
    Any Camera is going to have to suit your Mac and it's input ports.
    iUSBCam Utility only works for iChat.
    It was originally designed to get the External iSight working on G3 computer less that 600Mghz.
    Very quickly they added in the USB 1.1 camera option (At a push you could get a USB 1.1 camera to work n a G3/450Mghz processor as well)
    It only works for iChat though. Or rather it is need for iChat as it manipulates the video from the camera into something iChat will accept.
    I am not that sure if the current version of Skype will work with an older Camera.
    If it does it will still need a Mac Driver for it if you only have USB 1.1 port on your computer.
    There are two main Third Party Drivers out there for this (If the camera Manufacturer does not supply a Mac Driver)
    Macam
    and IOXperts
    The IOXperts site does list a Firewire Driver for earlier OS versions (As it was not included originally) the OS has Firewire driver form about OS 10.2
    They also state on their Site some restriction and workaround are needed for certain apps.
    Summary.
    The same info about camera types and Drivers still applies in the broadest sense.
    You will not need the iSUBCam thing for Skype.
    However I have not used Skype in some while and don't know if they still support USB 1.1 cameras.
    NOTES
    In theory as Skype does not produce such good a Video Pic as iChat it uses less processor power to create the Video stream.
    However strangely this can have positive effects in lower Spec Machines as they can then produce a coherent Stream rather than something that breaks up due to their Processor not keeping up.
    You seem to mention that you have Laptop running Tiger and the specs suggest this is a G4
    What is the Mac Mini's processor.
    Panther itself is not the limiting factor.
    It is Input ports and availability of cameras to suit that.
    Any G4 processor is going to let you have one to one chats - subject to the Internet Access at each end (Hotels can be a nightmare).
    For the points
    9:22 PM Monday; September 6, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Need suggestion for choosing Java development enviroment

    Hi Evereyone,
    I am new to Java Desktop Application.I need help on choosing proper Java technologies and development tool.
    We have an existing CLIENT/SERVER based distributed control system, which was developed in C++(Server side) and VB(Client GUI).Now we are think of migrating the system to Java platform.
    Here is the outline:
    We want to create web based application that will run on windows and linux (linux on embedded PC).
    The application should be able to support 10 � 100 users at once accessing/editing database.
    We will also need to create a communication server that will run on web server P.C. that will communicate tcpip to field panels/log to db, as well as allow web screens to send/receive commands with field panels etc.
    Could any one give me some suggestion about it?
    I am thinking of Using J2SE 5.0, including RMI, JDBC and Swing for GUI. As for field panels, may choose J2ME.
    Thank you very much in advance.

    Thanks, zadok .
    Actually, I don't have the system requirements neither. All I know is the following outline:
    "We want to create web based application that will run on windows and linux (linux on embedded PC).
    The application should be able to support 10 � 100 users at once accessing/editing database.
    We will also need to create a communication server that will run on web server P.C. that will communicate tcpip to field panels/log to db, as well as allow web screens to send/receive commands with field panels etc."
    It is a interview question, which need me to do research and give some suggestions. What I want to know is to figure out what kind of Java technology is necessary for developing this system because I want to make sure I head to right direction.
    I know somehow it is hard to give suggestion based on this limited information.
    One more thing I was confusing is the server-side architecture.
    I need suggestion about sever side architecture:
    a. write a dedicated server-side program, which act
    as communication server to monitor and control field
    panel, also act as server-side applicaiton by using
    RMI to communicate with Client-side communication.
    b. choose a general web server architecture. Put
    everything in server side in Web Server, for example
    Tomcat AS container, implementing the Communication
    server as Web Service and the request from
    Client-side go to Web Server first, then dispatch to
    a proper web service.Why did you not include this information in the original question!
    Why don't you just use Tomcat?
    For your answer, "Why don't you just use Tomcat?", does it mean Tomcat without Web Service will be enough for this system development? Could you give me some detail about it?
    Thank you very much, zadok.

  • Need suggestion on the entire hardware specs for running Oracle VM 2.2.2

    Hi,
    I need some suggestion on the preffered hardware specs which can be given to a customer, he wants to run Oracle VM 2.2.2 or Oracle VM 2.2.1.
    He has already used Cisco UCS with NetApp storage for OVM 2.2.2/2.2.1 and has being unsucessful with lots of issues creeping up. Thus now need suggestion on the hardware spec which is well tested and works fine with Oracle VM 2.2.2/2.2.1 and he wants to run Oracle Fusion Middleware on top of it.
    Any poniters to it will be highly appreciated.
    Regards,
    Sk

    887469 wrote:
    Hi Avi,
    thank you for that information !
    Yes. But only for the UCS gear that uses the converged FCoE adapters. If you have standard Ethernet/FC adapters, then it should be OK.We do use the "M71KR-Q QLogic Converged Network Adapter" with UCS. According to you this is an unsupported combination together with OVM 2.2.1, right ?
    Now the "Oracle VM 2.2 Validated Configuration Details" shows UCS B200 M1 with M71KR-Q as a valid configuration. Does 2.2 mean OVM 2.2.0 and this is supported, but 2.2.1 / 2.2.2 is not ?
    Please clarify since this confuses me.
    Best Regards and TIAAny news for me, please ?
    THX

  • I need suggestions for an online trading application

    Hi,
    I am going to develop an online trading application. I have decided to use JAVA EE 5 and I have read "The Java(tm) EE 5 Tutorial". Because I am a (C++) programmer and new to Java, I need suggestions to start development.
    Here is summary of the system in my mind. There will be
    a database to store user's information and operations,
    a web client for creating and managing user accounts,
    a desktop application and web client for users for online trading and
    an application client for brokers for risk management.
    Here is a sample scenario for flow,
    - User wants to create an account
    - Company creates an account for user
    - user gets the prices and trades via application client (web or desktop)
    - system informs dealers and broker via their client platform
    - broker perform necessary operations.
    Java EE 5 Application model fits the system I am trying to develop but I feel I still need some guidance and there are a few things I couldn't figured out yet. For these reasons I want to develop a prove of concept system and this is the system in my mind.
    - A simple database
    user (user_id, user_login, user_password, user_name)
    stock (stok_id, stok_name)
    operation (op_id, user_id, stok_id, op_type, op_amount, op_value)
    - A price server
    will generate random prices and push new values to registered clients
    - A web client to create new users (for admin)
    - A web client to display operations of users (for user)
    - A desktop application and web client for operation entries (for users)
    displays prices coming from price servers, sends users trade requests
    - A desktop application client for informing admin about trades (for admin)
    when a user buys or sells something, this client notified (user buy/sell something)
    What do you offer for this sample system?
    Which is the best IDE?
    Which Application Server should I use (scalability and speed is critical)?
    Which Java EE APIs should I use?
    JSP or JSF?
    Will I need hibernate?
    And so on.. I need some points to start and go.
    Thanks for any help.
    Ahmet

    It wouldn't be an arbitrary track. However, maybe you could make an arbitrary track by dividing the track into segments. Each segment is either a straight line or an arc. These are easy to model the cars' behavior on, because you'll have a straightforward way to determine the direction the car should be facing, and the range to the left and right where the car can stray and still be on the track.

  • Tuning needed for sql:EXPLAIN PLAN attached

    DB Version:10gR2
    The below sql was running slow, so i took an explain plan
    SQL> explain plan for
      2  SELECT COUNT(1) FROM SHIP_DTL WHERE
      3  SHIP_DTL.PLT_ID = 'AM834'
      4  AND SHIP_DTL.WHSE = '34' AND
      5  SHIP_DTL.STAT_CODE != '845'
      6  ORDER BY SHIP_DTL.LOAD_SEQ ASC;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    | Id  | Operation                    |  Name             | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT             |                   |     1 |    18 |     5  (20)|
    |   1 |  SORT AGGREGATE              |                   |     1 |    18 |            |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| SHIP_DTL        |   200 |  3600 |     5  (20)|
    |*  3 |    INDEX RANGE SCAN          | SHIP_DTL_IND_4  |   203 |       |     3   (0)|
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
       2 - filter("SHIP_DTL"."WHSE"='34' AND "SHIP_DTL"."STAT_CODE"<>845)
       3 - access("SHIP_DTL"."PLT_ID"='AM834')Why is there an INDEX RANGE scan where there is no BETWEEN operator in the query? What are various options(indexes, rewriting query) in tuning this query?

    james_p wrote:
    DB Version:10gR2
    The below sql was running slow, so i took an explain planCheck your plan, the optimizer estimates that the following query:
    select count(*)
    from SHIP_DTL
    where "SHIP_DTL"."PLT_ID"='AM834';only returns 200 records. Is this correct? Please post the result of above query.
    It probably isn't the case, because retrieving 200 records per index range scan and single row random table access shouldn't take long, at maximum a couple of seconds if you need to read each block actually from disk rather than from the cache.
    If the estimate is wrong you need to check the statistics on the table and index that were used by the optimizer to come to that conclusion.
    Are you sure that this plan is the actual plan used at execution time? You can check for the actual plans used to execute by using the DBMS_XPLAN.DISPLAY_CURSOR function in 10g if the SQL is still cached in the Shared Pool. You need to pass the SQL_ID and SQL_CHILD_NUMBER which you can retrieve from V$SESSION while the statement is executing.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Do i need to open port for crash plan online backup service

    do i need to open port for crash plan online backup service?
    Thanks!

    Possibly. I would start by checking out this CrashPlan support article. CrashPlan does require certain ports on both your computer's and network router's firewall to be open in order to communicate properly.

  • I signed up for InDesign but actually need PhotoShop more. Can I switch plans?

    I signed up for a monthly plan of InDesign but need PhotoShop instead. Can I switch plans?

    Try using this link to get to CC Product Support, and chat with an Adobe rep:
    Contact Customer Care

Maybe you are looking for

  • Trial Première pro CS3 combined with Sony DHR-1000NP/No sound rendering the Première Project

    Dear friends, I am a belgian and I have many years of good experience with Pinnacle DV500, Adobe Première 6.0 and the Sony DV Recorder DHR-1000NP. As I want to make a further step, I downloaded the trial of Adobe Première Pro CS3; I installed this tr

  • Math Problem

    I need some help! I admit, I'm not a java guru...far from it, just a college student with a book that doesn't have many examples for what I'm looking for. Any help will be greatly appreciated!!! My problem: My java program is to find a root using the

  • Help with the program not responding error

    I just joined the CC and in Illustrator I keep getting "program not responding" please advise, Eleanor

  • Soundimport problem in Premiere elements 9

    I have already captured my dv-tapes to disk by using Windows Vista importer video utility. I captured the dv-tapes using my Panasonic nv-70 camera. I would now like to edit these avi files in PE9. But there seems to be an import problem I can't resol

  • How do I download apple script support

    How do I get Apple Script Support Download for ITUNES on windows 7