How to create the SQL filter using XQuery FLWOR
It is possible to create such a FLWOR expression that will be pushed down to SQL uses 'IN SQL"filtering?Assuming that the following function declaration:
declare function tns:filterOnLevels($levels_as_xs:double+) {...
I would like to create FLWOR expression that will be pushed down to this SQL:
Select * from LEVELS where level IN ($levels)
And tns:filterOnLevels (1,2,3) should run statement with ' where level IN (1,2,3). Type SQL filtering owe be lowered to SQL, because the execution of the query without constraint could train with too many records.
This expression is possible to do in XQuery/XQSE or perhaps other extensions of fn - bea?
I'm working on ODSI/Workshop 10.3 and Oracle 10 g.
ODSI uses multiple GOLD instead of IN because optimizers (1) rewrite 'IN' as several GOLD anyway. and (2) OR is more general than 'IN,' since 'IN' can handle that (a) equal; and (b) a single multiple-column, while GOLD can also manipulate inequalities and several columns.
In your example...
declare function tns:filterOnLevels($levels_as_xs:double*) {(: use ' *' instead of '+' here, the optimizer will appreciate :))}
for $l in $levels
for $LEVELS in LEVELS()
where $LEVELS/LEVEL = $l
return
$LEVEL
If you look at the generated query plan, it should contain...
SELECT
http://download.Oracle.com/docs/CD/E13162_01/ODSI/docs10gr3/XQuery/sql_pushdown.html#wp1134043 Integrator of data services (the announcement of best practices).
Tags: Fusion Middleware
Similar Questions
-
How to create the user account using the command?
How to create the user account using the command?
Open cmd as administrator, and then type the following commands one after the other
NET user / add program mypasswordnet localgroup administrators program / addnet share concfg * C:------/ grant: program, completeThis will create a user account with the name "Program" and the password "MonMotpasse".You can create the user name and password of your choice. -
How to write the SQL without using dynamic SQL?
How can you write this under SQL without using execute immediately?
You can use static SQL (using something like a CASE statement)?
test procedure (one in varchar2, b number, each number) is
v_num_recs pls_integer;
Start
Select count (*)
in v_num
FROM table1
where
col1 = one and
If b is not null then col2 = b
If c is not null then col3 = c;
/ * i.e. If b is not null, where condition to add this line only. If c is not null, where condition should add only this line. OR condition No. it * /.
dbms_output.put_line (v_num);
end;
Or should I use dynamic SQL statements for this?
I was wondering if the two are NOT NULL? Well check this.
Select count (*) in v_num
table
where col1 = one
and col2 = (CASE WHEN (b is not null) THEN b ELSE END col2)
and col3 = (CASE WHEN (c is not null) THEN ELSE END col3 c)
-
How to create the INTERVAL partitioning using EM?
Hi guys
I'm still not able to use the INTERVAL partitioning using EM. Is it possible to do?
Oracle 11 g 2 on Linux
Thank you
John
Hi John,.
I don't think it's possible, that the option of partition of the range seems to have things that make you think of it would generate the definition as the partitioning interval but it doesn't.
I'm on 12.1.0.3 of the SGC and 12.1.0.5 DB plugin so I'm sure it's 'missing' features for the moment.
See you soon,.
Rich
-
How to create the staging area using the adautostg.pl script
Hi gurus,
I need help to install R12.1.1 EBS on linux, which is installed in the guest in the virtual machine operating system.
I downloaded edelivery.oracle.com zip files. Then I unziped in/u01/stage12 directory. When I run the adautostg.pl script I get message saying please insert the DVD label RDBMS disc 1. No idea why?
Should I copy all the unziped on DVD files and run above mentions the script to create the staging area?
Thank you in advance for help you.
Hemant.Hi Hemant;
I need help to install R12.1.1 EBS on linux, which is installed in the guest in the virtual machine operating system.
I think, you're on the wrong forum site. "Its better to write your topic in the Forum Home" E-Business Suite ' Discussion General EBS
I downloaded edelivery.oracle.com zip files. Then I unziped in/u01/stage12 directory. When I run the adautostg.pl script I get message saying please insert the DVD label RDBMS disc 1. No idea why?
Should I copy all the unziped on DVD files and run above mentions the script to create the staging area?To create steps of step-prereuest-installation etc. Please follow my blog:
http://heliosguneserol.WordPress.com/category/step-by-step-Oracle-e-Business-Suite-installation/Oracle-e-business-suite-release-12/
"" * PS: Please change this thread status to answered and if you have a problem on EBS, please report it on the Forum Home "E-Business Suite ' Discussion General EBS that you might get a faster response *.
Respect of
HELIOS -
How to create the custom filter "addFiles" in Oracle UCM?
Hello
I need help on creating a filter custom in Oracle UCM in which I want to integrate a code custom until the file is checked in fact means of the Complutense University of MADRID, this custom piece of code should be called when the user clicks on the Check-In on a profile button to check-in a document and before the document is moved to the vault directory.
UCM Check-In forms-> Check-In button-> [custom]-> Document moved to the vault dorectory as a native file-> after release document copied Weblayout directory.
I came across a filter named 'addFiles' that can be used to achieve this goal, as stated in the link below:
https://jonathanhult.com/blog/2012/09/favorite-WebCenter-content-filters/
I'm kind of new at the Complutense University of MADRID and don't know how to implement it as a custom component or a custom filter...
Could someone please help on how to start or steps that must be followed?
Thank you and best regards,
Sanket.
The file must first be uploaded to the server. Your Java code will not work unless the file exists on the server. You can then edit this file before the rest of the consignment does not happen.
This component, you should get pointed in the right direction: https://bitbucket.org/jhult/pdfpagenumbers/src
Jonathan
-
How to create the Clone VM using VCO plugin to vCloud Director?
Hello
Vcloud Director I can do a right-click option to copy of VM use for cloning. However, vCenter Orchestrator 5.1, I don't see the copy method in the VclVM object.
How to write a stream VCO to clone a virtual machine that is customized?
Kind regards
Danie
In vCD you need to recompose a vApp to clone a virtual machine in a paralytic.
Here's some code I created for the vCD 1.5
var recomposeVAppParams = new VclRecomposeVAppParams(); var vmItem = new VclSourcedCompositionItemParam(); if (vmName != null) vm.name = vmName; vmItem.source = vm.getReference(); vmItem.sourceDelete = false; vmItem.instantiationParams = new VclInstantiationParams(); //var numNetConnections = vm.getNetworkConnectionSection().networkConnection.size(); var networkConnectionSection = vm.getNetworkConnectionSection(); vmItem.instantiationParams.section.add(networkConnectionSection); recomposeVAppParams.sourcedItem.add(vmItem); return vApp.recompose(recomposeVAppParams);
If you want to just clone the VAPP then it is a workflow of clone in the library of vCloud.
-
How to monitor the SQL perticuler using the INDEX or not?
I'm running on a long-term quary and the output is coming very late. So, I want to know that the quary sql uses the index or not? How do I know that?Hello
You have not provided your db version?
You can check v $ object_usage in a simple way. Try to check the explanation of your query if you current sql is by using your existing index or not.
Check with dbms_xplan.displayRequest to go through the links of Ask tom and jonathan lewis
http://jonathanlewis.WordPress.com/2007/02/15/index-not-used-10G/
http://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:736825544526HTH
-Pounet N
-
just stuck - see how to get a job of layer mask using a brush, but can not get by with the help of an ellipse
What I'm after is:
* Start simple watch, with the face and band by photo
* want to apply a layer, so the only thing I see the circular face of the watch (no tape etc.) and that the base is clear (alpha)
May I ask what are the instructions step by step to achieve this goal by using layer masks & ellipse tool? (i.e. not having to manually paint around the dial)
- Make a copy of the background and work on this copy of background layer.
- Use the elliptical selection tool, hold down the SHIFT key to draw a circular selection:
- Select use (on the menu bar)... Transform the selection to move the selection, and drag the sides of the selection at the edges of the dial:
- After you click the green check mark, use the selection... Inverse to select all items except the dial of the watch and press your delete key to remove such things:
- Your layers look like this:
Alternatively, if you want to use a mask, after step #3 hit the icon 'Mask' at the bottom of the Palette layers to create a mask layer automatically by using the selection:
Ken
Post edited by: photodrawken to add the alternative method of mask.
-
How to create the container element using Vi types in teststand
Hello
I want to create containers in the Array element in teststand, which different downhill element. for example I like, .txt file
Name height, age, color
A, 20, 186, black
B, 30 170, white
first line should be elements of the container, and the second line should be the value of the element. Raising must be string, number or boolean.
Then, in the second container to new element in the first row and value in the third row.
And all this container must be below the table of the fileglobals element or people of the country.
Is there any suggestions how?
Thank you much in advance.
Kind regards
Ankit.
Hi Pierre,.
I edited your VI test and successfully wrote the table of container to a variable existing non "Locals.dummy99" (see screenshot).
Best regards
Christoph
-
How to create e-commerce site using adobe muse from the beginning to the end, please
How to create e-commerce site using adobe muse from the beginning to the end, please
Mylenium, why comment you on the forums of Muse? I've never seen a useful comment on these forums. You seem to just upset against Muse all the time.
in any case, definitely go with widgets Ecwid and J-26. They are the best.
-
Please how to create an e-commerce using the muse of adobe
Please how to create an e-commerce using the muse of adobe
ECWID is certainly the easiest to customize muse and it's very easy for customers to add/manage products. Another thing that many people love in Ecwid, it's that you can host several stores account. If you know css/javascript then you can do this on your own, but if you want a widget that does, make these widgets.
If you are looking for some great Ecwid widgets, you can enter these ones that are free. And if you are wanting to customize even more (including the ability to host multiple account stores), you can get these even more impressive widgets for $14.99 with promo code: 1MUSESTORE #.
-
How to create the MUCOW file in xml using Adobe Muse
How to create the file MUCOW as xml using Adobe Muse .kindly give step tutorial or PDF... WHERE DO I CREATE MUCOW? No idea for me
Just lucky to have this info to my favorites
-
How to create the database using the command line?
Hi all
Win7
10g or 11g
I want to create a new database using a script.
I set up my new SID and oracle_home.
Then sqlplus / DBA.
then I execute a common script...
I always hit itstartup nomount; create database PRODB logfile group 1 ('z:\oradata\PRODB\redo01.log', 'z:\oradata\PRODB\redo01b.log') size 50M, group 2 ('z:\oradata\PRODB\redo02.log', 'z:\oradata\PRODB\redo02b.log') size 50M, group 3 ('z:\oradata\PRODB\redo03.log', 'z:\oradata\PRODB\redo03b.log') size 50M, group 4 ('z:\oradata\PRODB\redo04.log', 'z:\oradata\PRODB\redo04b.log') size 50M character set AL32UTF8 datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M undo tablespace undo datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M default temporary tablespace temp tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M; @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catalog.sql; @/opt/app/oracle/product/10.2.0/db_1/rdbms/admin/catproc.sql; connect system/manager; @/opt/app/oracle/product/10.2.0/db_1/sqlplus/admin/pupbld.sql; exit; SQL> startup nomount; ORA-12560: TNS:protocol adapter error SQL> create database PRODB 2 logfile group 1 ('z:\oradata\PRODB\redo01.log', 3 'z:\oradata\PRODB\redo01b.log') size 50M, 4 group 2 ('z:\oradata\PRODB\redo02.log', 5 'z:\oradata\PRODB\redo02b.log') size 50M, 6 group 3 ('z:\oradata\PRODB\redo03.log', 7 'z:\oradata\PRODB\redo03b.log') size 50M, 8 group 4 ('z:\oradata\PRODB\redo04.log', 9 'z:\oradata\PRODB\redo04b.log') size 50M 10 character set AL32UTF8 11 datafile 'z:\oradata\PRODB\sysPRODB.dbf' size 500M 12 sysaux datafile 'z:\oradata\PRODB\auxPRODB.dbf' size 300M 13 undo tablespace undo 14 datafile 'z:\oradata\PRODB\undoPRODB.dbf' size 100M 15 default temporary tablespace temp 16 tempfile 'z:\oradata\PRODB\tempPRODB.dbf' size 150M;
SQL > startup nomount;
ORA-12560: TNS:protocol adapter error
But if I run it on Linux is good.
Help, please...
Thank you very much
zxyyxes2013 wrote:
I want to create a new database using a script.
Suggestion. DBCA allows to generate the database model and use the option "+ Save as scripts + ' (no need to create the database).
In the scripts directory, there will be a couple of shell and SQL scripts to create the database. Use them as your CLI model for the creation of a custom database. (I guess that DBCA works the same on Windows as it does on Linux).
Another option, if you are using Oracle XE, is to copy ORACLE_HOME/bin/createdb.sh (probably a + .cmd on Windows) script and change for use. If you manually add non-XE features to the script (such as the installation of the Java virtual machine) If you want a database of SE or EE. (whereby DBCA scripts are a better answer).
-
Satellite P750 PSAY1A: how to create the recovery Toshiba on the new HARD drive partition
Hello
I have an old Toshiba Satellite P750 (PSAY1A-01Y022). I just upgraded my memory from 4 GB to 8 GB and am preparing to take my 500 GB HARD drive 1 TB. I had to order the disk online and wait to happen.
I always try to understand how to create the arrival of my new HARD drive Toshiba Recovery Partition. I do the same thing for an old book, I handled based on something similar to it's original factory State.
I have reflected on the recovery partition, but does not know how it was created. It is not NTFS. Does anyone have experience in the creation of a Toshiba Recovery on a new HARD drive Partition?
And the help is very appreciated.
Thanks and regards,
DineshRecovery partition can be created when you use the original Toshiba Recovery disk and install recovery image. Before the partitions to boot OS install will be automatically created, recovery image copied on a recovery and then partition as last step recovery image installation starts.
A sort of migration of files from one to the other HARD disk is not solution.
Only for laptop with factory will work and the usable recovery partition.
Maybe you are looking for
-
Firefox did an update to 'work seamlessly with Win 10'. When Firefox is restarted, ALL MY FAVORITES HAVE DISAPPEARED. I went to the library and tried to restore the bookmarks. It won't! I have a system of computer backup, but no. CLUE where to find m
-
deleting unwanted thumbnail of the home screen
a little while ago firefox was an update... and now I have quite annoying problem annoying. We had 9 (nine) the photos... and I had everything perfectly arranged... now, we have 6 more... ALIAS: 15... I DON'T WANT THE 6... How do I delete them so I c
-
C850-1CR - recovery problem satellite
I have a laptop that was purchased in June 2013. After the disk check gave errors, make my computer unable to really start up, I decided to do a factory restore. Who got 52 percent, and then got stuck and stopped twice. I ordered the recovery disk To
-
Location of the file of LabVIEW for Instrument custom
We have a DLL for a developed in-house CAN interface we call a HOLY area. One of our engineers has written a DLL it and uses in the testbed. We were hoping to use LABView. I guess I have two questions... 1. If it works on test bench, can expect us
-
When I transfer emails containing images, it has been reprted bythe recipients that the pictures are not coming. Explain please. original title: transfer of emails