No more data to read from socket error

Hello

I have a "PUNCH" table to store the employee punches

There is a "FORMATTEDPUNCH" view to display inpunch and outpunch in different columns

An another discovers "PUNCHANOMALY" to select the details where punch is missing.

I'm trying to update the column punchanomaly in 'ATTENDANCETABLE' with column display PUNCHANOMALY anomaly

But I don't have ' no data more than read the decision-making "error in the merge statement.

Help, please

I use oracle 10g

===============================================

Examples of data

===============================================

I'm updating anomaly and other somany given punch. But I shot the code for readability

create the table ATTENDANCESHEET

(

NUMBER (10) EMPID.

DATE OF PRDATE,

PUNCHANOMALY NUMBER (1)

);

CREATE () AS PUNCH TABLE
SELECT 1 EMPID, TO_DATE (JANUARY 21, 2014 08:00 ',' DD/MM/YYYY HH24 ') PUNCHTIME, 1 PUNCHTYPE OF THE DOUBLE

UNION ALL

SELECT 1 EMPID, TO_DATE (JANUARY 21, 2014 16:00 ',' DD/MM/YYYY HH24 ') PUNCHTIME, 0 PUNCHTYPE OF DOUBLE

UNION ALL

SELECT 2 EMPID, TO_DATE (JANUARY 21, 2014 08:00 ',' DD/MM/YYYY HH24 ') PUNCHTIME, 0 PUNCHTYPE OF DOUBLE

UNION ALL

SELECT 2 EMPID, TO_DATE (JANUARY 22, 2014 08:00 ',' DD/MM/YYYY HH24 ') PUNCHTIME, 1 PUNCHTYPE OF THE DOUBLE

UNION ALL

SELECT 2 EMPID, TO_DATE (JANUARY 22, 2014 16:00 ',' DD/MM/YYYY HH24 ') PUNCHTIME, 0 PUNCHTYPE OF DOUBLE

);

CREATE OR REPLACE STRENGTH SEEN IN THE FORMATTEDPUNCH

WITH GOT_R_NUM AS

(

SELECT P

ROW_NUMBER () OVER (PARTITION OF EMPID

ORDER BY PUNCHTIME

) AS R_NUM

PUNCH P

)

SELECT NVL (TRUNC (I.PUNCHTIME), TRUNC (O.PUNCHTIME)) AS PUNCHDATE, NVL (I.EMPID, O.EMPID) AS EMPID

I.PUNCHTIME AS INPUNCH

O.PUNCHTIME AS OUTPUNCH

OF GOT_R_NUM I

GOT_R_NUM FULL OUTER JOIN O ON O.EMPID = I.EMPID

AND O.R_NUM = I.R_NUM + 1

AND O.PUNCHTYPE <>I.PUNCHTYPE

WHERE NVL (I.PUNCHTYPE, 1) = 1

AND NVL (O.PUNCHTYPE, 0) = 0

ORDER BY EMPID

NVL (INPUNCH, OUTPUNCH);

CREATE OR REPLACE STRENGTH SEEN IN THE PUNCHANOMALY

SELECT PUNCHDATE AS PRDATE, EMPID, 1 ANOMALY OF FORMATTEDPUNCH WHERE INPUNCH IS NULL OR OUTPUNCH IS NULL;

MERGE INTO ATTENDANCESHEET one

PUNCHANOMALY with the HELP of p

WE (a.empid = p.empid and a.prdate = p.prdate)

WHEN NOT MATCHED THEN INSERT

(

a.EMPID,

a.prdate,

a.PUNCHANOMALY

)

VALUES

(

p.EMPID,

p.prdate,

p.ANOMALY

)

WHEN MATCHED THEN UPDATE

SET

a.PUNCHANOMALY = p.ANOMALY;

Got the error...

There are multiple records in the table of punch for a day.

I should have used distinct keyword in the following view

CREATE OR REPLACE STRENGTH SEEN IN THE PUNCHANOMALY

SELECT DISTINCT PUNCHDATE AS PRDATE, EMPID, 1 ANOMALY OF FORMATTEDPUNCH WHERE INPUNCH IS NULL OR OUTPUNCH IS NULL;

The error was caused by duplicate lines

Tags: Database

Similar Questions

  • No more data to read from socket

    Hello
    I am trying to run this query which keep away causing the error no additional read decision-making data
    SELECT distinct SOR_COMPLIANCE_ADMIN.get_Completed_Letter_Id(o.offender_id, 'OFFENDER'), 'Mailed', sysdate, null, o.offender_id, 
                l.location_id, o.first_name, o.middle_name, o.last_name, o.sir_name, l.address1, l.address2, l.city, REPLACE(sor_data_admin.getCode(l.state),'0','O'), l.zip, l.county, 
                sor_data_admin.getOffenderType(o.offender_id), 
                null, l.JURISDICTION, decode(sor_data_admin.getCode(o.sex),'M','Mr.', 'F','Ms.','') 
                from sor_compliance_com_v t, registration_offender_xref x, sor_location l, sor_offender o
                where x.status='Active'
                and x.offender_id=o.offender_id
                and o.offender_id=l.offender_id
                and t.offender_id=o.offender_id
                and t.location_id=l.location_id ;
    definition of get_Completed_Letter_Id
     function get_Completed_Letter_Id(p_offender_id number,  p_destination varchar2) return number
            IS
       
       
                    /*cursor C is used to get letter template ID for offenders whose tier are 1, 2*/
                    CURSOR c IS 
                    SELECT  sle.letter_id
                    FROM sor_letter sle
                    WHERE sle.destination=p_destination
                    and upper(sle.letter_type)='COM';
        
                    tLetterId number;
                    error_message varchar2(500);
                    
            BEGIN
            
            
    
                        OPEN c;
                        FETCH c INTO tLetterId;
                        CLOSE c;
                      
                        RETURN tLetterId;
    
      
            EXCEPTION
                when others then
                    error_message:=substr(SQLERRM, 1, 400);
                    raise_application_error(SOR_ERROR_CONSTANTS_PKG.errnum_GENERAL, 'SOR_COMPLIANCE_ADMIN.getLetterId '||SOR_ERROR_CONSTANTS_PKG.errmsg_GENERAL||error_message);
                    
            END get_Completed_Letter_Id;
    definition of sor_data_admin.getOffenderType
      function getOffenderType(p_offender_id number) return varchar2 AS
          
                error_message varchar2(500);
          
                CURSOR c IS 
                SELECT decode(MAX(habitual)||MAX(aggravated),'NN','STANDARD','LIFETIME')
                FROM registration_offender_xref
                WHERE offender_id = p_offender_id
                AND status = 'Active';
                -- doc/hkt 111407 New Law: calculate offender type by tier (level)     
                
                cursor tierNum is
                select max(c.tier) from sor_offense o, sor_offense_code c
                where o.offender_id = p_offender_id
                and o.offense_code = c.CODE_ID
                and upper(o.status) = 'ACTIVE';
              
                tier number;
                vOffenderType varchar2(30);
                
          BEGIN
          
                OPEN c;
                FETCH c INTO vOffenderType;
                
                IF c%NOTFOUND THEN
                  vOffenderType := 'INACTIVE';
                END IF;
                CLOSE c;
            
                open tierNum;
                Fetch tierNum into tier;
                if tierNum%NotFound then
                  tier := Null;
                end if;
                Close tierNum;
          
                if vOffenderType <> 'INACTIVE' then
                      if tier = 3 then 
                        vOffenderType := 'LIFETIME';
                      end if;
                end if;
            
                RETURN vOffenderType;
                
          EXCEPTION
          
              WHEN OTHERS THEN
                    error_message:=substr(SQLERRM, 1, 400);
                    raise_application_error(SOR_ERROR_CONSTANTS_PKG.errnum_GENERAL, 'SOR_COMPLIANCE_ADMIN.getOffenderType '||SOR_ERROR_CONSTANTS_PKG.errmsg_GENERAL||error_message);
          
          END getOffenderType;
    Definition of getcode
     FUNCTION getCode(codeID IN NUMBER) RETURN VARCHAR2 AS
              code sor_code.code%TYPE;
              
          BEGIN
                  SELECT code INTO code FROM sor_code WHERE code_id = codeID;
                  return(code);
          
          END getCode;
    Thanks for your help

    ORA-00600/ORA-07445/ORA-03113 = Oracle bug-online research on Metalink or contact Oracle support

  • message to the subject of the defective hosts SMTP and HTTP, with regard to the two reading: 'No. Socket Error 11001 error number Ox800CCCOD. »

    To set up my Outlook Express, questioned, by sending an e-mail with the download, to provide the above hosts "addresses", I have inserted the wrong information ignorance.  Now cannot send and open downloads, I try to access the page in question again and RE-ENTER the RIGHT "addresses", but all in vain.  Can someone help me to access this critical page, I could revisit the functional plan online?  PLEASE?

    Open Outlook Express, click the Tools menu, click accounts, click Mail, click Properties, verify each tab and enter the correct information. If you don't know, your ISP will give you the correct information.

  • &amp; quot; No more data available To Read &amp; quot; KILL ME!

    I have a CFMX 6.1 server using a DSN for an SQL Server 2000 database. I have several sites that use the same DSN, and we always see the following error message:

    Run database query error. [Macromedia] [SQLServer JDBC Driver] No more data to read.

    I tried updating to the latest drivers database and even using the JDBC drivers directly (by way of FusionReactor wrapper.)

    I can't find any information anywhere on what are the possible causes of this could be.

    Someone please help! I know someone must face it.

    Thanks for the suggestions of Ken. I found my answer elsewhere.

    By installing the latest drivers JDBC Microsoft SQL 2005 (even if I connect to a SQL 2000 Server), I feel is no longer "no more data to read" errors.

  • ORA 17410 - cannot read data from socket

    Hey guys!

    I am faced with a query and would like to ask your advice. During the execution of the statement, I always get an error 17410. No data is transferred that data cannot be read from the socket.

    In my application, I am trying to join the two results. When you run queries individually fine and no error occurs.

    Ever tried to convert the output columns for the same types of data to apply compatibiliy. However, in vain.

    Here's the query! You have an idea?
    with w as
    ((select b.ba_lang, x.lng_baumart, to_char(x.ba_kat) ba_kat,
     x.flag, 0 disable_status
    from 
    vt_tbl_qb_zu_bestand v,
    vt_qb_join q,
    vt_tbl_baumart b,
    vt_tbl_matrix x
    where 
    (q.cnt_gebiet = :p2024_cnt_gebiet)
    and (v.lng_baumart = b.cnt_baumart) 
    and (v.lng_qb_sub = q.lng_qb_sub)
    and (q.str_lrt_main = :p2024_str_lrt)
    and (q.int_wg = :p2024_wg)
    and (q.str_be_main = :p2024_be)
    and (q.int_status_sub = 3)
    and (x.lrt_class = :p2024_str_lrt_mx)
    and (x.lng_baumart = b.cnt_baumart)
    group by b.ba_lang, x.lng_baumart, x.ba_kat, b.ba_gruppe, x.flag
    ) 
    union
    (select b.ba_lang, x.lng_baumart,
        x.ba_kat,
       x.flag, 0 disable_status
      from vt_tbl_qb_verjuengung v,
        vt_qb_join q,
        vt_tbl_baumart b,
        vt_tbl_matrix x
      where (q.cnt_gebiet   = :p2024_cnt_gebiet)
      and (v.lng_baumart    = b.cnt_baumart)
      and (v.lng_qb_sub     = q.lng_qb_sub)
      and (q.str_lrt_main   = :p2024_str_lrt)
      and (q.int_status_sub = 3)
      and (q.int_wg         = :p2024_wg)
      and (q.str_be_main    = :p2024_be)
      and (x.lrt_class      = :p2024_str_lrt_mx)
      and (x.lng_baumart    = b.cnt_baumart)
      group by b.ba_lang, x.lng_baumart, x.ba_kat, b.ba_gruppe, x.flag))
      
     (
      (select ba_lang, lng_baumart,
        to_char(ba_kat) ba_kat,
        decode(ba_kat,'H',1,'N',2,'B',3,'S',4,'P',5,'hG',6,'nG',7) as cs,
        flag, 
        disable_status,
        null str_comment
      from w
      ) 
    union all
      (select distinct r.ba_lang, d.lng_baumart, to_char(d.ba_kat) ba_kat, decode(d.ba_kat,'H',1,'N',2,'B',3,'S',4,'P',5,'hG',6,'nG',7) as cs,
        d.flag, 
    case when d.lng_baumart in (78, 74, 72,71, 54, 53) then 1
    else null end as disable_statusx, 'not valid' str_comment
      from vt_tbl_baumart r,
        vt_tbl_matrix d
      where r.cnt_baumart    = d.lng_baumart
      and d.lrt_class        = :p2024_str_lrt_mx
      and d.ba_kat in ('S','B','H','P','N')
      and r.cnt_baumart not in (select lng_baumart from w)))
    Thanks a lot for your help!

    I appreciate it!

    Edited by: skahlert the 01.06.2010 09:02

    Hello

    You are right. They fixed in the 11.2.0.2.0 JDBC driver and have a patch for 11.1.0.7. They won't patch 10.2. You can find information about this in the notes 1082926.1.

    Success

    Herald tiomela
    htendam.WordPress.com

  • Read more data 1 byte of visa

    Hi, when I use VISA to read more data of 1 byte, only the first table got the data, but I want to separate data from 40-bit to 5 tables. Does someone know how to separate data in the tables? Thank you for the reply!

    Your problem is the ASCII conversion attempt.  As I said before, you have raw binary data.  Therefore do not touch anything that deals with ASCII.  All you have to do is take your byte array and convert each element in an array of Booleans.

  • Error: Access violation at 0 x 00509273 (tried to read from 0x00000020), program terminated.

    How can I fix it?  Any ideas appreciated!  = o)

    Error: Access violation at 0 x 00509273 (tried to read from 0x00000020), program terminated.

    Hi lbonnell,

    1. when exactly you receive the error message?

    2. what game you try to play?

    If you try to open a game, you can run the game as run as administrator.

    For more information, refer to this link: to start a program as an administrator

    Hope the helps of information.
    Please post back and we do know.

  • Data execution prevention-window Explorer error when I try to access the windows Explorer, and more particularly when I try to watch videos.

    Original title: data execution prevention-window Explorer error

    Data execution prevention launches when I try to access the windows Explorer, and more particularly when I try to watch videos. So I tried to turn off DEP for windows Explorer. Now, I can access my videos, but they all have text on them that says video PHOTO, & www.jpg.com. I have not downloaded new software recently, so I don't know where it comes from. I ran my antivirus sofware and malwarebytes, and my system is to come clean. How can I remove this from my videos? Thank you!

    This isn't how to diagnose and repair the DEP errors - especially not Windows Explorer DEP errors.

    But 6 days of inactivity and a link to an article of a MSE = automatic response.

  • Network error when you try to read from C:\Windows\Installer\iTunes.msi

    Original title: error when you try to install iTunes on Windows Vista
    I am trying to install the latest version of iTunes available in South Africa. I use Vista to the Windows Welcome page.

    I downloaded the itTunessetup.exe file, but when I try to run the installation, I get the same message "network error when you try to read from C:\Windows\Installer\iTunes.msi.
    I am at a loss to understand this - I'm not much of a PC expert either.
    Any suggestions? Thank you

    Hello

    Thanks for posting in the Microsoft community!
    You have reached the right forum for your question. I suggest you follow the troubleshooting steps to check if this may help.

    Method 1:
    Run the fix it and check.
    Solve problems with programs that cannot be installed or uninstalled

    http://support.Microsoft.com/mats/program_install_and_uninstall

    Method 2:
    You can completely uninstall older versions of iTunes installed on the computer, then I suggest you to install the latest version and check.
    Download link


    Method 3:
    You can try the form as follows article knowledge base and check if you are able to install iTunes.
    Problem installing iTunes or QuickTime for Windows
    http://support.Apple.com/kb/HT1926

    Reference link:
    Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.Apple.com/kb/HT1923

    If the problem persists then you can contact iTunes support: http://www.apple.com/support/itunes/
    Just reply with the results. I'd be happy to help you more
  • Error 1305: Error reading from file C:\Program Files\Microsoft Games Flight Simulator X\Scenery\World\texture\041b2su6.bmp.Verify that exists it and that you can access

    When I want to install Flight Simulator X I get the error error 1305: error reading from file C:\Program Files\Microsoft Games Flight Simulator X\Scenery\World\texture\041b2su6.bmp.Verify that exists it and that you can access how to fix?

    Hi Johannholm,

    Thanks for posting your question in the Microsoft Community. We are happy to help you.

    Go through the suggestions of this link and check if it helps you to install Flight Simulator game.

    Error message when you install a Microsoft game or a mapping program

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

    NOTE: After you check the clean boot feature configure Windows to use a Normal startup using step 3A proposed in the above mentioned link.

    WARNING CHKDSK:

    Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data can be lost.

    Hope it will be useful. If you still have questions, please reply and we will be happy to help you.

  • Lock on a table and SQL * Net more data from client

    Hello

    I have a problem loading data through Php in Oracle: web page of Php open an xml file, create a .csv, then begins to Oracle using an external table to process the data.

    The problem is that, the second time that PHP is trying to run the following query:

    INSERT INTO table1 T (Field1, Field2, field3, field4, sphere5, case field6) VALUES ('Aaa1E63819707', SYSDATE, 'KO', 'error', 'L', 'file_name.xml') POLL INTO Field1: id

    on the Oracle sessions, I have an exclusive lock on table1 and wait for SQL * Net more data from client.

    Where is the problem?

    Thank you

    Igor

    Finally I found the problem: a DBA changed the cursor sharing EXACT force! I restored the CORRECT setting and now everything is fine.

    Thank you

    Bye,.

    Igor

  • Error reading from file: state .tgz-3.

    I'm under ESXi v3, but I couldn't find anything except 4 or 5 on the forums. in any case, I am very new to VMWare and this configuration inherited from my predecessor. Today, we had to stop everything for some work on our electrical systems. I stop the VM machine and then put the host in maintenance mode. After that, we did a clean power down. From switching back on, I get the following error:

    Error reading from file: state .tgz-3.

    Help, please. It comes to our business files server which is completely offline now.

    You see your data warehouse? If so, consult and find the folder of the virtual machine and then make a right click the .vmx for comments and add to the inventory.

  • whenever I try to play the keys to Manhattan, I get an error violation: access to 0 x 00431467 (tried to read from 0x00000000), has been abolished

    original title: error: 0 x 00431467 of access violation

    whenever I try to play the keys to Manhattan I get error violation: access to 0 x 00431467 (tried to read from 0x00000000), has been abolished, what it means and how to fix

    Hello

    I suggest you try to perform the clean boot and check if it helps:

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

    NOTE: When you are finished troubleshooting, make sure that you reset the computer in start mode normal such as suggested in step 7 of the above article.

    It will be useful.

  • Message when you try to upgrade or install a program. "A network error occurred whtile attempted to read from the file:

    Receive the following message when you try to upgrade or install a program. "A network error occurred whtile attempted to read from the file?: MSI

    * original title - cannot open files with .msi extension *.

    You try to open this leave a link online? If yes I would like to try and save the MSI on your desktop and then try to open.

  • Cannot use Family Health Care Manager get error violation of cess to 0x779EE9D7 (tried to read from 0xB67C4C4C), program completed

    Original title: installation and execution of the FHCM

    I downloaded a trial version of Family Health Care Manager, (FHCM), that I need something to replace MEM Quicken.  When I try to start FHCM I get the error message: "Access violation at 0x779EE9D7 (tried to read from 0xB67C4C4C), program finished". ""  I have no idea what it means, so I'm using technicians FHCM, but none of their collaborative has resolved the problem.  Help please. Larry

    It is a very practical program to look and see if you can use it to solve problems.

    Process Monitor v2.8
    http://TechNet.Microsoft.com/en-AU/Sysinternals/bb896645.aspx

    This example may or may not work for you with your program, use the built-in Administrator account to perform the installation?

    "It seems that the"Run as Administrator"command gives you administrative privileges only, and they are not enough to install Java (and OpenOffice, by association). To work around this problem, you must actually connect to the built-in administrator. Open a command prompt with admin rights by clicking Start, type cmd in the search/run box, hit CTRL-SHIFT-ENTER. At the prompt, type:

    NET user administrator / Active: Yes

    Then disconnect from your regular account and folder administrator integrated, where you might be able to install the program. When you are finished, open a session to your regular account and, for security reasons, disable the built-in using administrator account:

    «net user administrator / active: No.»

    Solve installation errors using the SubInACL tool to repair the file and registry permissions
    http://blogs.msdn.com/astebner/archive/2006/09/04/solving-Setup-errors-by-using-the-Subinacl-tool-to-repair-file-and-registry-permissions.aspx

    Assuming that you have installed the program successfully, it will function in Mode safe?

    Startup options (including safe mode)
    http://Windows.Microsoft.com/en-us/Windows7/advanced-startup-options-including-safe-mode

    "tried to read from 0xB67C4C4C", which indicates that the program tries to access some areas of memory that he is not allowed access.  It can be a 'bug' program or maybe faulty memory?

    How to use the memory diagnostic tool in Windows 7 or Vista.
    http://www.Vistax64.com/tutorials/65361-memory-diagnostics-tool.html

    Try running ChkDsk to check your drive for errors. Right click on your drive icon / properties / tools / error checking.  First try checking not be (read-only) to see if it reports any problems file or hard drive.  If this is the case, start by checking the two boxes, in no other rerun.

Maybe you are looking for

  • Need all drivers for Win XP on Satellite L40 - 13 s.

    Hello. I have a 'Satellite L40-13s' and I need drivers for windows xp. I had 5 missing drivers:* Video controller* The video controller (VGA compatible)* Unknown device* Ethernet controller* Audio Device Can someone help me please?... ... Thanks ;)

  • Incorrect detection of type Macbook

    My Macbook pro is detected as a 'Macbook Air' (got "about this Mac" in the menu system). This has an impact on performance, stability, reliability, drivers, etc.. ? How to solve this problem? OS: 10.10.5

  • BSOD in Windows 7 since the addition of Office 07 and updates Windows.

    How can I keep my computer from HP 1 month (Windows 7 Home Premium 64-bit) to close down and blue-screening at random times?  First thing I did when I got it was to slowly add programs I used on XP safely in the past.  I run Comcast w/McAfee and viru

  • My HP8250 photosmart printer will not print black.

    My HP8250 ran out of black ink. I replaced the cartridge with a HP cartridge. But he has stopped printing in black. There is no error message. I went through the process of cleaning head level two. Still no black. I haven't tried another new cartridg

  • In Application of Cascades .db file creation

    Hello I am wondering how to create the initial .db file in order to be able to use SQL databases in my application. I took a glance examples of quotes, and while useful, it does not work without the quotes.db file that already exists in the project.