Error: No function with name to_date does exist in this scope

Hai All

insert into dail_att(empcode,barcode,intime,attend_date)

(select r1.barcode, to_date (to_char (r1.bardate, 'ddmmyyyy'): min (r1.bartime), 'ddmmyyyy hh24mi'),)
R1.bardate of the r1.barcode temp_attendance group, r1.bardat);

It is my statement to insert

Here I insert data Dail_att the table Temp_attendance and here R1 is the folder that I stated.

It works very well. More I need to add a column in the Insert EMPCODE IE and I need to

take Empl_barcode.

Table of Empl_barcode consist of fields

Empcode tank

Barcode varchar

Etc.

So I need to include empcode in this statement when I use this in my insert statement


insert into dail_att(empcode,barcode,intime,attend_date)
(selecte.emplcode, r1.barcode, to_date (to_char (r1.bardate, 'ddmmyyyy'): min (r1.bartime), 'ddmmyyyy hh24mi'),)

Temp_attendance R1.bardate, e empl_barcode, where e.barcode = r1.barcode group by

R1. Barcode, R1.bardate, e.emplcode);


I got an error

No function with name to_date does exist in the scope



Any help is highly appericatable


Thanks and greetings

Srikkanth.M

Published by: Srikkanth.M on April 24, 2010 09:26

Dear Srikkanth,
First of all, in the table / column you provided and that the corresponding query names there are a large number of spelling errors or incompatibilities. It is very important that you make sure that your question is consistent.

We have 'trying to figure out' if Bar_code is anme name or a table column, whence the emplcode column etc.
Take the time to write the question and format, please.
Frame queries and code in a pair of tags {code} without spaces.

That said...

update dail_att set empcode=(select emplcode
from empl_barcode ,dail_att where bar_Code= barcode);

And i have an error

ORA-01427: single-row subquery returns more than one row 

Let us think about this...
The subquery in your update statement (which is the main request) is

(select emplcode
from empl_barcode ,dail_att where bar_Code= barcode)

In this query, you want to join empl_barcode table and dail_att on * bar_code = barcode) condition.

Why must you table dial_att in the subquery? You do not have.
Remove dail_att the subquery table.

VR
Sudhakar B.

Tags: Database

Similar Questions

  • No function with name 'F_ITEMCHECK' does exist in this scope

    Hi I have an error:


    SQL > declare
    2 cursor stk_val is
    3 select prod_code, prod_desc, prod_tran bal_Stock;
    4 mProd_code prod_tran.prod_Code%type;
    prod_tran.prod_desc%type mProd_desc 5;
    mProd_qty 6 prod_tran.prod_qty%type;
    7 whole valexits;
    8 whole bal_stock;
    9 whole vquantity;
    10 whole f_itemcheck;
    Begin 11
    12 stk_val open;
    loop 13
    14 stk_val of fetch in mprod_code, mprod_desc, mprod_qty;
    15 exit when stk_val % notfound;
    16 valexits: = f_itemcheck (mprod_code);
    17 if valexits = 0 then
    18. insert into prod_mast (prod_code, prod_Desc, bal_Stock)
    19 values(mprod_code,mprod_Desc,mprod_qty);
    20 elsif valexits = 1 then
    Update 21 prod_mast
    22 set bal_stock = bal_stock + vquantity
    23 where prod_code = mprod_code;
    24 end if;
    25 end of loop;
    26 close stk_Val;
    27 end;
    28.
    Declare
    *
    ERROR on line 1:
    ORA-06550: line 3, column 34:
    PLS-00320: the declaration of the type of the expression is incomplete or incorrect
    ORA-06550: line 3, column 6:
    PL/SQL: SQL statement ignored
    ORA-06550: line 16, column 22:
    PLS-00222: no function with name 'F_ITEMCHECK' does exist in this scope
    ORA-06550: line 16, column 10:
    PL/SQL: Statement ignored

    You use f_itemcheck at the same time as a variable

    whole f_itemcheck;

    and in function:

    valexits: = f_itemcheck (mprod_code);

    But there is no function with that name...

    Max
    http://oracleitalia.WordPress.com

  • No function with name 'L_FLEX_VALUE_TAB' does exist in this scope

    Hi, need someone to advise,
    when I am compiling this package and I am facing this error message 'No function with name 'L_FLEX_VALUE_TAB' exists in this scope'.
    As I need this l_flex_value_list variable to pass as an out parameter for the procedure.
    
    
    'CREATE OR REPLACE PACKAGE TEST_ITEM_MODEL_INFO_PKG
    AS
    
    TYPE l_flex_value_rec IS RECORD
     ( value_set_name   fnd_flex_value_sets.flex_value_set_name%type,
       internal_name    fnd_flex_values.flex_value%type,
       display_name     fnd_flex_values_tl.description%type);
    TYPE l_flex_value_tab IS TABLE OF l_flex_value_rec INDEX BY BINARY_INTEGER;
    l_flex_value_list l_flex_value_tab;
    
    PROCEDURE get_flexvalue_list_proc
      (
        p_stmodel     IN VARCHAR2 DEFAULT NULL,
        p_item_number IN VARCHAR2 DEFAULT NULL,
        p_item_id     IN NUMBER   DEFAULT NULL,
        l_flex_value_list OUT l_flex_value_tab);
        
    END TEST_ITEM_MODEL_INFO_PKG;
    /
    
    CREATE OR REPLACE PACKAGE BODY TEST_ITEM_MODEL_INFO_PKG
    AS
    
     PROCEDURE get_flexvalue_list_proc
      (
        p_stmodel     IN VARCHAR2 DEFAULT NULL,
        p_item_number IN VARCHAR2 DEFAULT NULL,
        p_item_id     IN NUMBER   DEFAULT NULL,
        l_flex_value_list OUT l_flex_value_tab)
     IS
     l_column_name    VARCHAR2(100);
     l_column_value   VARCHAR2(200);
    
    
    BEGIN
      l_column_name  :=NULL;
      l_column_value :=NULL;
      l_flex_value_list :=l_flex_value_tab();
       ....
       ....
       ....
       FOR i in 1..l_flex_column_list.count LOOP
              FOR l_flex_rec in (SELECT evsvv.value_set_name, evsvv.internal_name, evsvv.display_name
                              FROM ego_value_set_values_v evsvv
                              WHERE evsvv.value_set_name='SEAEGO_CC_FAMILYMODEL_INFO_'||l_flex_column_list(i).column_name
                              AND evsvv.internal_name=l_flex_column_list(i).column_value)
              LOOP
                 l_count:= l_count+1;
                 l_flex_value_list(l_count).value_set_name:=substr(l_flex_rec.value_set_name,28);
                 l_flex_value_list(l_count).internal_name:=l_flex_rec.internal_name;
                 l_flex_value_list(l_count).display_name:=l_flex_rec.display_name;   
              END LOOP;
          END LOOP;
    
     end get_flexvalue_list_proc;
    END TEST_ITEM_MODEL_INFO_PKG;
    /
    show errors

    It is, you cannot initialize an associative array with a constructor. If you convert your array type such as pl/sql (without index) table in package specifications and run your package body, it will run successfully.

    And also I found, that you have declared a variable of type table, which is not necessary. You can have parameter in your procedure of type table, so it was a declaration of useless, I commented.

    Check the code below.

     CREATE OR REPLACE PACKAGE TEST_ITEM_MODEL_INFO_PKG
     AS
     TYPE l_flex_value_rec IS RECORD
      ( value_set_name   number,
        internal_name    number,
        display_name     number);
     TYPE l_flex_value_tab IS TABLE OF l_flex_value_rec;  --------no Index by required
     --l_flex_value_list l_flex_value_tab;
     PROCEDURE get_flexvalue_list_proc
       (
         p_stmodel     IN VARCHAR2 DEFAULT NULL,
         p_item_number IN VARCHAR2 DEFAULT NULL,
         p_item_id     IN NUMBER   DEFAULT NULL,
         l_flex_value_list OUT l_flex_value_tab);
     END TEST_ITEM_MODEL_INFO_PKG;
    /
    
  • MuseSJAssert: error calling function selector: TypeError: object does not support this property or method

    I get this error message with IE, version 8 upwards. The message appears once you navigate to another page on the site and then return to the home page. Can anyone offer advice on how to solve it? As the cursor on the site doesn't seem to work with IE, we wonder if that's where the whole issue.

    The site is hosted in British Colombia and is http://www.improvementservice.org.UK

    Thanks in advance.

    Martin.

    Hi Martin,

    Could you please try some steps here.

    MuseJSAssert: Error calling function of selection: [Object Error]

  • date function with logical operator does not...

    Hi all

    I saw table FINYEAR that having all the details of the fiscal year of the company. I have in my procedure according to user input identify current fiscal.

    Data in table FINYEAR...

    PATHDESCFDATELDATECIDCLOSINGYEAR
    April 1, 2010 to March 31, 201101/04/201031/03/2011BCDTRA0003H
    April 1, 2011 to March 31, 201201/04/201131/03/2012BCDTRA0003H
    April 1, 2012 to March 31, 201301/04/201203/31/2013BCDTRA0003H
    April 1, 2013 to 31 March 201401/04/201331/03/2014BCDTRA0003S
    March 31, 2015, 1 April 201401/04/201431/03/2015BCDTRA0003

    "I have two parameter in the procedure F_DATE = January 1, 2013 ', L_DATE = March 30, 2013.

    Above the entrance I must identify period are what financial year.

    Result must be this line... bcz F_DATE and L_DATE are with the fiscal year 2012-2013...

    April 1, 2012 to March 31, 201301/04/201203/31/2013BCDTRA0003H

    I try with the query below, but no luck... Please help in this regard

    Select * from finyear where

    Fdate < to_date('01/01/2013','DD/MM/RRRR')

    and ldate < to_date('30/03/2013','DD/MM/RRRR') and cid = "BCDTRA0003";

    Try this:

    SELECT * FROM finyear

    WHERE the to_date('01/01/2013','DD/MM/YYYY') BETWEEN fdate ldate AND

    AND to_date('30/03/2013','DD/MM/YYYY') BETWEEN fdate ldate AND

    AND cid = "BCDTRA0003";

  • I get an error code 1 with automatic update how to solve this

    This code come every time needs adobe to update is there any solution?   Error code 1

    Code 1 discussion https://forums.adobe.com/thread/1434528

  • A virtual machine or the template with the same name is already registered. Server error: the specified key name or identifier already exists.

    Hi all

    I have a 5.5 esxi server just the a virtual machine running at the moment. I try to clone this as shown below:

    http://nchrissos.WordPress.com/2013/04/22/cloning-a-VM-without-vCenter-in-ESXi-5-1-free-edition/

    However, I get the error:

    A virtual machine or the template with the same name is already registered. Server error: the specified key name or identifier already exists.

    I have no vcenter (yet), and it's just the 1 vm. The virtual machine is turned off. I get this error regardless of the name, I said that when I choose "add to the inventory.

    All advice appreciated.

    Thank you

    Oh dear...
    you read bad advice on the internet and then you get also the stupid advice here.

    Ignore both!

    If you want to clone a virtual machine by copying - do it like this:

    Create new virtual machine with the wizard.
    Skip creating a disk for new customers.

    In Datastorebrowser copy the original vmdk to the new dir, which has been created by the wizard.
    Reopen the new VM and edit - assign the vmdk that you just copied.

    The procedure of the blog is not supposed to work.
    Sissine trick doesn't make sense either

  • Can't send or receive messages on behalf of Live.co (apermaculture). The connection name specified does not exist or your password is incorrect.

    Can't send or receive messages on behalf of Live.co (apermaculture). The connection name specified does not exist or your password is incorrect.

    Server error: 0 x 80048821
    Server: 'http://mail.services.live.com/DeltaSync_v2.0.0/Sync.aspx '.
    Windows Live Mail error ID: 0 x 80048821

    Hi Nic of Necker,

    When you use Windows Live Mail and the question you have posted is related to Windows Live, so it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    Windows Live Mail Forum

    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    I hope this helps.

  • Impossible to analyze your diet. Invalid XML: error on line 190: name of the "disabled" attribute associated with an element type "button" should be followed by the "=" character.

    Hello I am trying to download an episode of my Podcast podcast connect and get this error?

    Impossible to analyze your diet. Invalid XML: error on line 190: name of the "disabled" attribute associated with an element type "button" should be followed by the "=" character.

    my diet is validated? http://beprovidedhealthradio.libsyn.com/RSS

    It worked for my first episode? I don't know why it doesn't work for the second episode. I also use Libsyn if that helps.

    Your show is already in iTunes.

    https://iTunes.Apple.com/podcast/id1151562400?MT=2 & ls = 1

    And everything seems fine with it and your diet.  You ONLY SUBMIT YOUR FEED ONCE.

    That's it - better to stay outside of your podcast connect account - only bad things happen to go there and play with things.  Once again, your show is very well and is in iTunes and your flow is good with it.

    Both episodes show when you subscribe - and your most recent episode appears on the page of the iTunes, general store with in 24 hours from when you posted it.

    Rob W

    https://iTunes.Apple.com/us/podcast/beprovided-health-radio/id1151562400?MT=2 https://iTunes.Apple.com/us/podcast/beprovided-health-radio/id1151562400?MT=2

  • My husband doesn't like the itunes account is under my name.  I have a way that he can have his own name and sign on with her and still exist on the family account?

    My husband doesn't like the itunes account is under my name.  I have a way that he can have his own name and sign on with her and still exist on the family account?  Also, have we HAVE two-step verification?   It's a real pain.

    Yes it can have its own ID and share your content via the family sharing, he needs to sign out of your ID and to create his own, then one of you needs to invite another family sharing.

    You don't need to use 2 verification step, if you want you can disable to my Apple ID

  • I'm having a problem with the email of comdast especially for the outgoing with SMPT. Does not recognize the user name or password. Erased and the exact same re-admitted and do a little work and now 2 - 3 times a week same recurrs either on iphone, ipad a

    In the last 6 months + / _ my Comcast email not send mail as the smpt said that the name and the password not recognized. I can delete them both and then re-enter on my iphone and ipad, imac and it works again. It happens now 2 or 3 times each week. Comcast.com my website does not do this and can receive and send email without problem. Their support, explains what's happening with many of their apple using the client.

    All the answers in the group. Has not happened before. This could be with apple's IOS dates as google is not not the case.

    pdeyedoc

    You should probably get a different email.

    I know this isn't much of an answer or even very applicable but everyone I know eventually loses their emails from mobile provider or cable operator sends cause unless you stick with them forever, your account is deleted after you leave them.

    Gmail, yahoo, rocket mail, and even AOL don't do that.

  • Mathematical functions with input/output error

    Please refer to the attached picture. Where do you find these mathematical functions with input/output error? I saw these in response to a message.

    I think they appear when you connect a waveform or dynamic data type.  Since I rarely use these data types (just give the table!), I'm not positive.

    Lynn

  • Group Policy infrastructure failed due to the error below. The specified domain does not exist or could not be contacted.

    using several Windows 2003 domain in an attempt to push the msi using Group Policy is following on xp sp3 machine error

    Group Policy infrastructure failed due to the error below.
    The specified domain does not exist or could not be contacted.

    Note: Due to the GP Core failure, no other component processes Group Policy policy.  Consequently, status information for the other components are not available.

    Hello

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums. It is better suited for the IT Pro TechNet public. Please post your question in the Technet Windows Forums. Here is the link:
    http://social.technet.Microsoft.com/forums/en-us/w7itpronetworking/threads

  • Windows Live Messenger error: A conversation with (user name) could not be started. Please try again.

    When you try to send a text message to a number using Windows Live Messenger I get this error: "a conversation with (user name) could not be started. Please try again. "I can't send a text message to a phone using Windows Live Messenger. What is the problem?

    Ask in the Windows Live Solution Center Portal Messenger.

  • When you try to schedule a task, error message 0 x 80090016 Keyset does not exist.

    Whenever I try to schedule a task, I get the error message 0 x 80090016 Keyset does not exist. I went to the response page, but I do not understand what protected storage is and I do not know how to find... I followed the instructions, but windows cannot find MSC.

    Hello

    You did changes to the computer before this problem?

    I think you could have typed incorrect order in the run window. Here are the steps that may help you.

    1 open administrative tools by clicking the Start button, click on the Control Panel, clicking system and Maintenance, and then clicking Administrative Tools.

    2. double-click on Services. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. find the protected storage service, and click to select.

    4. Select Properties.

    5. in the Startup Type list, select automatic.

    6. make sure the service of that status is started.

    7. click on OK.

Maybe you are looking for

  • Toshiba 37BV701G - where to find the latest firmware

    Hi, I would like to update my TV firmware. Current is 0.3.5.a. I can't find the file to download. Thank you

  • What Win8 version is preinstalled on the Satellite C870D - 11 X?

    What version of windows 8 is pre-installed on laptop Satellite C870D - 11 X? What is the pro version?Thank you very much.

  • HP Pavilion a6040a will not start

    Hi guys,. My Pavilion a6040a desktop running Vista home, does not start. All I get is a blank screen and a beep code (1 short, 1 long, pause, repeating endlessly). I can't run any recovery CD and I got up to the part where I have to take part in the

  • Impossible to uninstall the old Brother printer program

    Original title: program won't uninstall (1) try to uninstall the program (old Brother printer) (2) Add/Remove Programs list displays the name of the program (3) deletion FAILS with something like "blah, blah... lack of bits & pieces... blah, blah." (

  • Windows detects only not MD3200

    Good day, everyone! We have DELL 810 Server with Windows 2008 R2 and Dell Power Vault MD3200. MD3200 to connect to the server with 2 SAS cables. I'm create disk with RAID, according to the instructions (result on the photo) and it works (I think). Bu