You have no lines for the SQL query to select

Dear Sir.

I don't want to choose these lines in the second query, please guide me how to do.

Request-> 1

(SELECT ID_NO, ATTND_DATE
    FROM ATTND_REGISTER 
    WHERE ATTND_DATE BETWEEN :FD AND :TD
    ORDER BY ID_NO, ATTND_DATE
)AT

A query result.

ID_NOATTND_DATE
E1FEBRUARY 1, 14
E1FEBRUARY 2, 14
E13 FEBRUARY 14
E14 FEBRUARY 14
E1FEBRUARY 5, 14
E1FEBRUARY 6, 14
E1FEBRUARY 7, 14
E1FEBRUARY 8, 14
E1FEBRUARY 9, 14
E110 FEBRUARY 14
E1FEBRUARY 11, 14
E1FEBRUARY 12, 14
E1FEBRUARY 13, 14
E114 FEBRUARY 14
E115 FEBRUARY 14
E116 FEBRUARY 14
E117 FEBRUARY 14
E118 FEBRUARY 14
E119 FEBRUARY 14
E120 FEBRUARY 14
E4FEBRUARY 1, 14
E4FEBRUARY 2, 14
E43 FEBRUARY 14
E44 FEBRUARY 14
E4FEBRUARY 5, 14

Request-> 2

: VALUE OF THE VARIABLE FD = 1 FEBRUARY 14

: VALUE OF THE VARIABLE TD = FEBRUARY 28, 14 '

SELECT A.ID_NO,B.DATES,A.EMP_NAME, A.DESG_NAME
FROM
  (
    SELECT  ROWNUM - 1 + TO_DATE(:FD, 'DD/MM/RR') DATES
    FROM ALL_OBJECTS
    WHERE ROWNUM < TO_DATE(:TD, 'DD/MM/RR') - TO_DATE(:FD, 'DD/MM/RR') + 2
  )B,


  (
    SELECT ID_NO, INITCAP(FL_NAME) AS EMP_NAME, INITCAP(UBN.DESG_NAME(DESG_ID)) AS DESG_NAME
    FROM PERSONAL
    WHERE (STATUS = 'A')
    AND (COMPANY_CODE = :COMPANY_CODE)---COMPANY CODE=6
    AND (ID_NO = :ID_NO OR :ID_NO IS NULL)
  )A
ORDER BY A.ID_NO,B.DATES;


Solved

I changed in the second query with using the first query.

in Where Clause

WHERE B.DATES | A.ID_NO NOT IN (SELECT ATTND_DATE |) NBI ID_NO. ATTND_REGISTER

WHERE ATTND_DATE BETWEEN: FD AND: TD)

Thank you Allah (SWT).

Tags: Database

Similar Questions

  • The OFA error: you have enough privileges for the operation. Please contact your system administrator. (Hello world does not)

    Hello

    My business that we are upgrading to R12.2.5. I downloaded the latest patch from metalink jdeveloper and trying to configure jdeveloper. When I ran Hello World program I get an error of "you have enough privileges for the operation." "Please contact your system administrator."

    I have facility for all the configs needed in the project but still is the same.


    When I fell on the debug mode. I got the same error with the missing config file.

    Please check below the debug message:

    November 4, 2015 16:47 oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig

    INFO: oracle.adf.share.config.ADFConfigFactory no META-INF/adf - config.xml not found

    Help me its urgent.

    Thank you

    Thanks for the reply to my post.

    I used the position and he help me solve the problem.

    As I'm working on R12.2.5 which is the latest version of oracle, so the solution was not entirely correct, but helped me dig the real solution.

    After that the implementation of Jdevloper below is the steps I followed

    1. change the profile FND option: validate IP address - no

    2 al ' Jdeveloper go to tools--> embedded OC4J preferences--> Global--> starting--> address local IP select by default.

    It helped me solve my problem.

    Thank you

  • You have enough privileges for the operation. Please contact your system administrator.

    Hello

    We are modernizing 12.1.3 to 12.2.4

    We have a custom workflow that sends the Notification.

    Notification consist of link (a link that directs to the custom function)

    By clicking on this link, we get

    Error:

    You have enough privileges for the operation. Please contact your system administrator.

    Actions taken:

    Active: WF_LOCAL_USER_ROLES, WF_LOCAL_ROLES, WF_USER_ROLES, user who receives Notification required roles.

    Checked: Function that is called by clicking on the link is affected under which the user is responsible.

    12.2.4 there everything must be given more subsidies?

    Please advice what to do to fix this problem.

    Hi AJ,.

    We have the solution to this question in my other thread, thank you for your support

    Call the Notification Destination URI

  • We have created a responsibility custom to access the Collection of quality RESP results, we get an error - you have enough privileges for the operation. Please contact your system administrator.

    Hi all

    We have created a responsibility custom to access the results of Collections only HTML page.

    Details of the liability and the Menu are also less

    Name of the RESP: XX QUALITY

    Application: Quality custom

    Menu: XXQA_QUALITY

    and there is no attached grp applications.

    Definition of menu:

    Menu name: XXQA_QUALITY

    Description of function for the submenu SEQ invites

    10 quality Workbench results results collection begins Page quality Workbench results Start Page

    quality of view finds quality results 20 results display quality results

    We show only this specific user responsibility and whenever it tries to access the page "Results from the Collection" he gives us an error.

    "You have enough privileges for the operation." Please contact your system administrator.


    If we attribute an RESP of super user of quality to this user, it allows to access the form.


    Can you kindly help us to find a solution to this problem.


    Thank you

    Maury

    Hi all

    I guess I found the answer,

    I need to join all the submenus that are part of the HTML Page.

    Results from the collection Results of quality Workbench Start Page
    Nonconformities Quality Workbench nonconformities homepage
    Corrective actions Quality Workbench action homepage
    Consultation of lots of Skip Lot of Skip quality Workbench Start Page

    Have they added those. and it worked.

    Thank you

    Maury

  • How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above.  This problem occurs when I try to convert a word in a PDF doc.

    How to prevent the appearance of "Failed to open Document" "Please check if you have read permissions for the file above? This problem occurs when I try to convert a word in a PDF doc.

    Hi [email protected] ,

    Please try to follow the steps mentioned in this thread with a similar problem: Impossible to open the document. Please check if you have read permissions for the above file.

    Also, let us know the acrobat version you have and the version of the OS on your system.

    Let us know if that helps.

    Concerning
    Sarojini

  • Error running OAF in R12.2.3 page: you have enough privileges for the operation. Please contact your system administrator.

    Team,

    EBiz Version is: R12.2.3

    OFA Patch Jdev Version is: p17888411_R12_GENERIC

    IAM getting the following error: you have enough privileges for the operation. Please contact your system administrator.

    during the execution of the page of Jdeveloper.

    Let me know what is the bug in this?  What I need to change no matter what profile? It occurs because of a security problem?

    Please advice.

    Concerning

    Sridhar

    It is resolved...

    do you have the same things that are mentioned in

    ORACLE APPS: Errors and resolution OFA

    Go to tools--> embedded OC4J preferences--> Global--> Select Start--> default local IP address. @

  • Cannot open the document. Please check if you have read permissions for the file above.

    System:

    • Adobe Acrobat X Pro, 10.1.2
    • Windows 7 Enterprise, 32-bit
    • Badass de Core Quad CPU
    • 4 GB OF RAM
    • MS Word 2010 (Office 2010)

    I installed the latest version as an administrator and as an administrator. I have all the rights to all the files on the PC.

    When I try to create a PDF file from any Word document, if. DOC or. DOCX, I get an error window everytime:

    "Cannot open the document:

    "[document location]".

    'Please check if you have read permissions for the file above.'

    This occurs after the notice appears little "start of the application that created the document...". »

    If I open Word and create a PDF to the Ribbon, it works. It still only allows me to create from Acrobat.

    It creates a PDF file of Excel files, but not the DOC files. I looked for alternatives, but found nothing. I found that July 2011:

    "I have discovered Adobe support that it is a known problem with Office 2010 SP1 installed. It is news for someone of another encounter this problem, remove the SP1 and it will work ok. They said an update to fix this will be coming in the next quarter. »

    I have updated to the latest version 10.1.2 and I still have this problem.

    This is a major problem because it also fails on the batch conversions, which is what I really need for 100 or if the documents which must be PDFed. I'm not going to open each individual file and save each word.

    This is a KNOWN PROBLEM with Adobe, and if you look through the forums, you will find a lot of people having this problem, and so far, I have seen no solution.

    If anyone has found a solution, please report it here.

    Thank you!

    B

    Thus, the conversion does not work the first time if you remove the Normal.dotm? You have group policies that change your path models user (for Word) on a network drive?

  • Need for the sql query to have several columns in a single coulumn

    Hi all

    I need create the query to have several columns in a single column with several lines.

    Select a.customer_trx_id, a.previous_customer_trx_id
    of ra_customer_trx_all one
    where a.customer_trx_id =: customer_trx_id

    Here, a.customer_trx_id and a.previous_customer_trx_id are in two columns. I need to put them in a single column.

    Say: the foregoing is output
    --------------------------------------------------------------------------------
    a.customer_trx_id a.previous_customer_trx_id

    --------------------------------------------------------------------------------
    123456 87654

    --------------------------------------------------------------------------------

    Need for a single column

    As


    --------------------------------------------------------------------------------
    123456
    87654

    --------------------------------------------------------------------------------

    Please do the needful. Please note that it is not the UNION.

    Thank you
    Abdul

    Hello

    You want a way to confirm that what looks like two rows is really a line?

    Here are three ways:

    (1) count the lines:

    WITH  my_original_querry     AS
    (
         select  a.customer_trx_id || CHR(13)
                          || a.previous_customer_trx_id     as id
         from      ra_customer_trx_all     a
         where      a.customer_trx_id      = 274881
    )
    SELECT     COUNT (*)
    FROM     my_original_query;
    

    (2) in SQL * Plus, have SQL * more count them for you:

    SET     FEEDBACK     1
    
    select  a.customer_trx_id || CHR(13)
                     || a.previous_customer_trx_id     as id
    from      ra_customer_trx_all     a
    where      a.customer_trx_id      = 274881;
    

    (3) implicitly count them with the ROWNUM Pseudo-column

    select  a.customer_trx_id || CHR(13)
                     || a.previous_customer_trx_id     as id
    ,     ROWNUM
    from      ra_customer_trx_all     a
    where      a.customer_trx_id      = 274881;
    
  • How old do you have to qualify for the scheme "student"?

    I am a student and want to really creative Cloud. Is there a certain 'class' that you need? Thank you.

    Student and Teacher Edition of links:
    ----------------------------------

    Request student/teacher discount

    http://www.Adobe.com/go/edu_verify_ecomm_us

    For more information about the provisions of the student/teacher, you can refer to the following information page:

    http://helpx.Adobe.com/x-productkb/policy-pricing/Education-FAQ.html#main_submit_poe

    Another good resource for information is the student and teacher edition information forum:

    http://forums.Adobe.com/community/download_install_setup/student_and_teacher_edition_infor mation_? view = discussions

    Here are some links about the Adobe student discount:
    http://www.Adobe.com/education/students.edu.html?showEduReq=Yes

    http://www.Adobe.com/education/student-eligibility-Guide.edu.html

    http://www.Adobe.com/education/students/how-to-buy-eligibility.edu.html

  • OPTIMIZE THE SQL QUERY

    My DBA comes after me every time that I run query below. The worst thing is, this is only a test query on 1/50 of the data. Finally, I have to make it work on all data.
    If possible, can someone please show me a way effiecient write this? Please provide details. enjoy it...
         select * from dual
                                                                                                                                                                                                                                                                                      
    Published by: 788729 on Sep 16, 2010 16:13

    ---------- T2

    SELECT AA. PAYER_ID1, AA. FORM_TYPE, DECODE (AA. FORM_TYPE, '1', 'TEACHER') AS CLAIM_TYPE, AA. CLAIM_ID, AA. SUBSCRIBER_ID, AA. PAY_TO_PROVIDER_ID ACE PROVIDER_ID, AA. PAY_TO_PROVIDER_NAME AS PROVIDER_NAME,
    DECODE (AA. ("' P_NETWORK, '1000', ' Y ', '1001', ' don't) LIKE IN_NETWORK_FLAG, AA. PRACTITIONER_ID, "AS DIAGNOSIS_CODE_LIST" AS OTHER_PROCEDURE_CODE_LIST, "AS DRG_CODE", AS DRG_DESC,.
    ABM ICD9_1 ACE PRINCIPAL_DIAGNOSIS, AA. RECEIVE_TIME AS CLAIM_RECEIVE_DATE, AA. CORRECTION_LEVEL
    CMS_ADMIN. DM_V4_CLAIM,. CMS_ADMIN DM_V4_PROF_CLAIM BB AA
    WHERE AA. CLAIM_ID = BB. CLAIM_ID (+)
    AND AA. FORM_TYPE = '1'
    AND AA. PAYER_ID1 = "HRF".
    AND BB. PAYER_ID = "HRF".
    AND AA. PAYER_ID1 = BB. PAYER_ID (+)
    AND (TRIM (AA. CLAIM_STATUS) ('4 ', '5', '6',' 7') OR
    (TRIM (AA. CLAIM_STATUS) = 'O' AND AA. BACK_OUT_CLAIM_ID IS NULL))
    - AND AA. CLAIM_ID = '091007443331'
    AND NOT EXISTS (SELECT DISTINCT BK. DM_V4_CLAIM BK BACK_OUT_CLAIM_ID WHERE BK. BACK_OUT_CLAIM_ID = AA. CLAIM_ID AND BK. PAYER_ID1 = AA. PAYER_ID1)
    ) T2

    COMMENT:

    (1) in your query above T2 you are left outer join DM_V4_CLAIM to DM_V4_PROF_CLAIM, from where you have a line in the DM_V4_PROF_CLAIM table if there is no corresponding line found for DM_V4_CLAIM in the DM_V4_PROF_CLAIM table and you have enter the BB predicate. PAYER_ID = "HRF" hence left outer join is meaningless here you can turn it into an inner join

    CMS_ADMIN. DM_V4_CLAIM,. CMS_ADMIN DM_V4_PROF_CLAIM BB AA
    WHERE AA. CLAIM_ID = BB. CLAIM_ID
    AND AA. FORM_TYPE = '1'
    AND AA. PAYER_ID1 = "HRF".
    AND BB. PAYER_ID = "HRF".
    AND AA. PAYER_ID1 = BB. PAYER_ID
    AND (TRIM (AA. CLAIM_STATUS) ('4 ', '5', '6',' 7') OR
    (TRIM (AA. CLAIM_STATUS) = 'O' AND AA. BACK_OUT_CLAIM_ID IS NULL))
    - AND AA. CLAIM_ID = '091007443331'
    AND NOT EXISTS (SELECT null FROM DM_V4_CLAIM BK WHERE BK. BACK_OUT_CLAIM_ID = AA. CLAIM_ID AND BK. PAYER_ID1 = AA. PAYER_ID1)

    (2) if there is that no index on the CLAIM_STATUS column will not use unless you have FBI set on a moulding (AA. CLAIM_STATUS)

    (3) you can avoid separate in your above query EXISTS

    SELECT null FROM DM_V4_CLAIM BK BK WHERE. BACK_OUT_CLAIM_ID = AA. CLAIM_ID AND BK. PAYER_ID1 = AA. PAYER_ID1

    (4) also your view online T6 can be merge with your opinion online above T2 as below

    Using Analytics max (CORRECTION_LEVEL) on (PD partition. CLAIM_ID, PD. CHECK_DATE, PD. PAYER_ID) as CORRECTION_LEVEL

    -------------- T1

    SELECT CC. CLAIM_ID, CC. LINE_NUMBER, TRUNC (CC.) SERVICE_FROM_DATE, 'MONTHS') AS SERVICE_MONTH, CC. LOCATION_CODE AS BILL_TYPE_POS, CC. SERVICE_CODE, "AS REVENUE_CODE, CC. UNITS OF MEASURE AS,
    CC. UNIT_MEASUREMENT ACE UNIT_TYPE, CC. SERVICE_FROM_DATE AS SERVICE_DATE, "LIKE SERVICE_THRU_DATE", LOS, JJ. SHARE AS COPAY_AMOUNT,
    DD. AUTHORIZED AS ALLOWED_AMOUNT, JJ. PAID AS PAID_AMOUNT, CC. TOTAL_CHARGES, JJ. PAYER_ID
    CMS_ADMIN. DM_V4_PROF_CLAIM_DETAIL CC,. CMS_ADMIN DM_V4_CLAIM_DETAIL DD
    WHERE JJ. CLAIM_ID = CC. CLAIM_ID (+)
    AND JJ. LINE_NUMBER = CC. LINE_NUMBER (+)
    AND JJ. PAYER_ID = CC. PAYER_ID (+)
    AND JJ. PAYER_ID = "HRF".
    AND CC. PAYER_ID = "HRF".

    COMMENT

    (1) here also not outer join is meaningless since you condition and CC. PAYER_ID = "HRF".

    ----------------

    (SELECT SEPARATE CD. CODE, UPPER PART (CD. DESCRIPTION) LIKE CLAIM_SPECIALTY, PM. PROVIDER_ID, H. PAYER_ID
    TO. CMS_ADMIN DM_V4_CODES. CMS_ADMIN DM_V4_PROVIDER_MASTER PM CD
    WHERE CD. CODE_TYPE = "11"
    AND CD. PAYER_ID = "HRF".
    AND H. PAYER_ID = "HRF".
    AND H. SPECIALTY_LIST = CD. CODE (+)
    AND H. PAYER_ID = CD. PAYER_ID (+)
    ) T5.
    (
    SELECT SEPARATE CD. CODE, UPPER PART (CD. DESCRIPTION) LIKE FACILITY_TYPE, PM. PROVIDER_ID, H. PAYER_ID
    TO. CMS_ADMIN DM_V4_CODES. CMS_ADMIN DM_V4_PROVIDER_MASTER PM CD
    WHERE CD. CODE_TYPE = '52'
    AND CD. PAYER_ID = "HRF".
    AND H. PAYER_ID = "HRF".
    AND H. FACILITY_TYPE = CD. CODE (+)
    AND H. PAYER_ID = CD. PAYER_ID (+)
    ) T7.

    COMMENT

    (1) once again here as a left outer join is unnecessary and its licensees you can write a single query below that covers your request t5 and t7

    SELECT SEPARATE CD. CODE, UPPER PART (CD. DESCRIPTION) LIKE FACILITY_TYPE, PM. PROVIDER_ID, H. PAYER_ID

    TO. CMS_ADMIN DM_V4_CODES. CMS_ADMIN DM_V4_PROVIDER_MASTER PM CD
    WHERE CD. CODE_TYPE in ('52 ', ' 11')
    AND CD. PAYER_ID = "HRF".
    AND H. PAYER_ID = "HRF".
    AND H. FACILITY_TYPE = CD. CODE
    AND H. PAYER_ID = CD. PAYER_ID

    Please do analyze your query and do simple that only you can do since you have known data, constriant, primary key/foreign key relationship

    Thank you...

    Published by: user10857924 on August 30, 2010 17:02

  • How to do a validation based on the SQL query?

    Hello

    I have a requirement to perform a validation on a field (messageTextinput) in my page OAF.

    When I click the button apply, the value in this field is validated based on a SQL query (for example, the value in the field NOT IN (value1 select from table1).)

    Help, please.

    Best regards

    Joe

    1. create a SQL query based VO, XXVO. For example:-SQL query is select xx_table;

    2. Enter the "Apply" button click event in the controller and run the AM method passing the value entered by the user in the given field, for example:-value is VAL1

    3. in the method of the AM, get a handle of the VO, the whereClause and run.

    OAViewObjectImpl vo = findViewObject ("XXVO1"); XXVO1 is the name of the instance of the VO above, XXVO

    vo.executeEmptyRowSet ();

    vo.setWhereClause (null);

    vo.setWhereClause ("value =" + VAL1 + "'");

    vo.executeQuery ();

    If (VO. GetRowCount() > 0)

    A record is with the value of VAL1. Perform the required action

    I hope this helps.

  • HP Pavilion 500 series: I get a message saying that you have pending updates for Hp Support Assistant over and over again

    HI a little while back I upgraded to anniversary Windows 10 update things went well for me I keep hp Support Assistant on my desktop in the process of updating Windows 10 anniversary.  Finally, I decided one day to check hp Support Assistant to ensure that I had the lastestet version.  I went into Hp Support Assistant and clicked on about and clicked on the button for the latest version control, then a window is come in saying I had pending updates for Hp Support Assistant I would like to apply or not.  I pushed on the Yes button.  After the download and install updates and hp support Assistant stops and tempary files are deled then hp support Assistant will restart and return to the start page.  Everything seems to work fine download with green and white checkmarks circles with the categories above.

    I guesss I am asking for help it is because for days and days now when I go to HP support Assistant and click search the latest version that I get this message, you have pending updates for the support of hp Assistant you would like to apply or not.  I would now like to how pending updates will I have to ask a support Assistant hp until I don't see updates are available for the support of hp Assistant.

    Here is some information that might be helpful below:

    HP Supportt Assistant program file version: 16.101.7752

    How can I ensure that I have the latest version of the Support Wizard on my desktop computer.

    HP Support Assistant: 8.3.34.7

    Patch: 8.3.34.7

    Framework: 12.5.32.37

    Configuration files: 8.0.6294.2155

    Let me now is how easyier I could apply all updates waiting for the support of hp Assistant for Windows 10 home Edition 64-bit operating system.

    Thanks for your time and your help.

    @funny35,

    I'm glad that I could be useful,

    To help others looking for the same solution, please click on the tab "accepted solution".

    I thank you for your time and have a nice day!

    Kind regards

  • Need help in the sql query

    Hi all

    Here is the sql query,

    Select papf.employee_number,

    -papf.full_name, ppa.effective_date, pp.payroll_name,

    PET.element_name,

    PIV. Name input_value,

    prrv.result_value

    -, ppa.payroll_action_id, ppa.time_period_id

    Of

    Apps.pay_payroll_actions App,

    pay_assignment_actions AAP,

    pay_payrolls_f pp,

    pay_run_results prr,

    prrv pay_run_result_values,

    pay_input_values_f piv,

    animal pay_element_types_f,

    Apps.per_all_assignments_f ADP,

    Apps.per_all_people_f women's wear

    -where ppa.payroll_action_id =: payroll_action_id - give your payroll_action_id

    where ppa.payroll_id =: payroll_id

    and ppa.payroll_action_id =: payroll_action_id

    - and paa.assignment_action_id =: assignment_action_id

    and ppa.payroll_action_id = paa.payroll_action_id

    and ppa.payroll_id = pp.payroll_id

    and paa.assignment_action_id = prr.assignment_action_id

    and prr.run_result_id = prrv.run_result_id

    and prrv.input_value_id = piv.input_value_id

    and piv.element_type_id = pet.element_type_id

    and paaf.assignment_id = paa.assignment_id

    and paaf.person_id = papf.person_id

    and trunc (sysdate) between pp.effective_start_date and pp.effective_end_date

    and trunc (sysdate) between pet.effective_start_date and pet.effective_end_date

    and trunc (sysdate) between piv.effective_start_date and piv.effective_end_date

    and trunc (sysdate) between paaf.effective_start_date and paaf.effective_end_date

    and trunc (sysdate) between papf.effective_start_date and papf.effective_end_date

    - and papf.employee_number = '1'

    - and ppa.effective_date = July 22, 2014"

    and pet.element_name in ('Local Mission allowance', "Compensation of Mission International")

    order by 1.3

    The result is:

    Employee_number Element_Name Input_Value Result_value

    1 compensation of Mission international day amount 1000

    1 compensation of international Mission Distance days 4

    1 value to pay compensation of 1200 International Mission

    1 International Mission allowance Start Date 01/01/2014

    1 compensation of Mission international day amount 800

    1 compensation of international Mission Distance days 10

    1 International Mission allowance pay value 2000

    1 International Mission allowance Start Date 01/02/2014

    1 compensation of Mission local day amount 500

    1 compensation of local Mission Distance days 10

    1 Mission allowance paid local value 1000

    1 compensation of local Mission Start Date 01/11/2014

    Desired output:

    Employee_number Element_Name Day_Amount Distance_Days Pay_Value Start_Date

    1 compensation of international Mission 1000, 1200 4 2014/01/01

    1

    International Mission allowance80010200001/02/2014
    1Mission local compensation50010100001/11/2014

    Please suggest.

    INSERT statement:

    TOGETHER TO DEFINE

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Day amount', '1000');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Day amount', '1000');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'number of orders', '196');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'number of orders', '195');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', ' Distance days, 4 ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', ' Distance days, 1 ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ("1', 'International Mission allowance', 'employee Category", "scale of employment medical cities");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ("1', 'International Mission allowance', 'employee Category", "scale of employment medical cities");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Class level', 'G3');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Class level', 'G3');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'class of employment, ' ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'class of employment, ' ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Country of Mission', ' 3003 - Kuwait ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'Country of Mission', ' 2004 - Canada ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', ' Mission days, 4' ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', ' Mission days, 3' ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'compensation of Mission international","End of Mission Date"' 2014/07/10 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'compensation of Mission international","End of Mission Date"' 2014/07/19 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'compensation of Mission international", 'Mission Start Date', ' 2014/07/07 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'compensation of Mission international", 'Mission Start Date', ' 2014/07/17 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'value of pay', '3000');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('1', 'International Mission allowance', 'value of pay', '4000');

    00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'number of orders', '45');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'number of orders', "456789");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', 'local Mission allowance', ' away days '0' ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', 'local Mission allowance', ' Distance days, 1 ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', 'local Mission allowance', 'Provided food', 'Y');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'compensation of local Mission","Accommodation provided", 'Y');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'compensation of local Mission","Accommodation provided", 'Y');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', "local Mission allowance", "Mission City", "AL MEDINA");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', "local Mission allowance", "Mission City", "RIYADH");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', 'local Mission allowance', ' Mission days, 4' ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70 ', 'local Mission allowance', ' Mission days, 5' ");

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'End of Mission Date' ' 2014/06/16 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'End of Mission Date' ' 2014-06-14 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'Mission Start Date', ' 2014/06/13 00:00:00 ');

    Insert into APPS. PER_ALL_PEOPLE_F

    (EMPLOYEE_NUMBER, NOM_ELEMENT, INPUT_VALUE, RESULT_VALUE)

    Values

    ('70', 'Local Mission allowance', 'Mission Start Date', ' 2014/06/10 00:00:00 ');

    Thank you very much in advance.

    Kind regards

    Afzal.

    So then... something like this:

    SELECT employee_number

    element_name

    MAX (decode (input_value, 'Day amount', result_value)) AS day_amount

    MAX (decode (input_value, 'Days of Distance', result_value)) AS Distance_Days

    , MAX (decode (input_value, 'Value of pay', result_value)) AS Pay_Value

    MAX (decode (input_value, 'Start Date', result_value)) AS Start_Date

    from (SELECT papf.employee_number

    pet.element_name

    piv.NAME input_value

    prrv.result_value

    prrv.run_result_id

    OF apps.pay_payroll_actions App

    pay_assignment_actions PAA

    pay_payrolls_f pp

    pay_run_results prr

    pay_run_result_values prrv

    pay_input_values_f piv

    pay_element_types_f pet

    apps.per_all_assignments_f ADP

    apps.per_all_people_f women's wear

    -where ppa.payroll_action_id =: payroll_action_id - give your payroll_action_id

    WHERE ppa.payroll_id =: payroll_id

    AND ppa.payroll_action_id =: payroll_action_id

    - and paa.assignment_action_id =: assignment_action_id

    AND ppa.payroll_action_id = paa.payroll_action_id

    AND ppa.payroll_id = pp.payroll_id

    AND paa.assignment_action_id = prr.assignment_action_id

    AND prr.run_result_id = prrv.run_result_id

    AND prrv.input_value_id = piv.input_value_id

    AND piv.element_type_id = pet.element_type_id

    AND paaf.assignment_id = paa.assignment_id

    AND paaf.person_id = papf.person_id

    AND trunc (sysdate) BETWEEN pp.effective_start_date AND pp.effective_end_date

    AND trunc (sysdate) BETWEEN pet.effective_start_date AND pet.effective_end_date

    AND trunc (sysdate) BETWEEN piv.effective_start_date AND piv.effective_end_date

    AND trunc (sysdate) BETWEEN paaf.effective_start_date AND paaf.effective_end_date

    AND trunc (sysdate) BETWEEN papf.effective_start_date AND papf.effective_end_date

    AND pet.element_name IN ('local Mission allowance', 'International Mission'))

    GROUP BY employee_number

    element_name

    run_result_id

    ;

    You should get your desired result.

    Roger

  • How can I find out whether a patch applied to the sql query

    How can I find out whether a patch applied to the sql query

    Select * from ad_bugs where numero_de_bogue = '';

    HTH
    Srini

  • Error: you have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ')' at line 5

    Original title: how to solve this problem:

    System error

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near ')' at line 5

    Hi Roger,

    It seems that you have problems with the SQL syntax. The question you have posted is related to encoding and it would be better suited to the MSDN Community. Please report it in the community below.

    http://social.msdn.Microsoft.com/forums/SQLServer/en-us/home

    Hope this is useful.

Maybe you are looking for