SQL to include/exclude groupings based on set relations of sub-groupings

Hello clever people,
I am struggling to write SQL to enable me to include or exclude groupings (or even better sub groupings). It's taken a lot of SQL (using analytic functions) to get my data grouped as I wish (detail hopefully unimportant but basically trades grouped by date, desk, direction and asset).
I now need to be able to include/exclude groupings depending on what I can see within them. I have managed to come up with logic based on the sets resulting from "subgrouping" my groupings into accounts, the set elements being the orders they have participated in. I believe that if I only include scenarios/groupings where the account order sets intersect yet are not equal, then I should have the report I need.
Unfortunately I don't know how to code this in SQL.
Columns 3, 4 and 5 of the below simplified table are information/desired, so if we take the first 3 columns as an existing "table", let's call it GROUPINGS (which I have created using a SQL query), how can I code this to include the groupings where subgroup sets intersect partially, and exclude the rest? I want to see groupings 4, 5 and 7 only.
To get to the below has taken quite a lot of SQL already, so I'm keen to avoid having to join in back to itself if I can as the code will be a mess. I'm happy to post the underlying SQL but I'm not in my office currently so I can't now, I hope it isn't necessary anyhow.
Very grateful for any help, I'm completely stuck.
Thanks
Jon
P.s groupings/scenarios below taken in isolation, they aren't meant to have an effect on each other.
Grouping
Order
Account
Include Grouping in report
Account Subgroup Order Sets
Logic for Inclusion/Exclusion
1
1
ABC
F
ABC {1}
Business: Only one order for one account
Maths: Only one Order Set (no intersection)
2
1
ABC
F
ABC {1}, DEF {1}, GHI {1},
Business: Only one order
Maths: Where sets intersect they are equal
2
1
DEF
F
2
1
GHI
F
3
1
ABC
F
ABC {1,2,3}
Business: Only one order
Maths: Only one Order Set (no intersection)
3
2
ABC
F
3
3
ABC
F
4
1
ABC
T
ABC {1,2}, DEF {1}
Business: Accounts are not consistent across orders and common account(s) exist across orders
Maths: Where sets intersect they are not equal
4
1
DEF
T
4
2
ABC
T
5
1
ABC
T
ABC {1,2}, DEF {1}, GHI {2}
Business: Accounts are not consistent across orders and common account(s) exist across orders
Maths: Where sets intersect they are not equal
5
1
DEF
T
5
2
ABC
T
5
2
GHI
T
6
1
ABC
F
ABC {1,2,3}, DEF {1,2,3}
Business: Common Accounts exist across orders but are consistent i.e. all accounts participate in all orders
Maths: Where sets intersect they are equal
6
1
DEF
F
6
2
ABC
F
6
2
DEF
F
6
3
ABC
F
6
3
DEF
F
7
1
ABC
T
ABC {1,3}, DEF {1,2}, GHI {2,3}
Business: Common Accounts exist across orders but are inconsistent, i.e. not the same accounts appear in the related orders
Maths: Where sets intersect they are not equal
7
1
DEF
T
7
2
DEF
T
7
2
GHI
T
7
3
ABC
T
7
3
GHI
T
8
1
ABC
F
ABC {1,2}, DEF {1,2}, GHI {3,4}, JKL {3,4}
Business: Common Accounts exist across orders but are consistent i.e. the same accounts participate in common orders
Maths: Where sets intersect they are equal
8
1
DEF
F
8
2
ABC
F
8
2
DEF
F
8
3
GHI
F
8
3
JKL
F
8
4
GHI
F
8
4
JKL
F

Swapping order_id and account_cd produces the same result
with
groupings as
(select 1 grouping_id,1 order_id,'ABC' account_cd from dual union all
select 2,1,'ABC' from dual union all
select 2,1,'DEF' from dual union all
select 2,1,'GHI' from dual union all
select 3,1,'ABC' from dual union all
select 3,2,'ABC' from dual union all
select 3,3,'ABC' from dual union all
select 4,1,'ABC' from dual union all
select 4,1,'DEF' from dual union all
select 4,2,'ABC' from dual union all
select 5,1,'ABC' from dual union all
select 5,1,'DEF' from dual union all
select 5,2,'ABC' from dual union all
select 5,2,'GHI' from dual union all
select 6,1,'ABC' from dual union all
select 6,1,'DEF' from dual union all
select 6,2,'ABC' from dual union all
select 6,2,'DEF' from dual union all
select 6,3,'ABC' from dual union all
select 6,3,'DEF' from dual union all
select 7,1,'ABC' from dual union all
select 7,1,'DEF' from dual union all
select 7,2,'DEF' from dual union all
select 7,2,'GHI' from dual union all
select 7,3,'ABC' from dual union all
select 7,3,'GHI' from dual union all
select 8,1,'ABC' from dual union all
select 8,1,'DEF' from dual union all
select 8,2,'ABC' from dual union all
select 8,2,'DEF' from dual union all
select 8,3,'GHI' from dual union all
select 8,3,'JKL' from dual union all
select 8,4,'GHI' from dual union all
select 8,4,'JKL' from dual
got_account_cd_list as
(select grouping_id,order_id,account_cd,
        listagg(account_cd, ',') within group (order by account_cd) over (partition by grouping_id,order_id) account_cd_list
   from groupings
groupings_wanted as
(select distinct 
        l.grouping_id
   from got_account_cd_list l
        inner join
        got_account_cd_list g
     on g.order_id > l.order_id
    and g.grouping_id = l.grouping_id
    and g.account_cd = l.account_cd
    and g.account_cd_list <> l.account_cd_list
select g.grouping_id,g.order_id,g.account_cd,nvl2(w.grouping_id,'T','F') including
  from groupings g
       left outer join
       groupings_wanted w
    on w.grouping_id = g.grouping_id
order by g.grouping_id,g.account_cd
GROUPING_ID
ORDER_ID
ACCOUNT_CD
INCLUDING
1
1
ABC
F
2
1
ABC
F
2
1
DEF
F
2
1
GHI
F
3
3
ABC
F
3
1
ABC
F
3
2
ABC
F
4
2
ABC
T
4
1
ABC
T
4
1
DEF
T
5
1
ABC
T
5
2
ABC
T
5
1
DEF
T
5
2
GHI
T
6
2
ABC
F
6
3
ABC
F
6
1
ABC
F
6
3
DEF
F
6
2
DEF
F
6
1
DEF
F
7
3
ABC
T
7
1
ABC
T
7
2
DEF
T
7
1
DEF
T
7
2
GHI
T
7
3
GHI
T
8
2
ABC
F
8
1
ABC
F
8
1
DEF
F
8
2
DEF
F
8
3
GHI
F
8
4
GHI
F
8
4
JKL
F
8
3
JKL
F
Regards
Etbin

Similar Messages

  • Working on Schedule Formula - include/exclude lunch based on total hours

    So I was starting with the basic schedule template they have. They only problem is that it ALWAYS deducts 1 hour for lunch regardless of the length of the shift.
    Here is the formula I have:
    =IF(OR(G8="",G9=""),"",IFERROR(G9-G8-Administration Information :: $B$1,""))
    How can I modify this to make it only deduct the 1 hour for lunch if the total hours (before lunch) is more than 5.5 hours?
    The 'Administration Information' is where it gets the lunch length from.
    Thanks!

    No one has asked about that template for a month or so. Usually the question has to do with the Start and End times for the shift. I remember a long time ago when I looked at that template for the first time I thought it would be good to make the lunch variable.
    You wrote a very good question. You mentioned exactly what template you were using and stated clearly what you wanted to do.
    You can Hide column C in the Admin table since it doesn't have much purpose other than to contain the Duration constant for maximum work time without lunch.
    Jerry

  • Help needed in enhancing a query to include excluded records...

    I am trying a create a report using SQL. I want the employees who were active (empl_sts = 'A') as off 3/6/2015.
    As I included empl_sts = 'A', records like employee id - 101258, were included in my result set which is correct. However, in this process, employees  who were currently terminated (i mean terminated after 3/6/2015) were not included in my result set.
    I need to include employees in my result set - the employees whose empl_sts = 'T' currently but if empl_sts = 'A' on or before the date 3/6/2015. The employee (id - 101258) is active on 3/6/2015 but terminated on 3/16. This record is excluded in my result
    set. But it shouldn't.
    (An employee record undergoes various changes over time, so this table empl_hist has multiple records for a single empl_id uniquely identified by empl_key).
    Any help is highly appreciated.... Thank you.

    INSERT INTO hr_dm.empl_hist (empl_key, empl_id, actn_row_in, actn_efctv_dt, empl_hist_efctv_strt_dt, empl_hist_efctv_end_dt, actn_dt, empl_sts, curr_flag) VALUES
    (475408, 174084,
    1, 5/7/2014,
    5/7/2014, 6/4/2014,
    5/7/2014, A,
    0)
    (475407, 174084,
    0, NULL,
    6/5/2014, 8/22/2014,
    NULL, A,
    0)
    (475409, 174084,
    1, 8/23/2014,
    8/23/2014, 12/12/2014,
    8/25/2014, A,
    0)
    (475410, 174084,
    1, 12/13/2014,
    12/13/2014, 1/9/2015,
    12/16/2014, A,
    0)
    (475411, 174084,
    1, 1/10/2015,
    1/10/2015, 3/16/2015,
    1/13/2015, A,
    0)
    (623396, 174084,
    1, 3/17/2015,
    3/17/2015, 3/17/2015,
    3/16/2015, T,
    0)
    (662944, 174084,
    0, NULL,
    3/18/2015, 12/31/2099,
    NULL, T,
    1)
    (3626, 101258,
    1, 3/13/2010,
    3/13/2010, 10/8/2010,
    3/23/2010, A,
    0)
    (3627, 101258,
    1, 10/9/2010,
    10/9/2010, 3/11/2011,
    10/11/2010, A,
    0)
    (3625, 101258,
    1, 3/12/2011,
    3/12/2011, 4/8/2011,
    3/23/2011, A,
    0)
    (3628, 101258,
    1, 3/12/2011,
    3/12/2011, 4/8/2011,
    3/29/2011, A,
    0)
    (3629, 101258,
    1, 4/9/2011,
    4/9/2011, 8/12/2011,
    4/11/2011, A,
    0)
    (3630, 101258,
    1, 8/13/2011,
    8/13/2011, 3/9/2012,
    8/25/2011, A,
    0)
    (3631, 101258,
    1, 3/10/2012,
    3/10/2012, 4/24/2012,
    3/20/2012, A,
    0)
    (3620, 101258,
    0, NULL,
    4/25/2012, 10/18/2012,
    NULL, A,
    0)
    (3621, 101258,
    0, NULL,
    10/19/2012, 10/19/2012,
    NULL, A,
    0)
    (3622, 101258,
    0, NULL,
    10/20/2012, 11/30/2012,
    NULL, A,
    0)
    (3632, 101258,
    1, 12/1/2012,
    12/1/2012, 1/11/2013,
    12/21/2012, A,
    0)
    (3633, 101258,
    1, 1/12/2013,
    1/12/2013, 3/8/2013,
    1/15/2013, A,
    0)
    (3634, 101258,
    1, 3/9/2013,
    3/9/2013, 5/7/2013,
    3/19/2013, A,
    0)
    (3623, 101258,
    0, NULL,
    5/8/2013, 12/12/2013,
    NULL, A,
    0)
    (3635, 101258,
    1, 12/13/2013,
    12/13/2013, 3/7/2014,
    12/15/2013, A,
    0)
    (3636, 101258,
    1, 3/8/2014,
    3/8/2014, 5/13/2014,
    3/18/2014, A,
    0)
    (3624, 101258,
    0, NULL,
    5/14/2014, 7/25/2014,
    NULL, A,
    0)
    (3637, 101258,
    1, 7/26/2014,
    7/26/2014, 3/6/2015,
    7/28/2014, A,
    0)
    (634077,101258, 1,
    3/7/2015, 3/7/2015,
    12/31/2099, 3/17/2015,
    A, 1)

  • How to include /Exclude products in customer catalog view.

    We are using CRM 4.0 with internet sales applications (ISA).We have product catalog setup in webshop where customer/customer service team given access to view products based on the different product hierarchy.
    This is enabled though creation of multiple customer views
    Now we have a requirement that customer need to view only few product out of the product category level assignment but asper the current system if a particular product category is marked then it show all the product under the product category in hierarchy assignment
    Which means assume there are 100 products assigned to a product category ID under customer view, but customer has show all the 100 products but he need to view only 50 products out of 100 products assigned
    We need to find out if it is possible to include / exclude products from a customer view not based on the product hierarchy / category ID.
    Is that possible? we tried Partner product range but not sure ...can anyone throw some light in it... please let me know if I'm not clear on this.
    Thanks
    Jegatheesan.

    The app builder prior to 8.x was only designed to install the application you created. The actual instrument driver VIs should be included in the app but the IVI driver itself (the low level dll) is not. You should really include the installer for the IVI driver and not just the dlls. This is the .msi file that is on the instrument driver download page. If you are getting an error about VISA32, then it sounds like VISA was not installed either. I usually install VISA and NI-GPIB from the CD that comes with the GPIB board and I do this when I install the board into the computer. However, you can also include these installers with your app as well. On the Installer Settings tab, click the Advanced button. You have the option there of 'Run executable after installation'. The simplest thing to do is to create a .bat file that will call the other installers you include with the distribution. Don't forget that you also need the IVI Compliance Package so include that installer as well.

  • RE: (forte-users) Including/Excluding plans

    Pascal,
    Before you partition try setting "trc:cf:6".
    Good luck,
    John Hornsby
    DS Data Systems (UK) Ltd.
    John.Hornsbydsdata.co.uk
    Tel. +44 01908 847100
    Mob. +44 07966 546189
    Fax. +44 0870 0525800
    -----Original Message-----
    From: Rottier, Pascal [mailto:Rottier.Pascalpmintl.ch]
    Sent: 11 August 2000 10:42
    To: 'Forte Users'
    Subject: (forte-users) Including/Excluding plans
    Hi,
    I know there is a way to determine why Forte includes plans in a partition
    during partitioning. This shows which plans are (direct or indirect)
    supplier plans, but also, which plans are included for other reasons. But I
    forgot how to do this. Can anyone point me in the right direction.
    Pascal Rottier
    Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

    Use fscript :
    findplan xxx
    findactenv
    showapp
    This will give you the partitioning scheme, placement of all
    service ojects and a list of all included projects per partition.
    David Bell
    Technical Manager - North Europe
    iPlanet Professional Services
    Sun Microsystems | Netscape Alliance
    St James's House Phone : +44 1344 482100
    Oldbury Fax: +44 1344 420905
    Bracknell Mobile: +44 7718 808062
    RG12 8SA Email : david.j.belluk.sun.com
    http://www.iplanet.com
    -----Original Message-----
    From: John Hornsby [mailto:John.Hornsbydsdata.co.uk]
    Sent: 11 August 2000 11:22
    To: Rottier, Pascal
    Cc: Forte Users
    Subject: RE: (forte-users) Including/Excluding plans
    Pascal,
    Before you partition try setting "trc:cf:6".
    Good luck,
    John Hornsby
    DS Data Systems (UK) Ltd.
    John.Hornsbydsdata.co.uk
    Tel. +44 01908 847100
    Mob. +44 07966 546189
    Fax. +44 0870 0525800
    -----Original Message-----
    From: Rottier, Pascal [mailto:Rottier.Pascalpmintl.ch]
    Sent: 11 August 2000 10:42
    To: 'Forte Users'
    Subject: (forte-users) Including/Excluding plans
    Hi,
    I know there is a way to determine why Forte includes plans in a partition
    during partitioning. This shows which plans are (direct or indirect)
    supplier plans, but also, which plans are included for other
    reasons. But I
    forgot how to do this. Can anyone point me in the right direction.
    Pascal Rottier
    Origin Nederland (BAS/West End User Computing)
    Tel. +31 (0)10-2661223
    Fax. +31 (0)10-2661199
    E-mail: Pascal.Rottiernl.origin-it.com
    ++++++++++++++++++++++++++++
    Philip Morris (Afd. MIS)
    Tel. +31 (0)164-295149
    Fax. +31 (0)164-294444
    E-mail: Rottier.Pascalpmintl.ch
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • I am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    i am locked out of my account because my password includes "[" and my computer is set to spanish. In spanish that key doesn't work. How do I gejt back into my computer?

    If the user account is associated with an Apple ID, and you know the Apple ID password, then maybe the Apple ID can be used to reset your user account password.
    Otherwise*, boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window opens.
    Select your boot volume if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Follow the prompts to reset the password. It's safest to choose a password that includes only the characters a-z, A-Z, and 0-9.
    Select
     ▹ Restart
    from the menu bar.
    You should now be able to log in with the new password, but your Keychain will be reset (empty.) If you've forgotten the Keychain password (which is ordinarily the same as your login password), there's no way to recover it.
    *Note: If you've activated FileVault, this procedure doesn't apply. Follow instead the instructions on this page:
    If you forget the password and FileVault is on

  • This disk doesn't contain an EFI system partition. If you want to start up your computer with this disk or include it in a RAID set, back up your data and partition this disk.

    As stated above. I get this when I try to resize my HD. Was having issues with BootCamp so I removed it and got this.
    This disk doesn’t contain an EFI system partition. If you want to start up your computer with this disk or include it in a RAID set, back up your data and partition this disk.

    the same problem...
    any help?

  • Delete button not available for goods receipt when PO has GR-Based IV set

    Hi ll,
    the delete button for confirmations is greyed out when the PO has the GR-Based IV set, the return delivery button however is available.
    There are several goods receipt on the PO some of which have linked invoices but the goods receipt I want to cancel is not linked to an invoice.
    I've checked the backend config and it's the same for movement types 102 and 122. Also I can manually post a 102 in the backend.
    For PO's without GR-Based IV both the delete and return delivery buttons are available.
    Does anyone have any ideas? We are on SRM 4.0.
    Cheers
    Chris

    Hi,
    thanks for the response but I don't think this situation is related to backend settings as I can perform a 102 and a 122 against the same PO l;ine directly in R/3.
    This appears to be an SRM "feature".
    To claifry the situation
    PO flagged as GR-Based IV
    Purchase Order line has several goods receipts and several invoice receipts matched.
    Tryning to cancel a confirmation in SRM for a goods receipt without a matched invoice receipt.
    "Delete" button is not available but "Return Delivery" button is available.
    In R/3 backend I can post a 102 (delete) or a 122 (return) without any issues.
    Config settings are the same for 102 and 122 in the R/3 backend.
    Any one any ideas?
    Cheers
    Chris

  • SQL to get a LOV based on a value range (zips based on zipcode range)

    I have a requirement to capture state,county,city and zipcode values based on AR Tax tables. I created an DFF with Input field for State, County and City and corresponding LOVs based on the tax tables. I am not sure how to proceed with zipcode (I am not a FORMS expert, that further makes it complicated :) )
    For those who are aware of the tax tables - AR_LOCATION_VALUES and AR_LOCATION_RATES, there are no list of zipcode values. zipcodes are maintained at the city record level as a range FROM_ZIP_CODE and TO_ZIP_CODE. So a CITY record for GA.FULTON.ATLANTA has a from_zip of 30301 and to_zip of 30321-9999. I am not worried of the ( +4 ) values, all I care is the 5 digit zip and zip will increment by 1. For this scenario I want to show each zip code as a value in my LOV..so I want to show 30301, 30302, 30303....30320, 30321. Is there a SQL to generate such LOV based on range?
    Any SQL experts out there with ideas?
    Thx, Suresh

    William Robertson wrote:
    Nice, but I think he wants the zip range as 30301 - 30321, discarding the '-9999' (apparently known over there as the '+4' component of the zipcode).Thanks William, i missed out on that detail (though it makes a heck of a lot more sense than generating a LOV with 60,000+ elements :) )
    TUBBY_TUBBZ?
    with
       parsed_data as
       select
          lower_bound,
          substr(range_string, 1, instr(range_string, '-') - 1) as high_bound
       from
          select
             30301          as lower_bound,
             '30321-99999'  as range_string
          from dual
    select
       lower_bound + level - 1
    from
       parsed_data
    connect by level <= high_bound - lower_bound + 1;
    LOWER_BOUND+LEVEL-1
                  30301
                  30302
                  30303
                  30304
                  30305
                  30306
                  30307
                  30308
                  30309
                  30310
                  30311
                  30312
                  30313
                  30314
                  30315
                  30316
                  30317
                  30318
                  30319
                  30320
                  30321
    21 rows selected.
    Elapsed: 00:00:00.01Would be the proper approach based on having a lower bound and having to parse the upper bound from a range string.
    William Robertson wrote:
    Now if I had a clue how to use MODEL...You're not alone in that boat :)

  • About invoice verification without GR-based indicator set in PO

    Dears,
    As I know, when carry out invoice verification for a PO without GR-based IV set in PO/Vendor/PIR, there will be no reference invoice quantity and value in item lines of the invoice. User must input them manually according to real values in the invoice paper sheet delivered by Vendor.
    Now our client want the system sets the default value from PO in invoice verification, and they don't want to tick GR-based IV indicator,  how to realize it?
    Thanks all for your reply!

    Dear,
    1) At the time of time of Vendor master - XK01.
    In purchasing view tick on GR Bsd Inv.
    So due to this, at the time of purchase order creation this indicator is autometically put from vendor master.
    2) Quantity of purchase order is autometucally pur from good receipt.
    So create good receipt first than create invoice verification.
    So due to this at the time of invoice verification system take quantity from good receipt
    Regards,
    Mahesh Wagh.

  • How to remove Include/Exclude option on variable screen

    Hi,
    How to remove the include/exclude option in the variable screen for the variable of type selection option.
    Regards,
    Suresh.

    Hi Pradeep,
    You mean in the Query Designer.I tried to create a new variable There is nothing like select appropriate variable.
    Be more specific.Thanks.
    Regards,
    Suresh

  • SQL*Loader-282: Unable to locate character set handle for character set ID

    How do I fix this error that i'm getting when running SQL Loader and connecting to an Oracle 10g database. I'm on 10g client.
    SQL*Loader-282: Unable to locate character set handle for character set ID (46).
    Here's the NLS parameter settings in database: select * from v$nls_parameters
    PARAMETER     VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY     AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR     GREGORIAN
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_CHARACTERSET     WE8ISO8859P15
    NLS_SORT     BINARY
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY     $
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_COMP     BINARY
    NLS_LENGTH_SEMANTICS     CHAR
    NLS_NCHAR_CONV_EXCP     TRUE
    Message was edited by:
    evo

    Yep that's it, thanks, I found out about V$NLS_PARAMETERS:
    SQL> select * from v$nls_parameters;
    PARAMETER                  VALUE
    NLS_LANGUAGE               AMERICAN
    NLS_TERRITORY              AMERICA
    NLS_CURRENCY               $
    NLS_ISO_CURRENCY           AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CALENDAR               GREGORIAN
    NLS_DATE_FORMAT            DD-MON-RR
    NLS_DATE_LANGUAGE          AMERICAN
    NLS_CHARACTERSET           WE8ISO8859P1
    NLS_SORT                   BINARY
    NLS_TIME_FORMAT            HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT       DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT         HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT    DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY          $
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_COMP                   BINARY
    NLS_LENGTH_SEMANTICS       BYTE
    NLS_NCHAR_CONV_EXCP        FALSEGiven that 9i is not available for Solaris x86,
    how do I change NLS_NCHAR_CHARACTERSET to something that
    will work, like UTF-8?
    Thanks
    Ed

  • How exclude values based on text in web report

    hi ,
    i wanted some clarifications
    how to exclude values based on text in web report.

    hi ,
    we had following  requirement.
    in web reprot we had sales group as a drill down.
    now our client wants we can restict sales group values  based on text.
    like  11 -  XXXX.
    here 11 key value and xxxx is the text.
    as of now we can restrict values based on key values.
    but client wants we can restrict values based on text.
    if you have any ideas on that plz let me know.
    Regards,
    Murali

  • RBAC / Role Based Security Set Up in R12

    We are working with a 3rd party consulting organization to implement Role Based Access Control in E-Business Suite R12. We have approximately 50 users and with 35 responsibilities today and are currently in the process of designing our role based security set up. In advance of this the consulting company has provided us with effort estimates to cutover from the current responsibility structure to RBAC. We are told this must be done while all users are off the system. The dowtime impact to the business is very high, expecially considering our small user base.
    With RBAC cutover downtime estimates such as these I can't understand how any company larger than ours could go live with it?
    Does anyone have previous Role Based Access Control implementation experience in EBS R11i or R12 and could provide some insight on their experience and recommendations, best practice for cutover to mitigate impacts to the business as we cannot accept the 90 hours of downtime outlined by the consulting company below?
    Disable users old assignments:
    *12.00 hours*
    Disable Responsibilities targeted for the elimination:
    *12.00 hours*
    Disable Responsibilities targeted for the elimination:
    *16.00 hours*
    Setup OUM options and profiles:
    *6.00 hours*
    Setup Roles and Hierarchies:
    *14.00 hours*
    Grant Permissions:
    *12.00 hours*
    Setup Functional Security and disable the obsolete responsibilities:
    *12.00 hours*
    Setup Data Security and disable the obsolete data accesses:
    *6.00 hours*
    Total *90 hours*
    Note - all activities must be performed sequentially*
    Any advice or experiences you could share would be extremely valuable for us. Thank you for taking the time advance to review & respond.

    On Srini`s comments "Creating Roles.. will have to be done manually "... I would like to know will the same approach be followed for PRODUCTION instance also. Say if we need to create 35 responsibilities and 50 roles so should this be done manually in PRODUCTION.
    I have not worked on this but I know that in my previous company this was done using scripts. Need to find more on this.

  • How to automate layer stack creation including layer masks based on filename?

    Hi
    Can someone help me to create a script that would automate the creation of layers including a layermask, based on filenames.
    E.g.
    Unwrap_001_diffuse.jpg
    Unwrap_001_mask.jpg
    Unwrap_002_diffuse.jpg
    Unwrap_002_mask.jpg
    The image with the suffix "_diffuse" would be the layer and the image with the suffix "_mask" would be the layermask.
    In the above example the script would create 1 psd with 2 layers.
    If there is no file with the ending "_mask", the script would only create a single layer with no layermask.
    Any help would be highly appreciated.
    Thank you
    Boris
    I

    For starters the Folder-selection dialog could be used if the images are all in one Folder.
    var theFolder = Folder.selectDialog ("select folder");
    And then the method getFiles could be used to get the files.
    var theFiles1 = theFolder.getFiles("*_diffuse.jpg");
    Loading the file as Layers can be done with the ScriptingListener code for File > Place for example and finding the corresponding mask files seems fairly easy.
    Are they grayscale or RGB?
    But why jpg anyway?
    Are those renderings?
    If so why not tiffs or some other non destructively compressed file format?

Maybe you are looking for

  • Issue at start (MBP Retina late 2013)

    Hi everyone, I have some little issues with my MBP: after the start it takes about 18 seconds to show the files in the folder. No coloured wheel, I just have to wait. Is this normal? Sorry for my bad english and thanks! Luca

  • How to retrive firstname,middlename and lastname in a table

    Hi all, Please can u help me anyone. example: EMP table Ename column ramesh sachin tendulkar vara prasad bala how to display firstname,middlename,lastname in a emp table using oracle 9i. firstname middlename lastname ramesh sachin tendulkar vara pras

  • W540 Questions & Issues

    Hi Folks, Questions & Issues: 1.  Where is the Break key on the W540? 2.  My W540 locks up about once every two days - there does not appear to be any common task that causes this.  When it lock nothing works, not Ctrl+Alt+Del, I must power off with

  • Function and procedure execution

    hi all, i have question in procedure execution and function execution oracle database. i want know that which is faster in execution procedure or function. can i see the time taken by procedure and select query i want to see only time not cpu cost or

  • Film Strip does not match Edit slide

    Hi The filmstrip does not match the slide I am editing. I am on 8.0.1.242 I did NOT delete the Elearning resource files at update (as per update instructions - which of course no one actually reads :-)  ) but have done so since. I have saved and reop