Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8002163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T16:16:48+00:00 2026-06-04T16:16:48+00:00

I had to return procedure which will display a missing data from a table.

  • 0

I had to return procedure which will display a missing data from a table.

CREATE OR REPLACE PROCEDURE GETEMPLOYEE_INFO
(
P_CPNCOD in varchar2,
P_PAYDAT in date,
P_PAYTYP in varchar2,
P_ERV out varchar2)
is
R_DI_FILLODINF NUMBER(20);
BEGIN
   FOR i IN (SELECT * FROM DI_ELEMOD)
   LOOP
     SELECT COUNT(*) INTO R_DI_FILLODINF
     FROM DI_FILLODINF
     WHERE P_CPNCOD=i.CPNCOD and
           P_PAYDAT=i.PAYDAT and
           P_PAYTYP=i.PAYTYP ;

    if nvl(R_DI_FILLODINF,0)<=0
     then   
    dbms_output.put_line ('missing data : ' ||     i.CPNCOD  ||     i.PAYDAT  ||     i.PAYTYP   );
    end if;
    end loop;
    EXCEPTION
       WHEN OTHERS THEN NULL;
 end;
/

but now my problem is, if I put date ’01-JUN-12′ than output should display missing data but only of year 2012. Please help in this

Thanks alot in advance

DECLARE
V_INSTY DI_FILLODINF.INSTYP%TYPE;
BEGIN
GETEMPLOYEE_INFO ('CO','01-JUN-12','D',V_INSTY);
END;
/
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T16:16:49+00:00Added an answer on June 4, 2026 at 4:16 pm

    If I understand you right, then what you need to do is select in your outer query only the values from the right year:

    SELECT * FROM DI_ELEMOD
    WHERE PAYDAT >= trunc(P_PAYDAT, 'yyyy') 
    AND PAYDAT <= trunc(add_months(P_PAYDAT,12),'yyyy')-1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had Repeater which bind method this method retrieve data from data base by
Suppose I had a query select name from tbl where dept = 123 which
I'm trying to call an Oracle Stored Procedure which returns XMLType data, but all
I had an issue with my search not return the results I expect. I
I had this code: int foo(void){ return 1; } int main(void){ static const int
I had two separate interfaces, one 'MultiLingual' for choosing language of text to return,
I had a version 1 of a function like: def f(a,b,c): #Some processing return
While developing an application, I had the following problem. I wanted to return an
I have a stored procedure which uses a FOR XML statement at the end
i had followed exactly same procedure on google's tutorial: http://developer.android.com/guide/tutorials/views/hello-mapview.html ...while i got force

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.