HR Create Standalone Query Integrator - LOV as parameter type?

Hi
Our customer wants to download data from a view with filters on various fields. We accomplished this using a download integrator and created restrictions via Standalone Query with various where clause parameters to the view(using HR Create Standalone Query Integrator). While this addressed customer's requirement they are seeing lot of users entering wrong data for the parameter value and causing bad SQLs hitting the database. Customer wants to make sure they dont let end users enter the wrong values in the run time parameter and requesting to make the parameter prompt value to be a LOV type where they are forced to choose one of the valid value.
Example:
Integrator Name - AP_INVOICE
SQL Where Clause – where invoice_type=$PARAM$.invoice_type
1st Parameter Name – invoice_type
1st Parameter Type – Varchar2
1st Parameter Prompt– Invoice Type Equals
Customer wants this Invoice type parameter values to be shown in a drop down list so that end user is forced to pick the valid value and download the data. How to accomplish this? Appreciate your guidance.
Thank you.

DECLARE
ln_number NUMBER := 1;
BEGIN
BNE_PARAM_DEFNS_PKG.UPDATE_ROW (
  X_APPLICATION_ID => 800,
  X_PARAM_DEFN_CODE =>'PER_BUS_GRP_ID',
  X_OBJECT_VERSION_NUMBER => ln_number,
  X_PARAM_NAME => 'PER:BUS_GRP_ID',
  X_PARAM_SOURCE =>'HR:Download',
  X_PARAM_CATEGORY => 5,
  X_DATATYPE =>1,
  X_ATTRIBUTE_APP_ID => NULL,
  X_ATTRIBUTE_CODE => NULL,
  X_PARAM_RESOLVER => NULL,
  X_DEFAULT_REQUIRED_FLAG => 'N',
  X_DEFAULT_VISIBLE_FLAG =>'Y',-- changed from 'Y' to 'N'
  X_DEFAULT_USER_MODIFYABLE_FLAG =>'Y',
  X_DEFAULT_DATE => NULL,
  X_DEFAULT_NUMBER => NULL,
  X_DEFAULT_BOOLEAN_FLAG => NULL,
  X_DEFAULT_FORMULA => NULL,
  X_VAL_TYPE => 2,
  X_VAL_VALUE =>'XXC_HR_ALL_BG',
  X_MAX_SIZE => 240,
  X_DISPLAY_TYPE => 3,
  X_DISPLAY_STYLE =>1,
  X_DISPLAY_SIZE => 240,
  X_HELP_URL => NULL,
  X_FORMAT_MASK => NULL,
  X_USER_NAME => 'APPS',
  X_DEFAULT_STRING => NULL,
  X_DEFAULT_STRING_TRANS_FLAG =>NULL,
  X_DEFAULT_DESC => NULL,
  X_PROMPT_LEFT => 'Business Group Name',
  X_PROMPT_ABOVE => 'Business Group Name',
  X_USER_TIP => 'Enter Business Group Name',
  X_ACCESS_KEY => NULL,
  X_LAST_UPDATE_DATE => SYSDATE,
  X_LAST_UPDATED_BY => -1,
  X_LAST_UPDATE_LOGIN => -1
dbms_output.put_line('Value of Object Version Number is : '|| ln_number);
exception
when others then
dbms_output.put_line(SQLERRM);
end;Edited by: 936671 on Jul 4, 2012 10:51 AM

Similar Messages

  • Errors While creating a query on Infoset in NW2004s system

    I am  getting following errors when we attempt creating a query with an Infoprovider of type INFOSET..
    system error in program CL_RSR  and form GET_COB_PRO-02
    program error in class SAPMSSY1 method : Uncaught_exception.

    Which SPS are you in?
    This note delas with a similar error:
    Note 903436 - Info set with key date derivation type UNCAUGHT_EXCEPTION
    Symptom
    If you use a characteristic that supports master data in an info set and you define a key date derivation type for this characteristic, the following termination may occur when you activate the InfoSet:
    UNCAUGHT_EXCEPTION in class CL_RSR, method GET_COB_PRO
    Other terms
    rsiset, key date derivation of characteristics type, cl_rsq_iset_vers, check_tmon_conditions
    Reason and Prerequisites
    This problem is caused by a delivery error/program error.
    Thanks,
    Raj

  • How to create the query with multiple node types

    Hi,
    I am having an issue in creating a query to search multiple node types.
    The requirement is to query documents/pages of the type dam:Asset and cq:Page present under a path.
    I tried the following code snippet with no luck .
    path=/content
    1_type=cq:Page
    2_type=dam:Asset
    property=jcr:content/metadata/@cq:tags
    property.1_value=<tag Name>
    I was able to write a query with single type. However i could not find any documents/ materials with multipe types as shown above.
    Thanks in advance.
    Regards
    Sudhi

    I don't think multiple type is possible. Instead use super type like nt:base that will cover both page and asset.
    Yogesh
    www.wemblog.com

  • How to Create a Custom Integrator in R12 based on a Query set

    Hi Everyone,
    I am very much new to web adi. I got an unique requirement which I am finding it difficult. I did searched through the entire documentation/blogs/forums and I didnt find any suitable answer. Please let me know if anybody can throw some pointers here.
    My Requirement is as follows
    1) Using WEB ADI I need to update the data to collections responsibility ( I need to update unpaid reason code column and notes column for transactions)
    2) So to start up with I need to design my excel template first with a query region to download the data. This query region may have 5-6 parameters like transaction number, customer name, customer number. When I click the submit button in query region, The data should be retrieved from database and should display in the same excel sheet.
    3) Now for the data fetched from database, I need to update some of the columns and then again upload it back to EBS. I need to enable some of the columns to be LOV's.
    Now My Questions are
    1) Is this building a parameter based query then downloading to excel and then after modifying uploading back to EBS. Is this possible with WEB ADI. If this is doable then please let me know.
    2) Unfortunately there are no interface tables or public API's available for collections responsibility then how one can update the data
    Also
    I was trying to create a custom integrator a basic one to insert the data to a custom table. I had used HR Integrator set up for creating custom integrator.Enabled all the profile options functions and menus. But now I am stuck at a point I am unable to create a layout whenever I choose my custom integrator and then tries to create a layout I get the following error:
    No columns have been defined in the column list.
    Once this can be resovled then I can fo for column mapping and then test a custom load. Can anybody please let me know what am I missing here after following each procedures.
    Your inputs are appreciated. I am in great need of your suggestions pretty urgently
    Thanks and Regards
    Keshava

    Hi,
    The answer to your query is 'Yes'. You need to design a 'UPDATE' metadata type custom integrator. The custom integrator shall use a parameter based view to first download data and then use a PL/SQL wrapper/API to re-upload it back. The brief steps are listed below:
    1. Create a 'UPDATE' metadata type custom integrator. Give a parameter list name, std/custom view for data download and a PL/SQL wrapper.
    2. Create a form function and associate the form function with the custom integrator created.
    3. Add the form function to the std WebADI menu for access.
    4. Define a layout for the custom integrator defined.
    4. To create a parameter use the standard integrator 'HR Standalone Query'. As a part of this integrator you can define the SQL WHERE clause (parameter based) that you will like to use with the custom/std view defined in the custom integrator definition.
    Note: You can use a max of 5 parameters only. For each parameter, one needs to define the datatype and also the HR standalone query has a size limitation of 2000 chars in 11i10. You increase this length you may apply patch - 3494588 to get 4000 chars.
    Hope this information helps.
    Thanks,
    Nitin jain

  • Download parameter using HR create Standlone query Intergrator.

    I have created a view and i need to restrict the download based on some parameters.
    Now when i use HR create Standlone query Intergrator i know i can add a max of 5 paramaters.
    below are few questions:
    i need all 5 paramters but how do i define them using this integrator.I added 1 parameter and it works absolutely fine and restricts the dwnld based on this paramater.For eg i used parameter DOJ equals ---Input the doj and the view downloaded the data whose DOJ is exactly the same as what was inputted.
    Syntax used in where clause : wherre DOJ=$PARAM$.DOJ .
    Now i need to add second paarmeter in the same ADI how do I do that will i have to define the where clause again or just in the same intergrator i can give second parameter name. I tried this as well and when trying to upload i got the error as below :
    PER PER_289713_ADI_INVALID_PARAM : SQL does not contain all bind variables. Please check your input values and try again.
    Second qns , i used again the same HR create Standlone query Intergrator and enter valu e in where clause now i need location as well to restrict the dwnld including the DOJ. syntax : where location =$PARAM$.LOCATION and given the prompt name and type in second parameter as first parameter is alareday occupied by DOJ. the row got uploaded succesfully.now wen i try to run my report i get both the dwnld parmater DOJ ,Location.Input the value in DOJ and then in location it gives me following error whn i try to input location for eg :Hyderabad (NOTE :type i had defined is VARCHAR2 and then why below is coming)
    Error: Form validation Failures Value Hyderabad "Location" is not number.
    After this leaving Blank as location field i try to create documnet and it throws me error whie downloading records as below and none of the records is dwnlded.
    error :Error occurred when setting bind value null on SQL Statement at index 1
    PLEASE LET ME KNOW AS HOW CAN I DEFINE ALL FIVE PARAMTERS FOR A SINGLE VIEW AND RESTRICT MY DOWNLOAD.

    DECLARE
    ln_number NUMBER := 1;
    BEGIN
    BNE_PARAM_DEFNS_PKG.UPDATE_ROW (
      X_APPLICATION_ID => 800,
      X_PARAM_DEFN_CODE =>'PER_BUS_GRP_ID',
      X_OBJECT_VERSION_NUMBER => ln_number,
      X_PARAM_NAME => 'PER:BUS_GRP_ID',
      X_PARAM_SOURCE =>'HR:Download',
      X_PARAM_CATEGORY => 5,
      X_DATATYPE =>1,
      X_ATTRIBUTE_APP_ID => NULL,
      X_ATTRIBUTE_CODE => NULL,
      X_PARAM_RESOLVER => NULL,
      X_DEFAULT_REQUIRED_FLAG => 'N',
      X_DEFAULT_VISIBLE_FLAG =>'Y',-- changed from 'Y' to 'N'
      X_DEFAULT_USER_MODIFYABLE_FLAG =>'Y',
      X_DEFAULT_DATE => NULL,
      X_DEFAULT_NUMBER => NULL,
      X_DEFAULT_BOOLEAN_FLAG => NULL,
      X_DEFAULT_FORMULA => NULL,
      X_VAL_TYPE => 2,
      X_VAL_VALUE =>'XXC_HR_ALL_BG',
      X_MAX_SIZE => 240,
      X_DISPLAY_TYPE => 3,
      X_DISPLAY_STYLE =>1,
      X_DISPLAY_SIZE => 240,
      X_HELP_URL => NULL,
      X_FORMAT_MASK => NULL,
      X_USER_NAME => 'APPS',
      X_DEFAULT_STRING => NULL,
      X_DEFAULT_STRING_TRANS_FLAG =>NULL,
      X_DEFAULT_DESC => NULL,
      X_PROMPT_LEFT => 'Business Group Name',
      X_PROMPT_ABOVE => 'Business Group Name',
      X_USER_TIP => 'Enter Business Group Name',
      X_ACCESS_KEY => NULL,
      X_LAST_UPDATE_DATE => SYSDATE,
      X_LAST_UPDATED_BY => -1,
      X_LAST_UPDATE_LOGIN => -1
    dbms_output.put_line('Value of Object Version Number is : '|| ln_number);
    exception
    when others then
    dbms_output.put_line(SQLERRM);
    end;Edited by: 936671 on Jul 4, 2012 10:51 AM

  • How to create a Query iView based on user's parameter?

    Hello,
    I've created a Query iView which depends on a Costumize parameter that the user enters - On stage 5 of the wizard I've entered a customize parameter on a certain field and called it "user_param". The wizard entered the Query: WHERE... = {$user_param}. So far so good...
    My question is, after creating this iView, how Do I implement it at the Portal so the user will have a place to enter his parameter and receive the result?
    when opening the Query I don't see such place. According to SPA's documentation, the user should enter the parameter at the "personalize" menu. When I put this iView in a page and open the "Personalize" menu there is no such place.
    Which further configurations should I do in order it to work?

    If you open the iview, there should be a personalize property or setting for the URL parameter. Make sure that it is set to read/write. I just got off a portal project where I did a few of these, but I don't have access to one right now, so I can't give you the exact steps, but you should get the idea.
    Good luck,
    Tom \

  • Select List (query based LOV) in a wizard created report form

    I have created an updatable report form with 3 columns:
    app_id
    user_id
    group_id
    Each app_id has multiple group_id's associated with it, and I want to show the group_id field as a Select List (query based LOV) that contains the groups associated with the app_id.
    My query for the select list needs to be similar to the following:
    SELECT DISPLAY_NAME, GROUP_ID
    FROM APPLICATION_GROUPS
    WHERE APP_ID = ?????
    ORDER BY 1
    The problem is, I don't know how to reference the app_id from the main report to replace the ?????.
    In other words, if my report returns 2 rows of data like this:
    app_id----------user_id----------group_id
    1-----------------24------------------3
    2-----------------24------------------15
    Then how do I get the group_id column to be a select list of possible groups for each application? If app_id 1 has 3 groups associated with it, 3, 4, & 5 and app_id 2 has 2 groups associated with it, 15 & 16, then those each of the select lists should be based on the app_id.
    Hopefully I explained this clearly.
    Thanks,
    Kris

    Leo,
    Thanks for the response, but I don't think you quite understand my problem. If I go to the Column Attributes screen for the group_id field, I have the "Display As" drop down set to "Select List (query based LOV)", not "Select List (named LOV)". This requires that the sql query be written in the "List of values definition" text area below. Within that text area I have the following query:
    SELECT DISPLAY_NAME, GROUP_ID
    FROM APPLICATION_GROUPS
    WHERE APP_ID = ?????
    ORDER BY 1
    The APP_ID that I need to reference is for the current row of data that is being processed. Therefore, I can't use a :PNNN_APP_ID variable, because that field does not exist on the page.
    Hopefully this explains it a little better.
    Thanks,
    Kris

  • How can I create a query with web service data control?

    I need to create a query with web service data control, in WSDL, it's query operation, there is a parameter message with the possible query criteria and a return message contains the results. I googled, but cannot find anything on the query with web service. I cannot find a "Named Criteria" in web service data control like normal data control. In Shay's blog, I saw the topics on update with web service data control. How can I create a query with web service data control? Thanks.

    Hi,
    This might help
    *054.     Search form using ADF WS Data Control and Complex input types*
    http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html

  • Problem with query based LOV

    Hi,
    Maybe someone could help me with the following. I think it is a shortcoming of HTMLDB, but I'm not sure.
    I've got a Select List item, P10_PERSON, which resides in a tabular form. The Select List is based on a query, say:
    select name   display_value
    ,      id     return_value
    from   personAs is should be, P10_PERSON shows only the names.
    When my action is an insert or modification, the results will be writen in the table PERSON_MEETING.
    Now I want to make sure that the same person coulden't be selected a second time for the same meeting. So I alter the query based LOV with the following:
    select name   display_value
    ,      id     return_value
    from   person
    where  id not in (select person_id
                      from   person_meeting
                      where  meeting_id = :P10_MEETING_ID)This sounds correct and works in Designer, but not in HTMLDB. The NAME isen't shown anymore, instead the ID is shown in the page.
    Is this because the person doesen't actually exists anymore in the LOV after it has been saved (stored in PERSON_MEETING)? If so, does anyone knows a work-around?
    Thx!
    Message was edited by:
    F. Klein
    (removed typing error)

    I've got 3 tables. PERSON, MEETING and PERSON_MEETING.
    They have the following structure:
    # PERSON            #
    # ID   NUMBER       #
    # NAME VARCHAR2(50) #
    # MEETING                   #
    # ID          NUMBER        #
    # DESCRIPTION VARCHAR2(100) #
    # PERSON_MEETING    #
    # ID         NUMBER #
    # PERSON_ID  NUMBER #
    # MEETING_ID NUMBER #
    #####################In PERSON there are 3 records, in MEETING there is only 1.
    PERSON:
    ID     NAME
    1      KEVIN
    2      BILL
    3      JOHN
    MEETING
    ID     DESCRIPTION
    1      DEVELOPERS MEETINGNow I want to link the persons to a meeting in the PERSON_MEETING table.
    The column MEETING_ID will be filled automatically through a variable or parameter (I don't know the exact term).
    I defined the PERSON_ID column as an query based select list with the query:
    select name   display_value
    ,      id     return_value
    from   personThis works perfectely, the select list (or lov) shows KEVIN, BILL and JOHN. When I select BILL and save my adjustment, the following record will be shown in PERSON_MEETING
    PERSON_MEETING
    ID     PERSON_ID     MEETING_ID
    1      2             1Now that I inserted BILL as a participant for the Developers meeting he should be removed from the select list. Only KEVIN and JOHN should be in the list. Therefore I change the query of the select list into:
    select name   display_value
    ,      id     return_value
    from   person
    where  id not in (select person_id
                      from   person_meeting
                      where  meeting_id = :MEETING_ID):MEETING_ID is the item in the page containing the ID of the meeting.
    When I make this adjustment, the select list only contains KEVIN and JOHN (as it should), but the first record shown on the page (record with BILL) doesen't show BILL anymore, instead his ID will be shown (2)...

  • Select query based LOV for tabular form attributes

    Hi HTMLDB Team,
    Congrats u all for the new release of HTMLDB in htmldb.oracle.com.
    I badly need a solution of the below problem.
    Say , i have table called user_col_comments now i want to display the table_name ,column_name and comments in a tabular form.I displayed only one row for the tabular form.Now i create a select query based LOV for attribute table_name where i got all table_name in drop down list.
    Point is that after selecting any data from drop down table list i want to get the corresponding fields to be populated in column_name attributes.How can i wrote the select query based LOV for the attibute column_name.
    I wrote it as 'select column_name d,column_name r from user_col_comments where table_name=:TABLE_NAME Its not working?
    Similarly i want same thing to display for comments after matching both table_name and column_name.
    Any solution to get rid of those problem will be highly appreciable...
    If u need my htmldb.oracle.com userid and password to solve the problem i will sure let u email it.
    Cheers,
    Eman

    hi rchalton,
    can u plz little bit more clearer .I know hopefully u can imagine the problem and may u guide me thru proper way.....One think i understand that there must be multiple process and submit but "only when..." that u have said i cant understand that part........
    U are welcome to give me proper solution.....
    Thanks for the reply ....atleast one can pay hid to me.....
    Cheers,
    Eman

  • How we create abap query

    how we create abap query can any1 tell me?

    Reporting tool :Standard reports
    Purpose :Provide solutions for your most frequent reporting requirements
    Advantages :Can be used immediately
    No developments required
    Limitations :Limited flexibility
    Output fields cannot be selected as required
    HIS
    Purpose :Hierarchies are displayed as graphics
    Reports are executed using selected structures or substructures, that is, using preselected sets of objects
    Advantages :User-friendly method of displaying hierarchical structures
    Integration with InfoSet Query and standard reports
    No need to switch from one HR application to another if you want to execute reports from different applications
    Little training required
    Limitations : Limited flexibility
    Tool is used to execute standard reports and customer reports
    It cannot be used to create reports
    InfoSet Query
    Purpose :Intuitive, general SAP reporting tool used to create customer reports
    Enables you to create reports for all areas of HR
    When InfoSet Query is accessed from Human Resources (HR), the Query area and User group parameters already contain values and you can only perform ad hoc reporting. If InfoSet Query is accessed this way, it is called Ad Hoc Query in HR (see HR in InfoSet Query).
    Advantages :User-friendly interface
    Very easy to use
    No programming required
    If integrated with SAP Query, you can continue processing queries using SAP Query
    Set operations enable you to create sets of objects as required for which data must be output
    Can be included in roles using a suitable InfoSet
    Limitations :InfoSets and user groups must be defined in SAP Query before you can use InfoSet Query
    Multiline lists cannot be displayed
    SAP Query
    Purpose :General SAP reporting tool used to create customer reports
    Individual definition of user groups, InfoSets, and queries
    Advantages :Extremely flexible
    No programming required
    Queries can be provided in the SAP Easy Access menu
    Includes numerous options for aggregating data, performing calculations, and displaying graphics
    Enables you to display multiline lists
    Enables you to define one basic list and several statistics and ranked lists for each query
    Limitations :Restricted to data from the R/3 System
    Each HR query can process data from just one HR logical database:
    PNP: Administration, Time Management, and Payroll
    PCH: Generally for all areas, but particularly suitable for reporting on data from Personnel Planning
    PAP: Recruitment
    Requires much more training than other options
    Limitations:Data is extracted from OLTP systems, that is, real-time data is not accessed
    Business Information Warehouse
    Purpose :Analytical reporting tool used for information and decision-making purposes
    Advantages : Extremely flexible
    Facilitates complex calculations (calculation of averages, time series comparisons)
    Enables you to access non-SAP data
    Easy to use
    Uses OLAP technology
    Includes detailed Business Content (HR extractors, InfoCubes, key figures, and standard queries
    i think it is adhoc query not abap query

  • ORA-20213: Unable to create standalone job record

    We are currently in the process of upgrading our repository from 9.0.2.56.0 to 9.2.0.2.8 and we have moved our mappings into new repository by importing an MDL file. We have successfully deployed a mapping from new repository but when we attempt to execute this mapping using:
    DECLARE
    retval NUMBER;
    BEGIN
         retval:=Map_Wm_Osa_Fund_Pl.Main(F_Initialize_Owb);
    END;
    we get the following:
    ORA-20213: Unable to create standalone job record - there may be no task defined for this map
    ORA-06512: at "PRM_OWB_RUNTIME.WB_RT_MAPAUDIT", line 1252
    ORA-06512: at "PRM_OWB_RUNTIME.WB_RT_MAPAUDIT", line 2084
    ORA-06512: at "PRM.MAP_WM_OSA_FUND_PL", line 3832
    ORA-06512: at "PRM.MAP_WM_OSA_FUND_PL", line 3913
    ORA-06512: at line 4
    Any help on this would be much appreciated.

    Alright, here's the work around for this, I'm also using the following to run mapping.
    DECLARE
    RetVal NUMBER;
    P_ENV WB_RT_MAPAUDIT.WB_RT_NAME_VALUES;
    BEGIN
    -- P_ENV := NULL; Modify the code to initialize this parameter
    RetVal := SCHEMA.MAPPING.MAIN ( P_ENV );
    END;
    My mapping was running fine until I have tried to deploy it under a different location.
    Somehow OWB Runtime remembered my old location and was confused between the two. That's why you see this error.
    Option 1.
    Rewrite your mapping, this is ok if it's a small mapping.
    Option 2.
    1. Export your mapping(s) (MDL file)
    2. Delete your mapping from the repository.
    3. Import a backup of your mapping before the second location was created. (It’s doesn't matter if it's a old backup)
    (At that point you should be able to run the old mappings without error)
    4. Import the good backup over the old mapping, (use merge option during import)
    Your mapping should run now.
    Jean

  • Create a query to find the open PO

    Hi all,
    I want to create a query to find the Open PO which GR is not complete or Open invoice.
    But I don't know how can I get the value: still to be invocied ,still to be delivery .
    I want to know which table I can find these information.
    I know a T-code :ME2L can run this report, but the format is not user friendly,so I want to create a new query .

    Hi
    No need to create any query to find an Open PO.
    You can use ME2N or ME2L or ME2N with proper scope of list and selection parameter.
    In scope of list you can use the ALV one to get the user friendly report, if you do not have the ALV then you can
    create your own scope of list by following the steps.
    1) press F1 and click on the customizing icon
    2) Click the button W/O specifying the project
    3) Click Define scope of list
    4) Copy any scope of list for example BEST and rename it as BEST_ALV and Tick the check box AL on the Bottom
    5) You can get this new scope of list in the tcods mentioned above and execute thereports.
    6) Once you get the output you can modify the layoout  to get the user friendly format. Also you can download into excel sheet.
    Hope it helps
    Thanks/karthik

  • Unable to create Spotlight query for expression

    I don't want to assume that the following Console Log entry is a Spotlight indexing issue since the PID is from MAIL however the following entry appears repeatedly every minute to five minutes:
    "12/1/10 6:33:01 PM Mail[2698] Unable to create Spotlight query for expression ([email protected]) && (kMDItemContentType == 'com.apple.mail.emlx' || kMDItemWhereFroms == 'message:*'w)"
    Why would Mail try to create a Spotlight query like this, why so often, and where should I look to correct or remove the offending source?
    BTW, the noted email address has been changed for privacy. Otherwise the syntax is exact.
    Thanks

    I, too, have been seeing this same error ever since I started syncing my mail via .mac or whatever they call it these days. The whole experience has been so problematic that I've discontinued using it, but it's taken me weeks to clean up the disaster it's made of my multiple computers.
    This issue seems to be one of the last remnants of the whole debacle, and I'd love to hear any suggestions on how to clean it up without having to do complete wipe/reinstall of everything, which is pretty much all that's left to try.

  • QUERY HELP!!! trying to create a query

    i'm creating a summary report
    i have a table with sale dates
    for example i have a table tab_1 and column saleDate as
    saleDat
    1923
    1936
    1945
    2003
    2005
    saleDate contains years and there are some missing years where no sale
    was made
    My report has to display years starting from earliest year
    so i have to create a query that starts with 1923
    but the problem is that I have to have years that are not in table.
    for example i have to display years 1924 which is not in table
    so the part of report has to look like
    1923 blah blah summary.........
    1924 "
    1925
    1926
    2005
    2006
    upto current year (2006 may not be in the table, but i have to display)
    i just need to know the query that can query all the years starting from
    the ealiest saleDate to current year
    thanks in advance

    Please write the query in the following form:
    SELECT a.year, --- place other columns from your table.
    FROM (SELECT (:start_num + rownum) year
    FROM all_tab_columns
    WHERE :start_num + rownum <= :end_num) a,
    tab_1 b
    WHERE a.year = b.saleDat(+);
    Note:
    1) if your start year and end year are 1923 and 2006. Then input as below:
    :start_num = 1922
    :end_num = 2006
    2) Since for some of the years (1924 etc) may not be there in your so you may need to use NVL to print proper indicators.
    3) If you have more than one record in tab_1 for a particular year then group them based year and then use it.
    Hope this helps.
    - Saumen.

Maybe you are looking for

  • Office 2013 click-to-run does not honor deselecting 'Make Outlook the default program' checkbox

    We use an email client other than Microsoft Outlook (let's say Thunderbird) Thunderbird is set as the default mail client for the machine (HKLM\Software\Clients\Mail\(default) set appropriately) Occasionally, we launch Outlook (but absolutely do not

  • How to hide net value of $0 on Credit Memos from rejected return?

    We are creating a credit memo request with a second line item which contains rejected returns.  Basically line item 1 contains the actual qty which we are refunding and line item 2 is the qty which we will not be refunding.  When we create the the cr

  • Trying to get a code walkthrough to work - Bing Ads Api C# Web App

    Hi, I'm trying to get the C# Web App code walkthrough to work.  I went through the steps written out, and pasted in the Client ID, Client Secret, RedirectionUri, and DeveloperToken values.  When I run the app, it sends me to the redirection URI, with

  • How To: Google+ Feed In Adobe Muse

    Goodday! I would like to know if their is anyway to embed G+, full page, in to one page on Adobe Muse CC. A bit like how you would embed a Tumblr blog. Thanks.

  • Date difference !!! urgent !!!

    Hi, I have the following code. <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.*,java.text.*" errorPage="" %> <% DateFormat df = DateFormat.getDateInstance(); String s1="01/09/2003"; String s2 = "01/1