Queries in both tree meaning

Hello

Could someone please help with me a tree looking? I'm looking for using the two CONNECT BY PRIOR and using a IN / Recursive query/DEPTH FIRST and can return the entire tree in both cases, but it can not filter the way I like.

I need to go back to a complete structure of the tree where a similar game is done on a name column. The data would look like

manId | empID. name
1 Paul
1 2 Kara
1-3 Matthew
1 Bill 4
2-5 Gary
2 Paul 6
3 7 Sally
3 8 Sarah
4 9 Jill
4 10 Sarah

so the structure is

-1. Paul
-2. Kara
-5. Gary
-6. Paul
-3. Matthew
-7. Sally
-8. Sarah
-4. Bill
-9. Jill
-10. Sarah

and I would like to be able to pick up where lower (name) like ' % of sarah "and return the following:"

-1. Paul
-3. Matthew
-8. Sarah
-4. Bill
-10. Sarah

Similarly, I would like to be able to search where lower (name) like ' % Matthew ' and returned the following:

-1. Paul
-3. Matthew
-7. Sally
-8. Sarah

Thank you very much

Hello

876906 wrote:
... I need to go back to a complete structure of the tree where a similar game is done on a name column. ...

This part confuses me. Do you want the complete structure of the tree, or do you want only certain nodes?

and I would like to be able to pick up where lower (name) like ' % of sarah "and return the following:"

-1. Paul
-3. Matthew
-8. Sarah
-4. Bill
-10. Sarah

It seems that you do not want the full tree: only some of the nodes. In other words, you only want nodes with a certain substring in their names, and the ancestors and descendants of those nodes.
In this case, start by finidng the universe of the nodes you want (using top-down and bottom-up requests), then ask that result set. For example:

WITH     universe     AS
(
     SELECT     manid, empid, name
     FROM     table_x
     START WITH     LOWER (name) LIKE '%' || :target_name ||'%'
     CONNECT BY     manid     = PRIOR empid
    UNION
     SELECT     manid, empid, name
     FROM     table_x
     START WITH     LOWER (name) LIKE '%' || :target_name ||'%'
     CONNECT BY     PRIOR manid     = empid
)
SELECT     empid, name
FROM     universe
START WITH     manid     IS NULL
CONNECT BY     manid     = PRIOR empid
;

If you would care to post CREATE TABLE and INSERT instructions for the sample data, and then I could test this.

Tags: Database

Similar Questions

  • Running parallel queries in 11 GR 2

    I'm a little confused about parallel execution in GR 11, 2.

    Lets say I have the Setup below.

    parallel_servers_target = 4;

    PARALLEL_MAX_SERVERS = 16;

    parallel_degree_limit = CPU

    parallel_threads_per_cpu = 2

    parallel_adaptive_multi_user = TRUE

    N ° of UC = 16 CPU, 2 cores each.

    The Test table degree = DEFAULT

    Example query:

    Select * from Test by 1,2,3;

    Lets say I want to run 5 in parallel sql statements that require 4 parallel workers each.

    PARALLEL_DEGREE_POLICY = AUTO:

    What of her below happen?

    (a) a statement was going to be executed and the rest four would be queued because the first statement itself uses 4 parllel workers what amounts to our parameter of parallel_servers_target.

    or

    (b) four statements would be carried out using 4 workers each and the fifth would be queued because it exceeds the parallel_max_servers setting if it were to be executed.

    or

    Please explain what could happen if not a) or b).

    PARALLEL_DEGREE_POLICY = MANUAL:

    What of her below happen?

    (a) four statements would be managed (using 4 parallel slaves each) and the fifth will be held in the series.

    or

    (b) all five would be using parallel workers. If so, please explain how the No. parallel to each statement slaves were to be distributed.

    or

    (c) it would first try to allocate 16 sons in the first statement. Later it will adjust accordingly and reduce parallel workers allocated to each statement and end up running two 4 statements with parallel workers or all the five workers parallel.

    I appreciate really all of your answers on this.

    UC = 60 (perhaps CPU_COUNT = 60), the number of cores = 15 - so you have four hardware threads by heart.

    The DOP default value is calculated as PARALLEL_THREADS_PER_CPU * CPU_COUNT (in the single instance databases) - in your case, the DOP default is 2 * 60 = 120.

    See this page 20 (http://www.oracle.com/technetwork/database/bi-datawarehousing/twp-parallel-execution-fundamentals-133639.pdf) :

    Manually set the degree of parallelism

    With PARALLEL_DEGREE_POLICY set to MANUAL Auto DOP feature is disabled and the end user must manage the use of parallel execution in the system.

    You can either apply the default value of the so-called DOP or a specific fixed value for the declaration of principles on a session, statement or object level.

    LACK of parallelism

    ...

    Fixed degree of parallelism (DOP)

    Unlike the LACK of parallelism, a specific DOP can be asked to the Oracle database. You can use one of the following ways to get a fixed DOP.

    1. define a fixed DOP for objects. ALTER TABLE 8 PARALLELS customers. ALTER TABLE 16 PARALLELS sales;

    2. use the suspicion level parallel (integer) statement. SELECT / * + parallel (8) * / COUNT (*) OF customers.

    3. use the level indicator parallel (table_name, whole) object. SELECT / * + parallel (8 customers) * / COUNT (*) OF customers.

    Note that the parameters in the table on the #1 above give you only the fixed DOP in manual mode and mode limited, namely when PARALLEL_DEGREE_POLICY is set to MANUAL or LIMITED.

    All table decoration will be ignored in mode (AUTO or ADAPTIVE) AutoDOP.

    Also note that for example # 1 parameters, Oracle will choose the DOP requested as follows:

    -The queries accessing the CUSTOMERS table use a DOP asked 8.

    -Accessing the SALES table queries ask a DOP of 16.

    -Queries accessing both the SALES and the CUSTOMERS table will be processed with a DOP of 16. Oracle uses the upper DOP2.

    The number of allocated PX servers can become always twice the requested DOP in the case of parallel processing requires two sets of PX server for treatment of producer/consumer.

    And see on page 25:

    Parameter: PARALLEL_MAX_SERVERS

    Default value: PARALLEL_THREADS_PER_CPU * CPU_COUNT * concurrent_parallel_users * 5

    Suggested value: default

    Explanations: Sets the maximum number of servers in parallel execution that can allocate an instance of database. This is a hard limit and cannot be exceeded.

    So, put PARALLEL_MAX_SERVERS > 120.

    In fact, it would be better to change the PARALLEL_THREADS_PER_CPU = 1 parameter (default is 2). See this page 25:

    Parameter: PARALLEL_THREADS_ PER_CPU

    Default value: 2

    Suggested value: 1 for platforms with hyperthreading enabled, 2 for other platforms

    Explanations: Number of parallel processes that a processor can handle in parallel execution

    Then the default DOP would be PARALLEL_THREADS_PER_CPU * CPU_COUNT = 1 * 60 = 60.

    In this case, set PARALLEL_MAX_SERVERS > 60.

    Kind regards

    Zlatko

  • Want to combine the two queries

    Hello

    It is my first post here, I hope it's a good place to put it.

    I have two queries that both gave me the results. I guess that both are way more elegant or better to do what they do, but that's what I came with. So feel free to modify them. However, my real problem is I want to combine these two queries in a single query, removing duplicate information.

    analytical_query

    SELECT * from(
      select
      requisitions.acc_id AS "Accession #"
      ,requisitions.draw_date AS "Draw Date"
      ,requisitions.received_date AS "Received Date"
      ,req_panels.run_date AS "Run Date"
      ,tests.TEST_ID
      ,(CASE WHEN tests.TEST_ID IN (7101) THEN results.RESULT_NUMERIC*2
             ELSE results.RESULT_NUMERIC
       END) AS RESULT_NUMERIC
      ,doctors.f_name || ' '|| doctors.l_name AS "Physician"
      ,organizations.state AS "State"
    FROM requisitions
    
    inner join req_panels ON requisitions.acc_id = req_panels.acc_id
    inner join results ON req_panels.rp_id = results.rp_id
    inner join tests ON results.test_id = tests.test_id
    inner join doctors ON requisitions.doc_id1 = doctors.doc_id
    inner join organizations ON requisitions.org_id = organizations.org_id
    
    WHERE requisitions.DEL_FLAG='F'
         AND req_panels.DEL_FLAG='F'
         AND results.DEL_FLAG='F'
         AND req_panels.PANEL_ID IN (7000,70001,70551)
         AND results.TEST_ID IN (7101,7102,7107,7108)
         AND requisitions.RECEIVED_DATE > TO_DATE('9/1/2013', 'MM/DD/YYYY')
    ORDER BY requisitions.ACC_ID
    )
    
    pivot(
          MAX(RESULT_NUMERIC)
          for TEST_ID IN ('7101' AS CRP,'7102' AS Hemoglobin,'7107' AS "LDT Run 1",'7108' AS "LDT RUN 2")
    )
    

    culture_query

    SELECT * from(
    select
      requisitions.acc_id AS "Accession #"
      ,MAX(requisitions.draw_date) AS "Draw Date"
      ,MAX(requisitions.received_date) AS "Received Date"
      ,MAX(req_panels.run_date) AS "Run Date"
      ,tests.TEST_ID
      ,LISTAGG(results.RESULT_ALPHA, ';')
      WITHIN GROUP
      (ORDER BY results.RESULT_ALPHA) RESULT_ALPHA
    FROM requisitions
    
    inner join req_panels ON requisitions.acc_id = req_panels.acc_id
    inner join results ON req_panels.rp_id = results.rp_id
    inner join tests ON results.test_id = tests.test_id
    inner join doctors ON requisitions.doc_id1 = doctors.doc_id
    inner join organizations ON requisitions.org_id = organizations.org_id
    
    WHERE req_panels.PANEL_ID IN (7000,70001,70551)
         AND results.TEST_ID IN (10010,10052,11010)
         AND requisitions.RECEIVED_DATE > TO_DATE('9/1/2013', 'MM/DD/YYYY')
         AND requisitions.DEL_FLAG = 'F'
         AND req_panels.DEL_FLAG = 'F'
         AND results.DEL_FLAG = 'F'
         AND req_panels.RUN_DATE is not null
    group by requisitions.ACC_ID, tests.TEST_ID
    )
    
    pivot(
          MAX(RESULT_ALPHA)
          for TEST_ID IN ('10010' AS "Organism",'10052' AS "Negative/No Growth", '11010' AS "Growth")
    )
    

    Basically, what is missing from the first query is the global list of the 'RESULT_ALPHA' for 'TEST_ID"10010, 10052 and 11010 numbers. And because of the way they want to view this information that I had to tilt it, which is where I ran into problems. If anyone has any idea on how I can combine these two requests and make them more effective that would be great.

    Thank you.

    Hello

    JayG30 wrote:

    ... I have however found a way to do what I would call "swivel conditional."  ...

    I think it's the crux of this problem; you want MAX BOF a few tests and LISTAGG for others.  I don't know a good way to attract the SELECT... PIVOT to do both at the same time.  I think it's one of those situations where SOME... PIVOT is not the best tool for the job;  MAX (CASE...) and LISTAGG (CASE...) may be more practical and more effective:

    SELECT rq.acc_id

    , MAX (rq.draw_date) AS "the draw Date.

    , MAX (rq.received_date) as BEING "received Date".

    , MAX (rp.run_date) AS "Date of the race.

    , MAX (CASE WHEN rs.test_id = 7101 THEN rs.result_numeric * END 2) AS the crp

    , MAX (CASE WHEN rs.test_id = 7102 THEN rs.result_numeric END) AS hemoglobin

    , MAX (CASE WHEN rs.test_id = 7107 THEN rs.result_numeric END) AS "LDT Run 1.

    , MAX (CASE WHEN rs.test_id = 7108 THEN rs.result_numeric END) AS "LDT, 2nd round.

    , LISTAGG (CASE WHEN rs.test_id = 10010 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS "organization".

    , LISTAGG (CASE WHEN rs.test_id = 11010 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS a 'growth '.

    , LISTAGG (CASE WHEN rs.test_id = 10052 THEN rs.result_alpha END)

    , ';'

    ) Within GROUP (ORDER BY rs.result_alpha) AS 'Negative/No growth '.

    Rq requisitions

    INNER JOIN req_panels ON rp.acc_id = rq.acc_id PR

    INNER JOIN results rs ON rs.rp_id = rp.rp_id

    WHERE rq.del_flag = 'F'

    AND rp.del_flag = 'F'

    AND rs.del_flag = 'F'

    AND rp.run_date IS NOT NULL

    GROUP BY rq.acc_id

    ORDER BY rq.acc_id

    ;

    I don't quite get the results you have posted; for example, I don't see how you get a row of results with 'Accession' = 142425, while acc_id does not occur in the sample data.  It was maybe just a typo.

  • Life cycle of POJO Datacontrol

    Hi all

    Assume that this scenario-

    A POJO in layer model with its constructor and some public methods that return a list or similar which is finally exposed as a Datacontrol to an ADF UI.

    I was curious to know what will be initialized the Datacontrol POJO and the POJO and in what possibilities of memory it would in case he needs to access in other places on the same page or on different pages in same/different TFs.

    The closest (although not exhaustive) is Frank's response, I found it the post on the forum below.

    https://forums.Oracle.com/thread/2527176

    the data control is initiated after the RESTORE_VIEW phase. By default, queries are deferred, which means data is queried first before RENDER_RESPONSE. The support bean is instantiated by JSF first time an EL pointing on this one is solved. Which gives the view tree is created during RESTORE_VIEW I'm waiting for is the time when the bean is instantiated. What yo used is the sequence of the lifecycle JSF ADF hangs in.


    He has also published on ADF EMG-

    https://groups.Google.com/Forum/#! subject/methodology/adf-oL_dv - mqU4

    The POJO domain controller creates an instance of a POJO first, as it is called in the binding context. It is not related to JSF in scope but lives on. All workflows that use a shared data control will share an instance of acontrol dat POJO (so yes, you could create a POJO domain controller to share data between the workflow if they use a shared data control)

    Frank

  • OfficeJet 6700: HP Officejet 6700 don't scan

    When I originally you have this printer it scanned just fine. Now something has changed...

    When I try to scan to my computer, both by means of scanning HP or printers scan option, I get an error saying:

    "The operation could not be completed. (com.hp.scanhandler.error error 2.) "and analysis.

    I went to the HP utility under "Scan to Computer" activate scan to the computer box is greyed out and I can't click on it! There is a red icon with a message that says:

    "Scan of the computer can not be activated: software HP required for the Scan of the computer could not be located on this computer." Please download and install the latest HP recommended software for your device to http://www.hp.com/support and then try again. »

    so... I went to the place provided, found my printer specific and downloaded the software, making sure to select the Scanner option in the download softward options when you open the file. Downloaded fine and I had problems again and again of the process.

    I unplugged the printer, plugged back in and press the small icon at the top left that looks like a paper with a ' * ' above it, which began some download/update that I let run along the. This way one once I tried agai, and all the same problems.

    How can I fix it! I need to scan a document and I don't have a usb at your fingertips. I did a computer clean up a few months ago and may have removed hp mistakenly utility because it wasn't a request before you start the troubleshooting and downloaded again. But it is now downloaded. The printer prints fine when I send documents to him and I can log on and watch the status of th of my laptop. How is it difficult to analyse just a * beep * file!

    Hey @Mackenzie7225,

    Welcome to the Forums of HP Support!

    I understand that you are having problems when you try to scan from your HP Officejet 6700 Premium e-all-in-one printer to your computer Mac OS X 10.10. I would like to help you today with this problem of scan. At this point, it sounds like there is still a driver or software conflicts between your Mac and your HP Officejet. This conflict may be due to a problem within your Mac operating system to the actual address. Can I please you follow the steps below to correct all these conflicts.

    Step 1: Resetting the printing system:

    To begin, I will have you reset the printing system on your Mac because it is important that we have a pleasure to work with for troubleshooting clean slate. Please click herefor instructions on how to perform the reset. When the site opens, follow the steps under "Reset printing in OS X Lion system." This Reset deletes each printer on your Mac. However, it does not uninstall printers. Therefore, if use you other printers on the Mac, once the reset is complete simply make sure printers are attached via a USB cable or connected network and (+) add hide them po do add not your HP Officejet back in right now.

    Once the reset is complete, proceed to the next step.

    Step 2: Uninstall the drivers and software:

    Please click here to find out how to properly uninstall your printer. Once the site opens select the drop down menu 'Mac OS X v10.6, OS X v10.7, OS X v10.8 and OS X v10.9' and follow the steps to complete uninstallation.

    Once the uninstall is complete, please continue on.

    Step 3: Check and repair your Mac disk permissions:

    1. Open Macintosh HD and go to Applications
    2. Go to the Utilities folder
    3. Open disk utility
    4. Select the hard disk volume, you use (usually on the left)
    5. Select verify disk permissions
    6. Once this process is complete, select repair disk permissions

    Step 4: Check the Apple updates: 

    1. Go to the Apple
    2. Select System Preferences
    3. Select software update
    4. Click update now
    5. Install your available updates
    6. Computer restart

    Step 5: Reinstall your software and drivers: 

    Finally, please click here to download the latest drivers for your HP Officejet. Once the download is complete, please follow the instructions on the screen to install your printer.

    Once your HP Officejet has successfully installed please try to scan the image.

    Please reply to this message with the result of your troubleshooting. Good luck!

  • If I install Windows 7 64 bit on the Pavilion DV6-1334us, who had 32-bit?

    I need to recover my Windows 7 32bits Pavilion DV6-1334us.  The recovery partition is not an option, so I need to get the HP Web site recovery disks.  HP support site does not recovery disc for Wiondows 7 32-bit OS on this laptop.  They offer the recovery discs for the 64-bit Windows 7.  I understand that these books came in 32 and 64 bit OS, so I need to know if I can use the OS 64-bit on this material?

    edouble71 wrote:

    ..... HP support site does not recovery disc for Wiondows 7 32-bit OS on this laptop.  They offer the recovery discs for the 64-bit Windows 7.  I understand that these books came in 32 and 64 bit OS, so I need to know if I can use the OS 64-bit on this material?

    Hello

    Support page shows both, that means very safe to run Windows 7 64-bit on your computer:

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&LC=en&DLC=en&product=4072704

    Kind regards.

  • HP LaserJet P1102w: Windows 8.1 - run two different USB connected P1102w printers with simple shortcut on the desktop?

    I am trying to set up a single laptop Windows 8.1 for someone who uses it according to the seasons in two locations (FL and MY). I installed a HP LaserJet P1102w printer in each location. I wish I had a printer that is connected USB (one at a time will be connected) able to access in an only menu icon Office or file print command.

    When you add the second printer, Windows8.1 recocognized, the driver is already installed, he apparently recognizes the different addresses MAC and/or numbers of series of different printers and present second printer on the page devices and printers in Control Panel or allow a second printer on the desktop icon.  The only way to tell apart printers is that one is listed as a Hewlett-Packard LaserJet P1102w and the other is listed as a HP LaserJet P1102w. It is rather confusing to the elderly person who will be using the laptop.

    Is it possible to have the mobile exploit any printer is connected both by means of a simple print command or icon? Maybe by connecting via a WSD Port Monitor?

    Thanks for any help or advice!

    Dave Waters

    Hey @dmwaters138,

    Welcome to the Forums of HP Support!

    I understand that you do not want to have two HP LaserJet Pro P1102w printer operation via USB Wired on 1 single machine with a single order of printing or the icon. I would like to help you with the configuration of this option today. Because there are two distinct Laserjet on Windows 8.1 computer printers, to do two icons impression for various devices. The best way to tell the difference between the two devices is to rename printers. Thus, when the client goes in file and print in the print dialog window, simply choose the printer name that corresponds with the device they want to print to. You can rename printers all you want. Install printers on the WSD Port wireless network would give the same result of having two copies of the printer is installed on the computer. One thing I see, is that the name of the HP Laserjet Printer is unusual. It seems that your printers may be using the built in Windows drivers, rather than the HP Full Feature driver package for the device. This may cause printing conflicts in the future. Can I please you follow the steps below to set up and install both LaserJet HP correctly.

    Step 1: Remove the drivers:

    It is crucial that your HP LaserJet are using the correct HP driver package. So I'll have you remove two copies of your HP Laserjet of the computer. Please make sure that the USB cables are connected.

    1. Open the screen, Start by selecting the Windows icon at the bottom left of the computer screen or by selecting the Windows key bottom left of the keyboard, to the right of the Ctrl key
    2. In the start screen, type devices and printers. Click on devices and printers
    3. In devices and Printers window please right click on the Hewlett-Packard Laserjet and select delete device or delete. Once this copy is a party, please right click on the HP Laserjet P1102w and select 'remove device' for this one as well. After have removed two copies of the Laserjet please close devices and printers.
    4. Then, on the Start screen type programs and features. Click on programs and features to launch the window
    5. Scroll the list of programs and find the HP Laserjet driver package. If you see the HP Laserjet printers select Uninstall. Please follow the prompts on the screen to complete the uninstallation. Once the uninstall is complete, please close programs and features and continue to the next step.

    Step 2: Remove temporary files:

    1. Open the screen, Start by selecting the Windows icon at the bottom left of the computer screen or by selecting the Windows key bottom left of the keyboard, to the right of the Ctrl key
    2. In the start screen, type run. Click on Run to launch the run dialogue box
    3. In the run box, type %temp% , and then click OK
    4. When the Temp folder opens, select Ctrl + A at the same time on your keyboard. Everything in this folder will highlight now.
    5. Select the "delete" button on your keyboard. The Temp folder contains the temporary internet files. None of the actual files or folders on your computer will be affected by deleting Temp files. A Temp file should you will automatically get the pop up to 'jump' this point.
    6. Close the Temp folder when it is empty
    7. Right-click the recycling bin on your desktop and select empty recycling bin. Please proceed to the next step.

    Step 3: Install devices:

    1. Please leave unplugged USB cables

    2. Please click here to download the package full feature software and driver for the HP Laserjet Printer

    3. when the download is complete, please follow the instructions on the screen to install the first Laserjet. Make sure you select the 'install the printer software ' tab connect the USB cable only when the installation window prompts to.

    4. Once installation is complete for the first printer, please open the Start screen and type devices and printers.

    5. once the devices and printers opens, you will see the first copy you installed HP Laserjet. Please right click on the HP Laserjet Printer , and then select printer properties

    6. under printer properties , you will see the name of the printer on the general tab at the top. Please rename the printer to something that the customer acknowledges that this first printer. Then click on apply and then OK to save the changes.

    7. close devices and printers

    8 open the Start screen again. This time, type run. Click on Run to launch the run dialogue box.

    9. in the run box type %temp% , and then click OK. The Temp folder is now open

    10. in the Temp folder to locate the 7z... file. Click this folder to open it. This is the HP Installer package for HP Laserjet printers. Scroll to the bottom of this file and double left click on the P1100_P1560_P1600.exe driver package. The installation program will now open.

    11. in the title of the installation window, select "Add another printer. Don't connect not the USB at the moment. Click Next.

    12 connect the USB cable for the second printer once the installation window invites you to. After the second installation, please open the Start screen.

    13. in the start screen, type devices and printers. Click on devices and printers to open the window.

    14. in the printers and devices window, you will now see a second copy of your HP Laserjet. Right-click on the new copy and left click on properties of the printer. When the Properties window opens please rename the second copy of your printer. Click on apply then OK to save the changes.

    15. close devices and printers

    When the customer print, in the print dialog window they will just now to choose the name of the printer that fits the HP Laserjet Printer they wish to print to.

    I know that sounds like a lot of steps, but I wanted to give you as much detail as possible to ensure that this process goes well for you.

    Please let me know if the steps I have provided to resolve your problem. Good luck!

  • Placement of carat in the list of regular expressions

    I wanted to know what is the difference between placing the carat before a parentheses surrounding a search template and placing the cara immediately followed

    for example

    SELECT ADDRESS2,

    REGEXP_REPLACE (ADDRESS2,

    "(^[[: alpha:]] +), ([[: alpha:]] {2}) ([[: digit:]] {5})',

    "\3 \2-"\1 "") THE_STRING "

    OF ORDER_ADDRESSES

    and

    CHECK)

    REGEXP_LIKE (EMAIL1,

    '^([[: alnum:]] +) @[[: alnum:]] +. (com: net: org: edu | gov | mil) $'

    )

    )

    the first example implies only [[: alpha:]] + is the first string in the following sets of strings

    While the second implies that

    ([[: alnum:]] +) @[[: alnum:]] +. (com | net | org: edu | gov | mil) is the channel between ^ and $




    Thank you

    Hello

    2776946 wrote:

    I wanted to know what is the difference between placing the carat before a parentheses surrounding a search template and placing the cara immediately followed

    for example

    SELECT ADDRESS2,

    REGEXP_REPLACE (ADDRESS2,

    "(^[[: alpha:]] +), ([[: alpha:]] {2}) ([[: digit:]] {5})',

    "\3 \2-"\1 "") THE_STRING "

    OF ORDER_ADDRESSES

    and

    CHECK)

    REGEXP_LIKE (EMAIL1,

    '^([[ : alnum :]] +) @[[ : alnum :]] +. (com: net: org: edu | gov | mil) $'

    )

    )

    the first example involves that [[: alpha:]] + is the first string in the following sets of strings

    While the second implies that

    ([[: alnum:]] +) @[[: alnum:]] +. (com | net | org: edu | gov | mil) is the channel between ^ and $

    Thank you

    In both cases, ^ means the beginning of the string.

    In example 1, using REGEXP_REPLACE, \1 is defined as a group of characters 1 or more alphabetic come immediately at the beginning of the string. The parentheses do not affect the meaning of ^.

    In example 2, the CHECK constraint, the model

    ([[: alnum:]] +) @[[: alnum:]] +. (com: net: org: edu | gov | mil)

    must also appear at the beginning of the string; That's what the ^ before that means.  The $ after that model means that the end of the string is to be held just after the model, too.

  • ADF: < ADFv: no rows found for rowKey: [oracle.jbo.Key []]. >

    Hi all

    I have two VO based on sql queries. Both two VO do not have primary key. But the first VO have a single column of data.

    I view first VO in jspx page read-only table.

    When I get some data in the table using select listener I get valid data respected selection line but show massage on the console of the server is

    < error > < oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet > < BEA-000000 > < ADFv: Rowkey has no primary key attributes. RowKey: oracle.jbo.Key [], table: oracle.jbo.server.ViewObjectImpl@1afe2b0. >

    I have displayed second page jspx VO and trying to do the same as above I do not get the data of the selected line. In a message on the console server is

    < WARNING > < oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding > < BEA-000000 > < ADFv: no rows found for rowKey: [oracle.jbo.Key []]. >

    I saw the post below.   Can I add a variable transitional as key in second VO column? If yes how it is? It is a mandatory primary key for each VO?

    One size does not fit all: ADF BC - read only view objects and missing attributes PK - one issue of Passivation

    Yes and no, for certain actions, it is necessary to have a PK because it treats the line. A sample is the selection of lines. The framework keeps the rowkey, the pharmacokinetics of the line, when passing to store the current line. This key is passed for example to an another taskflow where data can be recovered again. This is the reason for which the framework must be a PK defined on each VO.

    If your table has a single column, you can set this column as the PK in the VO. It doesn't have to be the same as a PK defined in the DB (However it is the best way he can get confused to do otherwise). Simply mark the column a PK in the VO.

    Another thing you can try is to assign the VO

    setManageRowsByKey (true);

    Check ViewObjectImpl (Oracle Fusion Middleware Java QAnywhere for Oracle ADF Model) for more information.

    Timo

  • Possible bug with adding the query to your Favorites

    I noticed that when I create a MDX query say with a time range of 24 hours and then click on the "current query add to Favorites." When I click the "Favorite queries" button and pull again it changes hourly range custom and goes back to the time when I ran at the origin of the request and not for the last 24 hour period.

    This is expected behavior?

    It is in the 2.0.1 beta

    Hey Chase,.

    Yes, this is the expected behavior. Saved queries are both ONLY the slot is also recorded. For more information, see the following: Save a query in Insight Journal

    "Saved queries include a fixed time slot and are not updated. By saving a query, you take a snapshot of the log messages available in the range of time right now, when you save. »

  • Slower than Oracle 11 g

    I ran SQLFire installed locally on a system Win 8 with 12 GB of memory...

    I tried to run the comparison on the database of 5 million ranks test; one Oracle 11g one another 1.1 SQLFire (downloaded for evaluation). Just a simple query SELECT on the code.

    Here are the results of the 3 races:

    lines of 2 members (Locator & server1) 5 M ~ 2.5 GB SELECT statement

    Oracle: 16

    SQLFire: 46

    Oracle: 15

    SQLFire: 45

    Oracle: 15

    SQLFire: 45

    It is said that sqlfire works 30 times faster than Oracle 11 g all the test shows that sqlfire 3 times slower.

    Just curious to know what is missing?

    Hello

    Looked at the code, and here are a few comments:

    • The code is just do an executeQuery() and do not consume all the results. Most DBs, including Oracle and SQLFire, flow results gradually as they are consumed and executeQuery() by itself will probably not do much of the work in this case. For a meaningful comparison, the code should consume all results in Oracle and SQLFire (attention: it can take a lot of time with this large number of results). Please update that the look of numbers like for you code as below:

    long tStart = java.lang.System.currentTimeMillis ();
    RSet = stmt.executeQuery ("SELECT COLUMN1, COLUMN2, Column3 FROM table1");

    int numRows = 0;

    While (rset.next ()) {}

    numRows ++;

    }
    long tend = java.lang.System.currentTimeMillis ();

    System.out.println ("Oracle:" + (trend - tStart) + "for" + numrows + "rows.");

    • The code executes the query "SELECT COLUMN1, COLUMN2, Column3 FROM table1" against Oracle but runs 'SELECT id, data, search FOR app.test where (search = 'aA' OR search = 'aa' OR 'AA' = search OR search = 'Aa')' against SQLFire. Is it wanted, because that it is not a fair comparison? I'm assuming that the code runs the same queries against both, then again once need to consume the results completely for a fair comparison. For the request of the latter, you can optimize a lot if you use case-sensitive index added in SQLFire 1.1: vFabric Documentation Center , then the request can be "SELECT id, data, search FOR app.test where search ="aa"
    • SQLFire itself is not well optimized for queries that return a large number of lines for example > 10000 or more lines. It is better optimized for queries returning small average number of lines which, in our view, are much more likely to run in real-world applications. There are still a few models of complex query for which Oracle can do better, but for current releases, we target the most common query patterns. In future releases, we will close the gaps in other areas. That said, we really wanted more on queries that run evil in SQLFire.
    • Another point of difference in the small benchmarks is that SQLFire is a java engine runs first few queries slower than hotspot JIT comes into play, so in general, you will see the first operations of thousand being slower that a server has just started. Real-world applications will be won't on the first operations bit, so it might be preferable to a cue point ignore first few results in a freshly started cluster (or if it a long run cluster, then it's not bad).
    • Finally, the mentioned comparison is made reference to update the PTAC (the one without any limitation of operations) that contains a mixture of queries during each transaction than most close as possible to the real-world applications and updates. It is in such a mixed load that SQLFire really shines more traditional DBs.
  • Differences

    Hello

    SELECT DEPTNO,SAL,MIN(SAL) KEEP(DENSE_RANK FIRST ORDER BY SAL) OVER(PARTITION BY DEPTNO)
    FROM EMP
    
    DEPTNO     SAL     MIN(SAL)KEEP(DENSE_RANKFIRSTORDERBYSAL)OVER(PARTITIONBYDEPTNO)
    10     2450     1300
    10     1300     1300
    10     5000     1300
    20     3000     800
    20     3000     800
    20     2975     800
    20     800     800
    20     1100     800
    30     1250     950
    30     1250     950
    30     1500     950
    30     950     950
    30     1600     950
    30     2850     950
    SELECT DEPTNO,SAL,MIN(SAL) OVER(PARTITION BY DEPTNO)
    FROM EMP
    
    DEPTNO     SAL     MIN(SAL)OVER(PARTITIONBYDEPTNO)
    10     2450     1300
    10     1300     1300
    10     5000     1300
    20     3000     800
    20     3000     800
    20     2975     800
    20     800     800
    20     1100     800
    30     1250     950
    30     1250     950
    30     1500     950
    30     950     950
    30     1600     950
    30     2850     950
    can someone please explain me what is the difference between the two queries, because both are same back out. then what is the point of FIRST().

    Please do not send links to Documentation;). I have already.

    Thank you
    Mezaber

    Hi, Ayman,

    Ayman says:
    ... my doubt is that both queries return the same results. so, what's the use of FIRST()? without use FIRST() also get the same results? why we use first?

    It's like running this query:

    SELECT  empno
    ,     comm
    ,     NVL (comm, comm)     AS n_c_c
    FROM     scott.emp
    ;
    

    and then asking "what is the use of NVL? I get the same results without using NVL. »
    It is never wise to say "NVL (x, x); the results will always be the same as 'x '.
    As I said before, it is never logical to say
    'MIN (x) KEEP (DENSE_RANK FIRST ORDER BY x)'; the results will always be the same thing as "MIN (x)". The results will be the same as
    "MAX (x) KEEP (DENSE_RANK FIRST ORDER BY x)". However, it does make sense to say
    "KEEP (DENSE_RANK FIRST ORDER BY y) min (x)" where x and y are independent expressions.

    If you read the documentation, you should understand why. If you do not understand, then, once more, after what you read in the documentation and a question specific to this topic. For example "in this manual http:... it is said...". Then, when I run this query... I think... because... However, the results I get are... Doesn't that contradict...? »

    Published by: Frank Kulash on May 29, 2012 11:59
    Example changed from 'INITCAP (LOWER (ename))' to 'NVL (comm, comm).

  • bread crumbs - new

    Hi experts,

    am on jdev 11.1.1.5.0 - adfbc - db10g oracle


    Note:
    a few days before I posted a thread of bread crumbs. but he's lost. for some reason any community.
    https://forums.Oracle.com/forums/message.jspa?MessageID=10024993#10024993


    so here again post crumbs of bread,
    what I could afford,

    I had two jspx page:

    one for the login page and another for the index page.

    all remaining are the jsff.



    Here I what I was doing.

    I had a login page,

    When I hit the "connect" button, it will enter into the index page.

    index page is the owner of available dynamic tabshell

    small side left (navigation section), a tree is displayed. and the large right side (welcome section) some dynamic jsff.

    just by hitting the links tree wants to pipe into dynamic jsff. He will put on the big side (Welcome) to the right.

    all above things that I've done, all are very good.


    That's my need.

    In the index page, I need bread crumbs,

    for ex:

    consider this,
    am here in index page:
    
    
    tree section                  ||||||||       welcome section
    
    + tree1                                            child jsff page opens after hitting links
       + child tree1.
    
    
    if i hit he child tree means child jsff will open in welcome section.
    
    so bread crumbs should like this.
    
    indexpage >> child jsff.
    .

    Please help me. am Googling all the links and videos just for jspx page. no page jsff. ?

    Hello

    You can create the breadcrumbs as shown below




    action = "#{foo.action}" / >

    What you need is therefore to build a model of bread crumbs that you change with the tab.

    http://docs.Oracle.com/CD/E21764_01/apirefs.1111/e12419/tagdoc/af_breadCrumbs.html

    You can create a tree model that you would have to expose the open task. However, let me ask

    -To show bread when you opened three tabs in the content area (welcome screen)?

    I'm not sure that your use case is really a good thing for non-traditional navigation (except if you use the option replace in the model of shell dynamic tab, in which case task flows are displayed with a single instance, do not use the tabs)

    Frank

  • feature of ESCR is not prefixing the sys schema name.

    Hello

    There seems to be a bug with the desc functionality where it is not prefixing to the objects being queries sys.
    Which means that if I create a local copy of the table that is part of the service (i.e. Object) it will generate an error.
    This isn't the same behavior as in SQLPLUS (that works)

    Is this a known bug?

    Test scenario

    If I run the following text in the SQL worksheet
    desc all_users
    create table all_objects as select * from dual;
    desc all_users
    I get the following result.
    desc all_users
    Name     Null     Type         
    -------- -------- ------------ 
    USERNAME NOT NULL VARCHAR2(30) 
    USER_ID  NOT NULL NUMBER       
    CREATED  NOT NULL DATE         
    
    table ALL_OBJECTS created.
    desc all_users
    ERROR:                                 
    -------------------------------------- 
    ERROR: object ALL_USERS does not exist 
    From SQLPLUS, I get the following
    SQL> desc all_users
     Name                                      Null?    Type
     ----------------------------------------- -------- ---------------------------
    
     USERNAME                                  NOT NULL VARCHAR2(30)
     USER_ID                                   NOT NULL NUMBER
     CREATED                                   NOT NULL DATE
    
    SQL> create table all_objects as select * from dual;
    
    Table created.
    
    SQL> desc all_users
     Name                                      Null?    Type
     ----------------------------------------- -------- ---------------------------
    
     USERNAME                                  NOT NULL VARCHAR2(30)
     USER_ID                                   NOT NULL NUMBER
     CREATED                                   NOT NULL DATE

    Hi user123456789,

    New connected Bug
    Bug 12361640 - sys.all_objects not prefixed by sys so describe object during the breaks of the user

    Thank you

    Turloch
    SQLDeveloper - team.

  • Question on Lightroom configuration

    Hello

    I wanted to know if I take a record of Lightroom 3 is all the settings, adjustments, development, etc. remains attached to the files? I am willing to remove folders and have the stored on my backup drives, but don't want to lose all the changes/option to contiue where I did is remove the file removes all settings.

    I don't know if I expressed my concearn clearly, but I was looking for this answer everywhere and the only thing I get is ' remove a folder removes it only from lightroom - folder and the photos inside it will remain in your folder of images on your computer. " That's fine, but if I reimport all my previous work record will appear again? If this is not the case, what do you suggest I do?

    Thanks a lot for helping me to understand this!

    ~*~

    I agree with what Hal suggests. But if your workflow is such that you rarely or never go back and look at pictures of old shoots and want to keep them separate, there are a few things you could do to separate them.

    Some users keep multiple catalogs. In general, I think I have a lot of different catalogs is not a good idea, but there are some things that would make sense for some photographers.  Some wedding photographers, for example, keep a separate catalog for each marriage. Or if your job is commercial, for the payment of customers, you could have a catalog for each customer to keep their work separated. But both approaches means that you must caraa search for the catalog right to open if you want to go back and severely limits the benefits of LR keywording and approach the database to find images.

    You could keep 2 catalogues, one for the ongoing work and archiving and move your images to the archives catalog when you are sure you are finished with them. This leaves onoly 2 catalog instead of tens, or more, which would be easier to manage.

    Finally, as your concern seems mainly with a long list of folders, you can organize your files more efficiently structure. For example, mine are by shoot date within the year. So I got a file top-level called LR_Images and a folder for each year. For the moment, I so only 8 main visible files in LR (2003-2011). In each of these files, then I have a folder for each session. This approach takes the visual clutter down.

    An alternative, if most of your images really go to the category 'archive', would be to create 2 folders under LR_Images, formerly called 'Current' and the other 'archives' (or something like that) and move your current subfolders to check where appropriate.

    Don't forget, when you move pictures or folders, you must do it in the LR library module, not in Windows Explorer or the Mac Finder. This will allow the catalog to maintain its pointers to the pictures that move.

    Hope this is useful.

Maybe you are looking for

  • How can I create more storage on iPad 2

    Storage capacity of lla seems to have reached its limit on my iPad 2. I tried elimiating, data backup on most of the apps I use and using iCloud, but I'm still humble to the limit. What to do next? Remove the apps that are not used often? Thanks for

  • Change the order of the email accounts

    Hello I was wondering why there isn't a way to change the order of the email accounts in the list? I created a new e-mail address and want it to appear under the first in my list of five email accounts, that I put in place. This last address is very

  • My 6s iphone bought in Dubai and there no Facetime App. am I able to install Facetime, now that I'm in the Philippines?

    My 6s iphone bought in Dubai and there no Facetime App. am I able to install Facetime, now that I'm in the Philippines?

  • PROJECTOR in El Capitan?

    Anyone know how to get this thing to actually FIND something? to stay on the screen to perform research?  for the list at the bottom of the pop-up window where the file point, etc. can be recovered.  If it is an improvement while I'm amonkey uncle. 

  • output string of rolling

    Hello.. the guys here in my vi my goal is to create rolling display of sting. I HAV dne all the wrk but the prblm here comes is I am unable to adapt to the truth table in vi... so please can tell me hw can I adjust my truth table... If possible try t