Hide using the date of beginning and end of line

Is there a way to hide using the start date and end date of line

One way to do is to add a filter column (which may hide once it is configured) like this:

The formula in D2, filled to the bottom, is:

= AND(A2≥$B$8,A2≤$B$9)

The filter (on column D) looks like this in the right panel:

C9 formula is:

= SUMIFS(C,A,">="&B8,A,"<="&B9)

After changing the end date of 2014-12-31, you get this:

I left column displayed D just for illustration.

SG

Tags: iWork

Similar Questions

  • answer is now in the police to use the original e-mail and has a line of blue quote to the left

    love Thunderbird, but after years of no problems, responses on the text of the email does not work correctly. always answer all material cited, but now, the answer is in the text of the original e-mail and has a blue line on the left, as the answer is part of the quote, and causes the first line of response to be indented. Please help because it is originally a significant additional effort to meet a mail. Thank you.

    tried to restart with disabled modules to see if this is the problem?
    Menu (alt + H) help > restart with disabled modules

  • Breaking a year in coming weeks of beginning and end Dates (parameters) and first and last day of the month

    Hello people:

    I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.

    Any help or pointers would be great!

    Thank you!

    Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).

    The request in hand:

    SELECT first_thursday + (7 * (LEVEL - 1))   AS week_start_date,
                     first_thursday + (7 * LEVEL) - 1    AS  week_end_date
    FROM
    (
      SELECT TRUNC(p_from_date + 4, 'IW') - 4   AS first_thursday, -- Week should start the pre ceeding THURSDAY based on the Start Date
                      TRUNC( p_to_date + 4,  'IW') - 5     AS last_wednesday
      FROM
      (
        SELECT to_date('01-JAN-2013') AS p_from_date,
                        NVL(to_date('31-DEC-2013'), SYSDATE) AS p_to_date
        FROM     dual
      ) parms
    ) end_points
    CONNECT BY LEVEL <= ( last_wednesday + 1 - first_thursday)/7;
    

    Currently, this is the result I get (I'm only including the months of January and December here).

    Week_Start_Date     Week_End_Date
    27-DEC-12                02-JAN-13
    03-JAN-13                 09-JAN-13
    10-JAN-13                 16-JAN-13
    17-JAN-13                 23-JAN-13
    24-JAN-13                 30-JAN-13
    31-JAN-13                 06-FEB-13
    

    December:

    28-NOV-13               04-DEC-13
    05-DEC-13              11-DEC-13
    12-DEC-13              18-DEC-13
    19-DEC-13              25-DEC-13
    

    What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:

    January:

    01-JAN-13              02-JAN-13
    03-JAN-13              09-JAN-13
    10-JAN-13             16-JAN-13
    17-JAN-13             23-JAN-13
    24-JAN-13             30-JAN-13
    31-JAN-13             31-JAN-13
    

    February:

    01-FEB-13    06-FEB-13
    07-FEB-13    13-FEB-13
    14-FEB-13    20-FEB-13
    21-FEB-13    27-FEB-13
    28-FEB-13    28-FEB-13
    

    November:

    31-OCT-13    06-NOV-13
    07-NOV-13    13-NOV-13
    14-NOV-13    20-NOV-13
    21-NOV-13    27-NOV-13
    28-NOV-13    04-DEC-13
    

    December:

    01-DEC-13           04-DEC-13
    05-DEC-13           11-DEC-13
    12-DEC-13          18-DEC-13
    19-DEC-13          25-DEC-13
    26-DEC-13          31-DEC-13
    

    Hello

    Roxyrollers wrote:

    Hello people:

    I have currently a query that picks up all the weeks between a date range where my week starts on Thursday and ends on Wednesday. The following query works fine except that I need the week of beginning and end, from beginning and end Dates of months and the beginning and the Dates of end of the values of the settings, I'm passing. In this case, I chose January 1, 2013 to 31 December 2013.

    Any help or pointers would be great!

    Thank you!

    Problem: I am picking up days of December 2012 as the first week began on December 27, 2012. In addition, in December, I'm pretty much lost last week as well (26 December - 31 December).

    The request in hand:

    1. First_thursday SELECT + (7 * (LEVEL - 1)) AS week_start_date,
    2. first_thursday + (7 * LEVEL)-1 AS week_end_date
    3. Of
    4. (
    5. SELECT TRUNC (p_from_date + 4, 'IW') - 4 AS first_thursday,-week should start to perform the pre-mounted THURSDAY based on the Start Date
    6. TRUNC (p_to_date + 4, 'IW') - 5 AS last_wednesday
    7. Of
    8. (
    9. SELECT to_date('01-JAN-2013') AS p_from_date,
    10. NVL (to_date('31-Dec-2013'), SYSDATE) AS p_to_date
    11. OF the double
    12. ) parms
    13. ) end_points
    14. CONNECT BY LEVEL<= (="" last_wednesday="" +="" 1="" -="">

    Currently, this is the result I get (I'm only including the months of January and December here).

    1. Week_Start_Date Week_End_Date
    2. DECEMBER 27, 12 2 JANUARY 13
    3. JANUARY 3, 13 JANUARY 9, 13
    4. 10 JANUARY 13 JANUARY 16, 13
    5. 17 JANUARY 13 23 JANUARY 13
    6. 24 JANUARY 13 30 JANUARY 13
    7. 31 JANUARY 13 FEBRUARY 6, 13

    December:

    1. NOVEMBER 28, 13 4 DECEMBER 13
    2. 5 DECEMBER 13 DECEMBER 11, 13
    3. 12 DECEMBER 13 18 DECEMBER 13
    4. 19 DECEMBER 13 DECEMBER 25, 13

    What I would really like is based on start and end Dates, as well as the first and the last day of the month is similarly try nicely. I have provided and then gently break at the end of the month:

    January:

    1. JANUARY 1, 13 2 JANUARY 13
    2. JANUARY 3, 13 JANUARY 9, 13
    3. 10 JANUARY 13 JANUARY 16, 13
    4. 17 JANUARY 13 23 JANUARY 13
    5. 24 JANUARY 13 30 JANUARY 13
    6. 31 JANUARY 13 JANUARY 31, 13

    February:

    1. 1ST FEBRUARY 13 FEBRUARY 6, 13
    2. 7 FEBRUARY 13 FEBRUARY 13, 13
    3. 14 FEBRUARY 13 FEBRUARY 20, 13
    4. 21 FEBRUARY 13 FEBRUARY 27, 13
    5. 28 FEBRUARY 13 FEBRUARY 28, 13

    November:

    1. 31 OCTOBER 13 NOVEMBER 6, 13
    2. 7 NOVEMBER 13 NOVEMBER 13, 13
    3. 14 NOVEMBER 13 NOVEMBER 20, 13
    4. 21 NOVEMBER 13 NOVEMBER 27, 13
    5. NOVEMBER 28, 13 4 DECEMBER 13

    December:

    1. 1ST DECEMBER 13 DECEMBER 4, 13
    2. 5 DECEMBER 13 DECEMBER 11, 13
    3. 12 DECEMBER 13 18 DECEMBER 13
    4. 19 DECEMBER 13 DECEMBER 25, 13
    5. 26 DECEMBER 13 DECEMBER 31, 13

    Why the "weeks" in November, have all 7 days, while the "weeks" in the first or the last week in the other month usually have less?  (For example, February 28 is a 'week' alone.)

    The following works for the other months:

    WITH all_days AS

    (

    SELECT DATE "2013-01-01' + LEVEL - AS a_date 1

    OF the double

    CONNECT BY LEVEL<=>

    )

    SELECT DISTINCT

    More GRAND (TRUNC (a_date + 4, 'IW') - 4)

    , TRUNC (a_date, 'MONTH')

    ) AS week_begin

    , The LEAST (TRUNC (a_date + 4, 'IW') + 2

    TRUNC (LAST_DAY (a_date))

    ), Week_end

    Of all_days

    ORDER BY week_begin

    ;

    Output:

    WEEK_BEGIN WEEK_END

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

    January 1, 2013 January 2, 2013

    January 3, 2013 January 9, 2013

    January 10, 2013 January 16, 2013

    January 17, 2013 January 23, 2013

    January 24, 2013 January 30, 2013

    January 31, 2013 January 31, 2013

    February 1, 2013 February 6, 2013

    February 7, 2013 February 13, 2013

    February 14, 2013 February 20, 2013

    February 21, 2013 February 27, 2013

    February 28, 2013 February 28, 2013

    ...

    November 1, 2013 November 6, 2013

    November 7, 2013 November 13, 2013

    November 14, 2013 November 20, 2013

    November 21, 2013 November 27, 2013

    November 28, 2013 November 30, 2013

    December 1, 2013 December 4, 2013

    December 5, 2013 December 11, 2013

    December 12, 2013 December 18, 2013

    December 19, 2013 December 25, 2013

    26 December 2013 31 December 2013

  • Beginning and end of check date

    Hello

    I have a requirement to find a list of people that have dates that overlap.

    Each person can have several Dates of beginning and end, but only one line that has a null term, the current record. If the start and end dates are overlapping, as in the example below, the second row should have a start date of December 24, 2006 and 22 December 2006. Is it possible to list people who have dates and gaps that overlap in the dates.

    Empl_ID Start End Date
    12345 1 JANUARY 2006 DECEMBER 23, 2006
    12345, DECEMBER 22, 2006 13 JANUARY 2007
    12345 NULL JANUARY 14, 2007

    Any help is greatly appreciated.
    Thank you!

    Hi Patrick
    I like where you're coming. I hope you don't mind but I have extended your idea slightly to add in a PARTITION BY clause to make sure that we look at the records for the same person. Also, if we LAG for a previous record shouldn't we us DRAGS the end_date and compare it with the current start_date?

    LAG(END_DATE,1) OVER (ORDER BY START_DATE EMPL_ID PARTITION)

    In doing so, then the results would look like this:

    Empl_ID Start Date End Date Lag
    12345 1 JANUARY 2006 23 DECEMBER 2006 NULL
    12345 22 DECEMBER 2006 JANUARY 13, 2007 DECEMBER 23, 2006
    12345, 14 JANUARY 2007 NULL JANUARY 13, 2007

    This would give the SIGN a problem because in the first record, the OFFSET would be NULL and the last record the end_date would be NULL. So, it seems that some handling of NULL values must be as well which I will deal with later.

    SIGN ((LAG(END_DATE,1) OVER (ORDER BY START_DATE EMPL_ID PARTITION))-START_DATE)

    At all times the difference between the Start Date and the Date of Lag is positive, this means, that there is an overlap which means that we must look for any gap where the SIGN is 1.

    Using the other function, we could use the LEAD like this:

    LEAD(START_DATE,1) OVER (ORDER BY START_DATE EMPL_ID PARTITION)

    In doing so, then the results would look like this:

    Empl_ID Start Date End Date lead
    12345 1 JANUARY 2006 DECEMBER 23, 2006 DECEMBER 22, 2006
    12345 22 DECEMBER 2006 JANUARY 13, 2007 JANUARY 14, 2007
    12345 NULL NULL 14 JANUARY 2007

    When combined with the SIGN becomes: SIGN ((LEAD(START_DATE,1) OVER (PARTITION OF EMPL_ID ORDER start_date)) - end_date)

    This time you would look at the sign at-1

    Personally, I think that I would prefer the LEAD function because one) there will always be a start_date and b) we could replace all possible NULL values with the SYSDATE to get a final calculation like this:

    SIGN (NVL (LEAD(START_DATE,1) OVER (PARTITION BY ORDER OF START_DATE EMPL_ID), TRUNC (SYSDATE))-NVL (END_DATE, TRUNC (SYSDATE)))

    Based on the date is November 17, 2009, you would now get this result:

    Empl_ID Start Date End Date lead
    12345 1 JANUARY 2006 DECEMBER 23, 2006 DECEMBER 22, 2006
    12345 22 DECEMBER 2006 JANUARY 13, 2007 JANUARY 14, 2007
    12345 JANUARY 14, 2007 NOVEMBER 17, 2009 NOVEMBER 17, 2009

    Best wishes
    Michael

  • Beginning and end of the week according to YYYYWW

    Hi all

    I have a date like format

    201050
    201051
    201052
    201101

    I wanted to display their dates of beginning and end of the relevant year - week.
    SQL> with t as (
      2   select 201050 yw from dual union all
      3   select 201051 from dual union all
      4   select 201052 from dual union all
      5   select 201101 from dual union all
      6   select 201102 from dual
      7  )
      8  --
      9  --
     10  select yw, trunc (trunc (to_date (substr (yw, 1, 4), 'yyyy') + 7, 'iyyy') + 7 * (substr (yw, 5) - 1), 'iw') start_dt
     11    from t
     12  /
    
                 YW START_DT
    --------------- -----------
             201050 13/dec/2010
             201051 20/dec/2010
             201052 27/dec/2010
             201101 03/jan/2011
             201102 10/jan/2011
    
    5 rows selected.
    
    SQL>
    
  • begin and end in awr report

    Hi all

    Hope all are well. I need your help, I doubt reading the awr report.

    Summary of the report

    Cache sizes

    Start End
    Cache buffers:572 M572 MStd block size:8K
    Size of the shared pool:408 M408 MLog buffer:13 604 K

    My question is what is 'START' and 'END' in the figure above and why to cache buffer and shared pool sizes are the same for BEGIN and END.your help appreciated, thanks in advance.

    Best regards.

    size of the buffer at the start of the snapshot cache

    size of the buffer at the end of the snapshot cache

    Shared at the beginning of the snapshot pool

    Shared pool, at the end of the snapshot

    So that means: either you did not Oracle or Oracle to change these settings dynamically does not need to change.

    Always send four-digit version of your database and platform info. This forum is not keeping track of it.

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

    Sybrand Bakker

    Senior Oracle DBA

  • Points of beginning and end of a song seems to change at random in the Bounce dialog box

    Even if I put the departure and arrival within the project, when am I going to bounce the project the bounce dialog box displays the numbers of different from what I've specified. Everyone sees what is happening? Using X 10.2.1 Pro logic.

    The start and endpoints of a rebound are determined by:

    1 cycle. If a cycle is active when you give the command Bounce , then the start and endpoints of the cycle to determine the length of rebound.

    2 selection. If no cycle is active, but there are one or more area (s) selected, the early rebound and the end will be the selections start and endpoints.

    3. If no region is selected and the cycle is not active, then the beginning and end of the project are defined as the bouncing range.

    http://help.Apple.com/LogicPro/Mac/10.2/#/lgcp190ba9b7

  • 39L4363D - cannot set the record time of beginning and end of filling time

    Hello

    I have a problem with my 39L4363DG tv (software 7.1.90.34.01.1).

    I'm not able time of filling time of beginning and end of record setting as described in the [Manual | http://www.toshiba-om.net/LCD/PDF/English/L4363-323950-English.pdf] on page 51. The menu item "padding-start" and 'end padding time' are disabled?

    Can someone help me and give me advice on how to solve it?

    Hello

    The charging time can be set for the scheduled recording.

    There is also a priority planning
    If the regular time intervals are ensuites to each other and there is more than one minute between the time of the end of the annex i and the next scheduled start time, scheduled recording will be performed correctly.

    When + start time of filling + and + hour of end padding + are value, the start time and end time more is the time the extra minutes.

    If planning time overlap, priority will be given to the scheduled recording starts first.
    When the scheduled recording that began the first ends, recording will switch to the next regular program.
    At that time, according to how much programming time to overlap, the section from the beginning of the next regular program is not registered.

  • Noise at the beginning and end of the songs?

    I get a humming sound for a split second at the beginning and end of the songs which can be heard at high volume.  The sound only comes from the left atrium.  I tried a few different pairs of headphones and get the same result, then it is definitely the Clip.

    It of just a feature of the Sansa Clip or is there something wrong with my drive?

    TIA

    I tried ripping the mp3 with two different programs, and it does not solve the problem.  Mind you, these are the same files of music that I had installed on my iPod Shuffle 2nd without noise.

    Today I bought another Sansa Clip and it does the same thing only for the straight path instead of the left.

    My conclusion is that it is an inherent problem with the Sansa Clip.  The reason why some of you can't hear this 'noise', I'm talking about is because I have the ears of a bat.

  • calculate the day of the year using the date.

    Hi all
    Can calculate us the day of the year using the date form? Is this possible? Please help me thanks in advance
    Like this
    30/08/2009-30/08/2010 after calculation - 365


    Sarah

    Published by: SarahSarahSarah on August 30, 2009 12:49 AM

    Sarah.

    : ins1.noday must be a part of number!

    Create a function in forms like this:

    function get_nodays ( f_dtm_start in date,
                          f_dtm_end   in date ) return number is
    begin
    if
      f_dtm_start is null OR
      f_dtm_end is null
    then
      return ( null );
    end if;
    return ( trunc ( f_dtm_start ) - trunc ( f_dtm_end ) );
    exception when others
    then message ( sqlerrm || ' in function get_nodays occured.' );
    return ( null );
    end;
    

    Call this function in the when-validate-point triggers on ins1. INSPERIOD and: ins1.end love

    :ins1.noday := get_nodays ( :ins1.INSPERIOD, :ins1.end );
    

    It is redundant to have the: noday as a cause of part of database
    the value may by calculated every time using the values INSPERIOD and: end.

  • receive the package throw starrt and end of frame

    I have wann process the packet received serial throwing start and end frame and recording the real package

    What is the format of the package? You can use the subset of string and the length of the string if it is a fixed size. If the start and end of the frame are unique (never appear in your data) you can remove it with a regular expression or search and replace all.

  • migration from 10g to 12 c using the data pump in

    Hi, while I used the data pump at the level of the schema before, I'm relatively new to the full database import.

    We are trying a full database migration to 10.2.0.4 to 12 c using the complete method of database data pump over db link.

    the DBA has indicated to avoid move SYSAUX and SYSTEM objects. but initially during the documentation review, it appeared that these objects are not exported since the TRANSPORTABLE given target = system NEVER. If anyone can confirm this? done import and export log refers to the objects I thought would not:

    ...

    19:41:11.684 23 FEBRUARY 15:Estimated TABLE_DATA 3718 objects in 77 seconds

    19:41:12.450 23 February 15: total estimation using BLOCKS method: 52,93 GB

    19:41:14.058 23 February 15: object DATABASE_EXPORT/TABLESPACE of treatment type

    20:10:33.185 23 February 15: ORA-31684: TABLESPACE object type: 'UNDOTBS1' already exists

    20:10:33.185 23 February 15: ORA-31684: TABLESPACE object type: 'SYSAUX' already exists

    20:10:33.185 23 February 15: ORA-31684: TABLESPACE object type: 'TEMP' already exists

    20:10:33.185 23 February 15: ORA-31684: TABLESPACE object type: 'USERS' existing

    20:10:33.200 23 FEBRUARY 15:96 objects TABLESPACE finished in 1759 seconds

    20:10:33.208 23 February 15: treatment of type of object DATABASE_EXPORT/PROFILE

    20:10:33.445 23 FEBRUARY 15:7 PROFILE items finished in 1 seconds

    20:10:33.453 23 February 15: treatment of DATABASE_EXPORT/SYS_USER/USER object type

    20:10:33.842 23 FEBRUARY 15:1 USER objects ended in 0 seconds

    20:10:33.852 23 February 15: treatment of DATABASE_EXPORT/SCHEMA/USER object type

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'OUTLN' already exists

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'ANONYMOUS' already exists

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'OLAPSYS' already exists

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'MDDATA' already exists

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'SCOTT' already exists

    20:10:52.368 23 February 15: ORA-31684: USER object type: 'LLTEST' already exists

    20:10:52.372 23 FEBRUARY 15:Finished objects USER 1140 in 19 seconds

    20:10:52.375 23 February 15: object DATABASE_EXPORT/ROLE of treatment type

    20:10:55.255 23 February 15: ORA-31684: object ROLE type: 'SELECT_CATALOG_ROLE' already exists

    20:10:55.255 23 February 15: ORA-31684: object ROLE type: 'EXECUTE_CATALOG_ROLE' already exists

    20:10:55.255 23 February 15: ORA-31684: object ROLE type: 'DELETE_CATALOG_ROLE' already exists

    20:10:55.256 23 February 15: ORA-31684: object ROLE type: 'RECOVERY_CATALOG_OWNER' already exists

    ...

    the most insight.

    The schema SYS, CTXSYS and MDSYS ORDSYS are not exported using exp/expdp

    DOC - ID: Note: 228482.1

    I guess that he has already installed a 12 c software and created an itseems database - so when you have imported you have this "already exists."

    Every time the database is created and the software installed by default system, sys, sysaux will be created.

  • To_char - NUMBER (5) - beginning and ending zeros

    I'm reviewing the code and came across: RPAD (LPAD (TO_CHAR (col), 9, '0'), 11, '0') where the neck is NUMBER (5, 0) NOT NULL default 0 value.

    FWIW (in QA): SELECT LENGTH (col), SIGN (col), COUNT (*) C to tab GROUP BY LENGTH (col), SIGN (col) ORDER BY 1.2;

    22196 0 1

    1 1 5746

    2 1 53553

    3 1 410260

    4-1 16

    4 1 23198

    5-1-25

    The output sample I does not contain any negative numbers. Apparently, it is excluded from the query with a different logic (although not directly) or these data are only test cases.

    The intention seems to be to add up to 8 zeros and 2 zeros. A function pad seems redundant as TO_CHAR itself can do the job, although it does not appear that TO_CHAR can add two zeros in the same call start and end. Given that the latter is only two zeros, I just say concatenate is better: TO_CHAR (col, 'FM000000009'). '00'. technically, this is not the same as the current expression, that when the number is negative, the sign is placed in the middle of the string! I guess that it is not expected that the case should not. Maybe I can 'fix' and leave a comment explaining the original behavior.

    Is it possible to add the preceding and zeros with a function of leak?

    Post edited by: Brian Tkatch Put the bracket in the right place. Oops!

    Hello

    Sorry, it is not clear what you want.

    Whenver you have questions, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also post the results desired from these data.

    Explain, using specific examples, how you get these results from these data.

    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

    Why do you need a single function?  Why not something like

    To_char (col, '000000000') | '00'

    ?

    If you must do so within a single function:

    To_char (col, '000000000V99') - V99 adds 2 0 leak

    The comment is necessary, because someone who has to maintain the code (including you in a few months) knows what V99 done and will lose time looking at a maximum.

  • How to use the date with the report parameter format

    Hi all

    How to use the date format with this tag function,

    <? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >

    This date of form source of report and setting is coming as this 2012/11/01 00:00:00.

    So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >

    but its giving error. Can someone pls how to convert to the format of date custom.

    Thanks and greetings
    Srikkanth.M

    Problem solved.

    REF this link

    Date Format of XML

  • Can I use the data dictionary tables based on RLS policy?

    Hello guys, I use the package level security line to limit certain lines to some users.

    I created several roles, I want to just enable certain roles to see all the columns, but the other roles, I'm not that they see all the lines. I mean to do this I use the session_roles table data dictionary however it did not work.

    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?


    Thank you very much.

    Polat says:
    What to do in order to not allow rows of user roles?
    Can I use the data dictionary tables in RLS?

    Ensure that:

    SQL> CREATE OR REPLACE
      2    FUNCTION no_sal_access(
      3                           p_owner IN VARCHAR2,
      4                           p_name IN VARCHAR2
      5                          )
      6      RETURN VARCHAR2 AS
      7      BEGIN
      8          RETURN '''NO_SAL_ACCESS'' NOT IN (SELECT * FROM SESSION_ROLES)';
      9  END;
     10  /
    
    Function created.
    
    SQL> BEGIN
      2    DBMS_RLS.ADD_POLICY (
      3                         object_schema         => 'scott',
      4                         object_name           => 'emp',
      5                         policy_name           => 'no_sal_access',
      6                         function_schema       => 'scott',
      7                         policy_function       => 'no_sal_access',
      8                         policy_type           => DBMS_RLS.STATIC,
      9                         sec_relevant_cols     => 'sal',
     10                         sec_relevant_cols_opt => DBMS_RLS.ALL_ROWS);
     11  END;
     12  /
    
    PL/SQL procedure successfully completed.
    
    SQL> GRANT EXECUTE ON no_sal_access TO PUBLIC
      2  /
    
    Grant succeeded.
    
    SQL> CREATE ROLE NO_SAL_ACCESS
      2  /
    
    Role created.
    
    SQL> GRANT SELECT ON EMP TO U1
      2  /
    
    Grant succeeded.
    
    SQL> CONNECT u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH             800
    ALLEN            1600
    WARD             1250
    JONES            2975
    MARTIN           1250
    BLAKE            2850
    CLARK            2450
    SCOTT            3000
    KING             5000
    TURNER           1500
    ADAMS            1100
    
    ENAME             SAL
    ---------- ----------
    JAMES             950
    FORD             3000
    MILLER           1300
    
    14 rows selected.
    
    SQL> connect scott@orcl
    Enter password: *****
    Connected.
    SQL> GRANT NO_SAL_ACCESS TO U1
      2  /
    
    Grant succeeded.
    
    SQL> connect u1@orcl/u1
    Connected.
    SQL> select ename,sal FROM scott.emp
      2  /
    
    ENAME             SAL
    ---------- ----------
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    
    ENAME             SAL
    ---------- ----------
    JAMES
    FORD
    MILLER
    
    14 rows selected.
    
    SQL> 
    

    SY.

Maybe you are looking for

  • Compaq 6910p: driver needed - Compaq 6910

    Hi all I recently wiped and installed Windows 7 on a Compaq laptop 6910p I got when sort my desk at work. I've been trying to get it up and running for what to do, but I was unable to find the drivers I need. Those I need is the following: Base syste

  • iPhone will reboot after sliding to unlock without jailbreak?

    I have a problem lately when I turned off my screen then open a session when slide to unlock the apple logo appears a bit and continues to be on whenever I close my screen

  • How to install XP in Satellite A300-1BI with Vista

    Hello A few days ago, I bought a Satellite A300-1BI with Windows Vista preinstalled. I don't like this OS and I want to degrade for Windows XP and also install my Ubuntu Linux distribution, but I cannot install lame of them because the hard disk appe

  • Satellite P100-324 - graphic question

    Satellite P100-324All native driver, from a site of the manufacturer.Intel (R) Core (TM) T7400 @2 2CPU. 216 GHz - driver 5.1.2600.0GeForce Go 7900 GS - 8.4.0.0 driverBIOS it is updated to the latest version - v4.70Windoows - license The computer, ear

  • on first photos are clear and not blurry, once they are sent to the encoder, they become blurry

    so I make a slideshow for my degree of step sisters, I have about 280 photos of all lined up. looking at my first screen they are clear and have no problem. When I try to export to the encoder, random pictures become blurry, and I don't know how to f