Help with MS Access SQL Developer Import (problem of DateTime field)

So here's my dilemma...

I am currently trying to import from MS Access to SQL Developer, by exporting MS Access to MS Excel and then import in my table of the exporting Excel sheet. What happens is that when I import the excel sheet, it is does not keep the format of date/time / I tried several different formats, but everyone seems to exclude the time and the date.

My field of date/time is currently set up like this on SQL Developer:

DD/RRRR/MM HH: MM: SS AM/PM

And the Excel sheet, I'm importing the field corresponding, defined as follows:

mm/dd/yyyy/hh/mm/ss AM/PM

The answer (s) I'm importing is as follows:

Date/time physical_cpu server_id

01/11/2013-12:01:23 AM scc415 6.03999996

When the record is imported, it eliminates the time, so the imported data are:

Date/time physical_cpu server_id

01/11/2013 6.03999996 scc415

Any idea on how to get this timestamp to import properly? Many appreciate the ideas in advance!

Looks like I have found the solution. For some reason, export to leave access to Excel first and then open and save the file as a .csv instead of a .xlsx, date/time information are maintained. This problem has been resolved.

Found the solution on the following link for anyone interested.

Import from excel using SQLDeveloper date/time field

Tags: Database

Similar Questions

  • Remote debugging with Apex and SQL Developer

    Hello

    I try to turn on remote debugging with Apex and SQL Developer.

    I can debug the PL/SQL procedure when it is called from SQL * PLUS, but when I call the procedure from Apex 'Process', the debugger does not stop at breakpoints.

    I checked that the procedure is called Apex process as I can see 'things' happening in the procedure but the debugger does not stop at breakpoints. The program being debugged (session Apex) manages to fix the SQL Developer debug listener.

    Apex (OnSubmit) process
    ---------------------------

    BEGIN

    DBMS_DEBUG_JDWP. CONNECT_TCP ('10.176.20.225', 4000);
    DONOTHING;
    DBMS_DEBUG_JDWP. DISCONNECT;
    END;


    Procedure
    -------------------------------------
    CREATE OR REPLACE
    PROCEDURE DONOTHING ACE
    testvar VARCHAR2 (100);
    BEGIN
    update cross-set test_data = 'I came here 11111'; -It is run
    commit;
    testvar: = "aaa"; -bREAK POINT IS HERE
    DONOTHING END;
    /

    Thanks in advance,
    Paresh

    Published by: pyadav1 on November 19, 2008 15:19

    Hello

    Sorry... seems I was too hasty in reading your question...

    You also gave * DEBUG ON [Parsingschema]. [procediurename] * APEX_PUBLIC_USER (or ANONYMOUS or HTMLDB_PUBLIC_USER). Otherwise, the behavior is exactly the same as you have described...

    The privilege of the DEBUGGING SESSION to CONNECT need to given to the schema analysis but the APEX_PUBLIC_USER schema needs debug privilege on the function or procedure...

    Does that help?

    Carsten-

  • SQL Developer connection problems

    Hello

    I use SQL developer 1.5.1 and trying to connect to Oracle 8.1.5. I give the name of user and password, and all related details and when I try to test or to connect, I get the following error: Unsupported Version of Oracle database

    Please let me know if not compatible with older versions of oracle SQL developer 1.5.1. And is there a workaround for this problem. Appreciate your help.

    Thank you

    Hello

    Developer 1.5.1 SQL does not support Oracle 8i.

    Pls check the release notes for SQL Developer 1.5, he says that he does not connect to the DB Oracle 8i.

    Kind regards
    Ludmilla amine
    http://oracleracexpert.blogspot.com
    [Block restore with RMAN | http://oracleracexpert.blogspot.com/2009/08/block-recovery-using-rman.html]

  • SQL developer connection problem

    Hello

    our remote server a oracle 8 and Oracle 10 G. Oracle 8 installs very little front and oracle 10G install today.

    As sql developer may not support in 8i; When I try to connect to oracle 10G, I get the following error. ORA-12505

    I have oracle in my laptop and can connect via sqlplus but cannot connect with sql developer.

    C:\ > sqlplus sys as [email protected]:1521 / xxxx
    password:

    SQL >



    Thank you.

    Hello

    Not sure if you are running two auditors (one for 8i to 10g) on this server. When I had problems to connect to 10g XE and 11g running on the same server, each with its own listening port, I've read that the deactivation of the listener to 10 g and update of 11 g listener.ora and tnsnames.ora with entries for 10 g solved all. Always use the earpiece for the most recent version of Oracle. Maybe you have no control over the listening port on the server configurations, but it's something to consider.

    And here's a thread from another forum with reviews on how unique or several listener configurations may be preferred (and some information on how to do it):
    Re: Running 10gEE and 10gXE on the same pc

    Kind regards
    Gary
    SQL development team

  • HP Deskjet 3051 a J611: help with Windows 10 drivers? Incompatibility problem?

    Hello, I had to get help with a problem with my printer HP Deskjet 3051 a J611.

    I was always able to properly scan using my printer until I installed the update for Windows 10.

    I use a Sony VAIO computer Fit portable (may 2013 model) originally shipped with Windows installed Pro 8.1.

    After I installed Windows 10 and I tried to use my scanner two weeks later (it prints very well), I can't seem to use the same program I was using before 10 Windows to use my scanner. I tried to use printing HP and doctor Scan to fix my problem, and he told me that my printer had an unknown driver error that it could not solve. I also tried to reset my laptop (and power cycling the printer) and to uninstall and reinstall the driver for my printer.

    One thing to note: I use my printer using the wireless and wired (via USB), Wi - Fi for the scanner and the printer.

    I usually use the printer function when I want things quickly, using an app on my Android phone, or otherwise, using my laptop (wireless, of course). But when it comes to use the scanner, I find it works much more quickly to use it via USB on my laptop via the Wi - Fi.

    Thank you for your help (for that).

    Sincerely,

    ~ Miguel G

    Hello

    Thank you for using the HP Forums.

    Can you try this program to uninstall Microsoft and then reinstall the software features FULL again?

    https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed...

    Please download and install the software FULL of printing to HP for your operating system (Win 10) features:

    http://support.HP.com/us-en/drivers/selfservice/HP-DeskJet-3050a-e-all-in-one-printer-series-j611/4311836/model/5096936#Z7_3054ICK0K8UDA0AQC11TA930O2

    Once you have downloaded and installed the software, FULL of features, you will be able to print and scan.

    Hope that helps.

  • Help with some PL/SQL triggers

    Hello, I'm totally new using PL/SQL, so I need your help with two triggers.
    For example
    1 compare two dates and check that there are different, you must send an error message

    2. when I insert a new record, a trigger must get data from other tables and Add (on a new record)

    Maybe not the answers, perhaps the way forward!
    Thks!

    Insert values into a new record of existing data tables

    This thing that you can do with simple sql statements as

    insert into table_name1 select column_name from table_name2;
    

    For example: -.

    create table test(id number(10));
    
    Table created.
    
    insert into test select empno from emp;
    
    14 row(s) inserted.
    
    select * from test;
    
    ID
    7839
    7698
    7782
    7566
    7788
    7902
    7369
    7499
    7521
    7654
    

    Thank you

    Mezaber

  • Help with simple PL/SQL package

    Hi, I'm creating a package simple PL/SQL to loop over a list of names and do some special fuzzy criteria in an attempt to clean up the data. Unfortunately... I don't know anything about PL/SQL and hitting problems is to work. Could anyone give a hand?

    p. s.
    table TMP_UTL_MATCH_INPUT has a list of names to corresponding in the column called CLEAN_MERCHANT
    TMP_UTL_MATCH_OUTPUT table should contain the original entry of line # and value, a corresponding output line # and value and calculated edit_distance jaro_winkler similaritise
    table TMP_UTL_MATCH_STATUS is simply updated after each value so I can track where in the process it is obtained (I suspect that this algorithm will take a lot of time...)

    Thanks in advance for any help!
    Scott

    create or replace
    PROCEDURE ' PROCESS_UTL_MATCH_DATA "("START_ROW"EN ENTIER PAR DÉFAUT 1) IS" ".
    -initialize variable here

    whole Num_Rows;
    number of edit_distance_similarity;
    number of jaro_distance_similarity;

    -main body
    BEGIN
    Select count (*) in tmp_utl_match_input num_rows;

    declare name_array as varray (num_rows) of varchar2 (40);

    Select clean_merchant in the TMP_UTL_MATCH_INPUT name_array;

    truncate table tmp_utl_match_status;
    insert into tmp_utl_match_status values (0);

    I'm in 1.num_rows - 1 LOOP
    FOR i j + 1.num_rows LOOP
    edit_distance_similarity = utl_match.edit_distance_similarity (name_array (i), (j) name_array);
    jaro_winkler_similarity = utl_match.jaro_winkler_similarity (name_array (i), (j) name_array;)

    If (edit_distance_similarity > 50 or jaro_winkler_similarity > 50)
    then
    insert into values of tmp_utl_match_output (i, name_array (i), j, (j) name_array, edit_distance_similarity, jaro_winkler_similarity);
    END IF;
    END LOOP;

    Update tmp_utl_match_status set current_row_num = i;
    commit;
    END LOOP;



    EXCEPTION
    WHILE OTHERS THEN
    NULL; -Enter any code exception here
    END;

    I'm sorry. Just discovered that my syntax is incorrect. Cannot bulk collect a select statement. You must use a cursor, so here is the revised code

    create or replace
    PROCEDURE "PROCESS_UTL_MATCH_DATA"("START_ROW" IN INTEGER DEFAULT 1) IS
    --initialize variables here
    
      num_rows integer;
      edit_distance_similarity number;
      jaro_distance_similarity number;
      type Vartab is table of varchar2(40);
      name_array  vartab;
      CURSOR tmp_utl_cur IS
        SELECT clean_merchant FROM tmp_utl_match_input
         ORDER BY row_num;
    
    -- main body
    BEGIN
      OPEN tmp_utl_cur;
      FETCH tmp_utl_cur
        bulk collect into name_array;
      num_rows := name_array.COUNT;
    
      execute_immediate 'truncate table tmp_utl_match_status';
      insert into tmp_utl_match_status values (0);
    
      FOR i in 1..num_rows-1 LOOP
        FOR j IN i+1..num_rows LOOP
          edit_distance_similarity = utl_match.edit_distance_similarity(name_array(i), name_array(j));
          jaro_winkler_similarity = utl_match.jaro_winkler_similarity(name_array(i), name_array(j);
    
          if (edit_distance_similarity > 50 or jaro_winkler_similarity > 50)
          then
            insert into tmp_utl_match_output values (i, name_array(i), j, name_array(j)
                                                    ,edit_distance_similarity, jaro_winkler_similarity);
          END IF;
        END LOOP;
    
        update tmp_utl_match_status set current_row_num = i;
        commit;
      END LOOP;
    
    EXCEPTION
      WHEN OTHERS THEN
        NULL; -- enter any exception code here
    END;
    
  • SQL * Loader import problem with Eastern European files file

    Hello
    on Oracle 11 g with the UTF-8 encoding, I tried to import a CSV in a table through sqlload, the separator is a semicolon ';' all work very well except for some lines, witch are not well integrated (the affected files come from countries such as Bulgaria, Hungary and Czech Republic).
    For example:
    For:
    text_1; text_2; text_with_char_at_end_like_š; NewText

    during the integration instead of having:
    | text_1 | text_2 | text_with_char_at_end_like_š | NewText |

    I got:

    | text_1 | text_2 | text_with_char_at_end_like_š; NewText | null |

    did anyone have this problem, I tried to change the delimiter by code X '59', specified in sqlldr ENCODING UTF8... but it doesn't work
    you have an idea about this problem

    Thanks in advance

    This character is used to encode the files?
    What character set is specified in the control file?

    Justin

  • Need help with internet access on a Linksys E1200 strategy

    Hi, I have an a Linksys E1200 (Firmware Version: 2.0.01), and September 13, 2012, I configured the Internet access policy to deny access to internet for 4 devices between the hours of 22:00 and 08:00 on the evening of the school.)  It was working fine! I was very pleased.

    Over the last weekend, the electricity was launched for a second, the power was back on in 2-3 seconds if. The router comes back online, and everything seemed in excellent working condition. Then Sunday evening (considered to be a night of school in our House) at 22:00 the router did not refuse Internet 4 devices as it normally did. I logged into the control panel admin via a browser web, and checked access to internet strategies, I configured last week was still configuration property.

    Everything was always configuration property to deny access to the internet for 4 devices Sunday night/Monday morning between 08:00 and 22:00. I checked that the router has the date and time. But the router is not always deny access as it was setup to do. It worked fine before the weekend, and then after the weekend it stopped working the property. The only thing I can think of this month of may of the cause is 2-3 seconds, the power went out then came back on. The router is connected through a surge protection.

    Then I set up the Internt access policy week last to deny access to 4 devices on the night of the school between 22:00 and 08:00. I waited 24 hours to make sure it worked, after that it worked, I got the router send me a backup of the config file. I tried to use it to solve this problem, but it did not help either.

    This is a screenshot of what looks like my Internet access policy. I had to create 2 policies because the router has refused to create a policy where the end time was not later than the start time. Anywho, so political #1 is from 22:00 to 11:55, and policy #2 is from 12: 00 to 08:00. This Internet access policy is configured to deny access to 4 devices between midnight and 08:00 Monday morning. It was working fine last week, so I'm 100% positive that it is the router.

    The following screenshot is the status information to show the date and time of the router is correct.

    So the router was Monday morning @ 03:00, the router has an active policy of internet access to deny the device access to the internet, the router had recently worked flawlessly to do this, but for some reason any, that he could not do this morning?

    Can you please explain it to me or provide me with free software to "lock" the internet for specified devices. I really want to have to stay until 22:00 5 nights a week, so I can help my daughter sneaking online when she should be in bed. taking his phone and the laptop is not an option.

    Thanks for reading, forward a reply as soon as possible.

    ~ Tony

    Hello. I think that Yes, too, that it is a router problem. Just to isolate it, try to update the firmware and then reset and reconfigure the router again and use the same policies that have worked before. On Cisco's Web site, the latest firmware for version 2 is 2.0.04. You can download it here http://homesupport.cisco.com/en-us/support/routers/E1200. You can use the links below in the public KB site of Cisco.

    Manually upgrading firmware of the Linksys wireless-N Router

    http://www6.nohold.NET/Cisco2/UKP.aspx?VW=1&docid=0a6881b90224439b92c8d8f19ca42e5d_21511.XML&PID=80&...

    Setting up a Linksys router for DSL Internet connection

    http://www6.nohold.NET/Cisco2/UKP.aspx?pid=80&VW=1&articleid=3687

    Setting up a Linksys router with cable Internet service

    http://www6.nohold.NET/Cisco2/UKP.aspx?pid=80&VW=1&articleid=3686

  • need help with error # 800704db (10 istall windows problem)

    can anyone help?

    Start by resetting your Windows Update components:

    How to reset the Windows Update components

    http://support.Microsoft.com/kb/971058

    Suggest you download and save the Fixit. Then configure the system before the clean boot by running:

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7

    http://support.Microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native Windows Firewall is now on if a 3rd party firewall has been used previously. Now run the Fixit and choose the default mode. Restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode. Turn it back on when he finished the race and updates.

    I suggest before you stop and install the updates, disconnect from the Internet, first.

    Alternatively, you can perform the upgrade manually:

    Task of pre-required

    When you make significant changes to your computer for example updated operating system, you must always back up. See the links to resources on the backup by clicking the link for each version of Windows you are using: Windows XP, Windows Vista, Windows 7, Windows 8/8.1

    then

    then

    • Turn off (preferably uninstall) your Antivirus utility before you perform the upgrade.
    • Reboot several times, and then try again.
    • Disable the general USB peripherals (for example - smart card reader).
    • If you are using a SCSI drive, make sure you have the drivers available for your storage on a thumdrive device and it is connected. During the installation of Windows 10, click on the advanced custom Option and use the command load driver to load the driver for the SCSI drive. If this does not work and the installer still fails, consider switching to an IDE based hard drive.
    • Perform a clean boot, restart, and then try again.
    • If you upgrade to the. ISO file, disconnect from the Internet during the installation, if you are connected in LAN (Ethernet) or wireless, disable both, then try to install.
    • If you are updated through Windows Update, when download reaches 100% disconnect from the LAN (Ethernet) Internet or Wi - Fi, then proceed with the installation.
    • If this does not work, try using the. ISO file to upgrade if possible.
    • If you are connected to a domain, go to a local account.
    • If you have an external equipment, attached to the machine, unplug them (example, game controllers, USB sticks, external hard drive, printers, peripherals not essential).
  • Need help with ics. SQL return null

    Hi experts WCS.

    I have this ics. SQL statement that returns an IList as null and nothing in the errStr in debugging print.

    IList rsATypes is ics. SQL (, sqlATypes, listName, limit, bCache errStr);

    The code is in one of my jsp. He ran very well in my local JSK (HyperSQL Db), but returns NULL in the case of Test (Oracle DB, if this is another).

    I got the sql statement println during execution and run it directly in Oracle DB (same instance) it returns the expected result set.

    The code snippet:

      System.out.println("## ics.GetSSVar(\"pubid\")          : " + ics.GetSSVar("pubid"));
    
        // Get Attribute Types
        String sqlATypes = "SELECT DISTINCT assetpublication.assettype "
                         + "FROM assetpublication "
                         + "LEFT JOIN approvedassets "
                         + "    ON assetpublication.assetid = approvedassets.assetid "
                         + "WHERE pubid = '" + ics.GetSSVar("pubid") + "' "
                         + "AND (tstate is null OR tstate <> 'A') "
                         + "AND (voided is null OR voided <> 'T') "
                         + "ORDER BY assettype; ";
        System.out.println("##0126 sqlATypes : " + sqlATypes);
        String from = "AssetPublication, ApprovedAssets";
        // String listName = null;
        String listName = "ATypesList";
        int limit = -1;
        // boolean bCache = true;
        boolean bCache = false;
        StringBuffer errStr = new StringBuffer("");
        ics.ClearErrno();
        IList rsATypes = ics.SQL(from, sqlATypes, listName, limit, bCache, errStr);
    
        System.out.println("## rsATypes : " + rsATypes);
        if (rsATypes == null) {
            System.out.println("## NO DATA in rsATypes! errStr : " + errStr.toString());
    

    }

    The journal:

    ## ics.GetSSVar("pubid")          : 1374097570685
    ## sqlATypes : SELECT DISTINCT assetpublication.assettype FROM assetpublication LEFT JOIN approvedassets     ON assetpublication.assetid = approvedassets.assetid WHERE pubid = '1374097570685' AND (tstate is null OR tstate <> 'A') AND (voided is null OR voided <> 'T') ORDER BY assettype;
    ## rsATypes : null
    ## NO DATA in rsATypes! errStr :
    


    I got enclosing try catch block, who did not take any exception.


    The funny thing is, in the same piece of code, an ics. Casea used already worked (which I noticed outside because there was not enough for what I want to do):

            StringBuffer errSB = new StringBuffer("");
            ics.SetVar("assetid", id);
            IList approvedAsset = ics.SelectTo("ApprovedAssets", "state,voided,tstate,locked,reason,treason", "assetid", null, -1, null, true, errSB);
    

    Any help/ideas from anyone would be really appreciated.

    Thanks Guddu1223, I discovered why.

    The SQL statement cannot end with a semicolon (see line 11 of my original above codes). Delete who had back all the records provided for in my resultset in the IList.

    The reason why it works in my local, but not stable instance that I guess is my local JSK + HyperSQL, in WCS + Oracle DB instance trying...

  • Help with anonymus pl/sql layout using javascript

    Hi people.

    I want to display records on a region (using apex 4.2), this anonymous pl/sql script below shows 3 records in database, but the layout only shows me the first album with its data, the other 2 files, only show me the labels.
    I checked this same query creating a report and it shows the 3 files correctly.
    I guess I'm doing something wrong with this javascript routine or certainly miss something,
    in this link you can see the layout I get. (http://sdrv.ms/Xrv0J8).

    Another is the little help I need to display in a line for each record. in fact, I'm getting a line for each label and a line for each data record. I have read and learned something is/div, but I don't know how to change it to get the desired results, any suggestion is welcome.

    Thanks in advance for any help.



    I am completely new in apex and java script, but I have several years of experience in pl/sql.

    -------


    The Script:

    Begin
    Declare
    Anyth cursor is
    Select the item,
    To_char (delivery, ' month DD, YYYY hh24:mi:ss ") delivery.
    Current_date
    Of pending_items;
    Begin
    For a loop Anyth
    Begin
    Sys.Htp.P ("< script type =" text/javascript"> '");
    Sys.Htp.P ('function cdtd() {'});
    Sys.Htp.P ("var Christmas = new Date (" ' | ') ") a.Delivery | '")');
    Sys.Htp.P ("var now = new Date();'");
    Sys.Htp.P ("var timeDiff = xmas.getTime () - now.getTime ();'");
    Sys.Htp.P (' if (timeDiff < = 0) {'});
    Sys.Htp.P ('clearTimeout() (timer)');
    -Sys.Htp.P ("document.write ("of the text here.")");
    Sys.Htp.P (' / / execute all necessary code to the completion of the countdown here ');
    Sys.Htp.P ('} ');
    Sys.Htp.P (' var seconds = Math.floor(timeDiff / 1000);) ") ;
    Sys.Htp.P ("var minutes = Math.floor(seconds / 60) ;");
    Sys.Htp.P (' varhour = Math.floor(minutes / 60);) ") ;
    Sys.Htp.P ("days var Math.floor(hours / 24) = ;"); ")
    Sys.Htp.P (' hours = 24 ;'); %)
    Sys.Htp.P (' minutes % = 60 ;');)
    Sys.Htp.P (' seconds % = 60 ;');)
    Sys.Htp.P (' document.getElementById("daysBox").innerHTML = days ;');)
    Sys.Htp.P (' document.getElementById("hoursBox").innerHTML = hours;) ") ;
    Sys.Htp.P (' document.getElementById("minsBox").innerHTML = minutes ;');)
    Sys.Htp.P (' ;'); seconds = document.getElementById("secsBox").innerHTML)
    Sys.Htp.P (' timer var = setTimeout ("cdtd ()", 1000);');
    Sys.Htp.P ('} ');
    Sys.Htp.P ("< /script >");
    Sys.Htp.P ("days");
    Sys.Htp.P ("< div id ="daysBox"> < / div > '");
    Sys.Htp.P ("hours");
    Sys.Htp.P ("< div id ="hoursBox"> < / div > '");
    Sys.Htp.P ('minute');
    Sys.Htp.P ("< div id ="minsBox"> < / div > '");
    Sys.Htp.P ("seconds");
    Sys.Htp.P ("< div id ="secsBox"> < / div > '");
    Sys.Htp.P ("< script type =" text/javascript"> '");
    Sys.Htp.P ('cdtd() < /script > ');
    End;
    End loop;
    End;
    End;

    For now, let's focus on delivery dates and the javascript.
    Why you would put your javascript in htp.p called in a plsql region is beyond me. When you edit the page there is a region of javascript where you can put global variables and functions, a great spot for it then and much easier to manage than that.
    Now, it is also clear that your query on pending items will return multiple records. Thus, using a report would serve you well in this case. However, using code like this:

    document.getElementById("daysBox").innerHTML = days;
    document.getElementById("hoursBox").innerHTML = hours;
    document.getElementById("minsBox").innerHTML = minutes;
    document.getElementById("secsBox").innerHTML = seconds;
    

    you won't have to. getElementById is supposed to return an element identified by a code. If you have a report that contains multiple lines and elements on each line with the same ID, you're doing something wrong. You should be the date of delivery by rank, and I suppose that you put your code with htp.p because you don't know how to deal with this and passing the procedure of javascript.
    But would it not more oppurtune for you simply create a report with a sql source when you calculate each part of the date and then refresh this region with a certain interval. If you would be refreshed every 5 minutes, not who is more fast enough to keep track of things? Remember, refreshing a region will execute the SQL again.
    It is not that you cannot make a report multi-record with a countdown by rank, but are you sufficiently comfortable with javascript and jquery to encode and maintain that against leverage plsql and dynamic actions (there is even an action timer plugin supplied by oracle dynamic)?

  • Help with an advanced SQL query

    I have a table with standard lengths of material. (tblStdLength)

    In another table are the lengths in stock to matter. (tblOnStock)

    I would like to match these two tables on the amount of the stock of standard lengths, you stock in the table.
    If the length is greater than the nearest standard length, the trail of the excess up to the closest standradlangd if there is a X 'CUP field.
    However, I have encountered a problem and cannot solve this...

    Ex:

    Material cable23 have 4 standard lengths in the tblStdLength Table:

    {code}

    Material StdLength
    ----------------------------------------------------
    Cable23 |     2000
    Cable23 |     4000
    Cable23 |     6000
    Cable23 |     8000

    Cable23 materials have the following lengths in stock in the tblOnStock Table:

    Factor important length TotalQty Cup
    -----------------------------------------------------------------------------------------------------------------------------
    Cable23 |     1     |     383.     383.
    Cable23 |     1     |     424.     424.
    Cable23 |     1     |     998.     998.
    Cable23 |     1     |     1000 |     1000 |
    Cable23 |     3     |     4000 |     12000 |     X
    Cable23 |     1     |     4234.     4234.     X

    {code}
    In this mode, the lengths of 12000 + 4000 must include in the calculation of the total stock of standard lengths.
    The answer should be 16000.
    4000, he gets to 4234. It has X on the field of 'Cut', then it round down to the nearest Stud.


    How can I be better? I hope that I have explained so you understand...

    Hello

    Did you mean this

    with tblStd as
    (
           select Material
                    , stdlength
                    , lead(stdlength) over (partition by material order by stdlength) hstdlength
                    from tblStdlength
    )
    select t.Material
             , sum(floor(s.totalqty/t.stdlength)*t.stdlength) tot_quantity
         from tblStd t, tblonstock s
                where t.material=s.material
                               and s.length >= t.stdlength
                               and (s.length< t.hstdlength or t.hstdlength is null)
                   and (s.cut = 'X' or s.length=t.stdlength)
                group by t.material
    

    Concerning
    Anurag

  • New to pix, need help with "debug access list of all the" command

    I have a pix 515 v6.3. I am tring to use then "debug access list of all the" command to see what traffic is stopped by my access list. However, I don't get any output. I turn execution of the command, but nothing happens. Other debug commands give the console. Perhaps, I do not understand what "debug to access list of all the" is used for. Any help that can be provided would be greatly appreciated.

    Tim

    Also try following the commands of logging

    LOGG on

    LOGG buff 7

    term Lun

    M.

  • Need help with a PL/SQL code

    Hello

    I am trying to execute the following PL/SQL code, which translates errors, obviously I'm not doing things, but it gives you an idea what I'm trying to do:

    DECLARE

    INT var_count;

    SELECT COUNT (*) IN var_count

    FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name = "ACTOR";

    If var_count > 0 then

    BEGIN

    DROP TABLE "ACTOR";

    END;

    /

    Erros:

    SELECT COUNT (*) IN var_count

    *

    ERROR at line 3:

    ORA-06550: line 3, column 1:

    PLS-00103: encountered the symbol "SELECT" at the expected in the following way:

    Start function < an ID > pragma procedure subtype type

    < between double quote delimited identifiers > delete the current cursor

    There is before

    The symbol 'start' has been substituted for "SELECT" to continue.

    ORA-06550: line 7, column 1:

    PLS-00103: encountered the symbol "DROP" when expecting one of the following conditions:

    (begin case declare exit for goto if loop mod null pragma

    raise return select update while < ID >

    < between double quote delimited identifiers of > < a variable binding > < <

    continue the narrow current delete fetch locking insert open rollback

    savepoint sql set run commit forall fusion pipe purge

    Your help to create it in a right way will be appreciated.

    Thank you very much.

    Tonya.

    Try the following:

    My = $ora $csr-> prepare (q {}

    DECLARE

    INT var_count;

    BEGIN

    SELECT COUNT (*) IN var_count

    FROM sys.all_tables WHERE OWNER = 'SAKILA' AND table_name =: ts;

    If var_count > 0 then

    RUN IMMEDIATELY 'DROP TABLE' |: ts | "CASCADE CONSTRAINTS;

    end if;

    END;

    });

Maybe you are looking for

  • tried to open the Web site but couln t open now will not open home page

    tried to open the link to the Web site and all I got was a framework and a blank page. Stop and now the homepage is now just a frame with a black page. have uninstalled and reinstalled but still.

  • Overheating Satellite A660-12th

    Hello I have a big problem with my laptop, when I use it deeply for a long time. for example: when I work on Photoshop, Illustrator, Excel, Word and Chrome, the computer get very hot and then it stopped. I downloaded CPUID Hardware monitor, and I saw

  • Bluetooth driver for vista 64-bit on Satellite A200-1AH

    HelloI use A200-1AH in Turkey (PSAE6E).I installed Vista Ultimate x 64, but I have a few problems.I could not find the driver for bluetooth (tos6205). could you please help me

  • What is Final Cut backups folder?

    I just noticed a folder named "Final Cut Backups" in my movies folder. It is very small (18 MB). My Final Cut Pro libraries file is 5 GB. What is it and do I need? I guess that since it is so small, that it doesn't hurt really...  Since I'm on a lapt

  • What is System broken file Association?

    What is broken file Associiation system?