Problem Creating a query for a hierarchical tree. [using connect by prior]
Hi all,
I have 2 tables.
box (box_id, box_name)
item(item_id, item_name, box_id)
In a box there are several items.
I want to create a hierachical tree to display items that are present in each box.
LIKE:
|---BOX1
| |----ITEM 1
| |----ITEM 2
|
|---BOX2
| |----ITEM 1
| |----ITEM 2
Currently i am trying this query:
SELECT -1 state, box_name, 'icon' icon, box_id val
from box b, item i;
I don't know what value to put for level, i don't know how to code the 'connect by prior' part.
Could you please advise me?
Michaël.
PS. Then i will eventually use this query in forms builder.
Note the name of this forum is "SQL Developer *(Not for general SQL/PLSQL questions)*" - so only for issues with the SQL Developer tool. Please post these questions under the dedicated SQL And PL/SQL forum.
Regards,
K.
Similar Messages
-
Error while creating a query for my custom infotype
Hi,
I have created a custom infotype with fields currency amount and currency field .
While I am creating a query for it its giving an error
Message no. AQ_AD_HOC221 Error when generating the report(see long text )
I tried to execute the standard program RPUMS40CCI but still I am facing same error .
I have also maintained table T777i for my infotype but still problem exists.
Please help.
PHi
Check in PM01 -
How to create ABAP Query for vendor open items
HI,
My client has requested me to create ABAP Query for vendor open items . So that it will be usefull for the users . Could anyone help me with this. I will assign you points.Thanks in advance.Hello,
Use Table BSIK <Open Items of AP > & BSAK <AP Cleared items>......
For Query you can use SQ01.
USE BSID & BSAD for AR open/clear items...
LFA1, LFB1 are vendor master data tables
This is FYI
Hope this helps.
Rgds
Rajendra -
Creating MyBO query for an OWL
This is actually a common usecase:
How do I create a query for an OWL that only contains my BO's?
I see two difficulties to this question:
1. Store "ownership" of a BO
To store the ownership of a BO I can use
this.Identity = Identity.Retrieve(Context.GetCurrentIdentityUUID());
or an
Employee-OVS and store the EmloyeeID in the BO.
2. How do I create a query in the UI-Designer that filters based upon the User?Hi,
I thinkat first you have to define what ownership is. Is it the Creator, or would you select one by creating, changing etc.
If it should be the creater, you can use the standard (automatical created) "created by" element, in other cases you have to add an own element to your business object.
To create a query for your business in UI, you can follow the instructions in the documentation...page 617-618.
Best regards,
Andreas -
Can anyone create a Query for this?
Can anyone help me to create a query for the followinf table info?
I have tried to use joins but no success.
Table Name: Org
ID Severity Status
1 Red New
2 Yellow New
3 Green Closed
4 Green Open
5 Yellow Closed
6 Red Closed
7 Red Closed
8 Red Open
9 Yellow New
10 Yellow Closed
The result of the query should look like this. The most important thing is that I want this result set in a single query and in this format.
Severity Total_Status Total_Closed
Red 4 2
Green 2 1
Yellow 4 2select severity,count(*) tot,sum(decode(status,'closed',1,0)) tot_closed
from org
group by severity;
Not tested.. -
How to create sql query for item master with operator LIKE with variables?
hi all,
How to create sql query for item master with
operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
JeyakanthanHi Jeyakanthan,
here is an example (put the like statement into the where field)
SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
Regards Steffen -
Unable to create Spotlight query for expression
I don't want to assume that the following Console Log entry is a Spotlight indexing issue since the PID is from MAIL however the following entry appears repeatedly every minute to five minutes:
"12/1/10 6:33:01 PM Mail[2698] Unable to create Spotlight query for expression ([email protected]) && (kMDItemContentType == 'com.apple.mail.emlx' || kMDItemWhereFroms == 'message:*'w)"
Why would Mail try to create a Spotlight query like this, why so often, and where should I look to correct or remove the offending source?
BTW, the noted email address has been changed for privacy. Otherwise the syntax is exact.
ThanksI, too, have been seeing this same error ever since I started syncing my mail via .mac or whatever they call it these days. The whole experience has been so problematic that I've discontinued using it, but it's taken me weeks to clean up the disaster it's made of my multiple computers.
This issue seems to be one of the last remnants of the whole debacle, and I'd love to hear any suggestions on how to clean it up without having to do complete wipe/reinstall of everything, which is pretty much all that's left to try. -
Searching Hierarchical tree using Find tree node
In hierarchical tree using find_tree_node when i search the value it is taking the search value as a string and returns the node that of previous node value. for example
Suppose when i am searching for node value 18 ,but it takes the some other node value of (1883).
The tree structure is
1
2
1883
3
18
The code used is
p_node := ftree.get_tree_node_property ('tree_block.tree',:system.trigger_node,ftree.node_value);
current_node := Ftree.Find_Tree_Node(htree,
p_node,
Ftree.FIND_NEXT,
Ftree.NODE_VALUE,
Ftree.ROOT_NODE,
Ftree.ROOT_NODE);Hi!
You can use your restricting subquery in a start with clause. Something like
start with node_parent is null and some_field in (select ...)
Or you can eliminate the join and use where clause.
Hope this helps.
Sergey. -
Why can't I update my iPhone 4 to iOS 5.1? Every time I try it gets all the way done downloading it; however when it's processing the file the page tells me "There is a problem downloading the software for the iPhone. Network connection timed out. Make sure your network settings are correct and your network connection is active. or try again later." and next to the file it has err = -3259. I have tried this 17 times and it won't work. My iTunes is completely up to date. I have made sure that my connection is fine and I have tried turning my firewall off with no avail. This has happened to me before but usually the update will go through after 2-3 tries, never to this extent. I don't know what to do. Help!
Error -3259 is a network timeout error, usually. This article might help:
http://support.apple.com/kb/TS2799 -
How do i create mailing labels for an avery template using pages
how do i create mailing labels for an avery template using pages.
mcc,
The first topic in the "More LIke This" box to the right of your question is a rather comprehensive address label printing discussion. Does it answer your question?
Jerry -
There was a problem downloading the software for the ipod. Network connection timed out
There was a problem downloading the software for the ipod. Network connection timed out. This is for the latest ios for the iPod touch. Already walked through the steps to validate that all settings were correct with the firewall, Windows defender has been disabled. This has not been an issue with previous ios updates. Not sure what the issue here is.
Hi,
You might have to place your iPod in Recovery Mode: http://support.apple.com/kb/HT1808.
Hope this helps!
---likeabird--- -
How do I create a watermark for my website logo using Adobe Photoshop CS4?
Hello! I need help creating a watermark for my website logo using Adobe Photoshop CS4. Thank You!
MFS APPLE PRO wrote:
Hey Don,
This is a pretty straight forward process, in settings on your phone go to general>network>personal hotspot. As SP has said most likely you will have to contact your wireless provider to set it up. I know for at&t you can set up this option through att.com/wireless or dial 611. It will cost you around 45 dollars per month and this gets you the ability to tether up to 4 wireless devices and alots you 4GB per month data. Hope this helps.
Mike
I've heard that it will also cancel your current contract. That isn't such a huge deal unless your current contract is an unlimited one--you can never get it back.
Does anyone know for sure? I've asked AT&T and received a "Yes it will cancel your current contract." and "No, it is a new contract--you keep your old contract if you wish." I suspect it is the former but it would be good to know for sure before ordering the service. -
How to create volume slider for flash cs 5 using action script 2.0?
how to create volume slider for flash cs 5 using action script 2.0?the output should like if user want to hear sound in slow pitch,medium pitch or high pitch(slow to high pitch anything).i have attach this sound to button with using this code:
stop();
mySoundBtn.onRelease = function () {
mySoundC = new Sound(this);
mySoundC.attachSound("mySoundClip");
mySoundC.start(0, 10); //10 represents the number of loops
gotoAndPlay(2);
This sound plays till 3-4 scene ahead.
Can anyone help me?Hey thnx Ned.
this sites are really helpful.but,i have used sound through button.so how it is possible to attavh the link with slider.i have created slider also.
Below is my slider code for sound.
onClipEvent (load) {
mySound1 = new Sound();
mySound1.loadSound((myScale)+"/"+(myTanpura)+"/"+(myTanpuraSwar)+"/"+(myTanpuraTempo)+".w av", true);
mySound1.onSoundComplete = function() {
mySound1.start();
mySound1.start(0.058,999);
onClipEvent (enterFrame) {
downloaded = mySound1.getBytesLoaded();
total = mySound1.getBytesTotal();
if (downloaded != total) {
_root.dl = "You have to buy this software...";
} else {
complete = 1;
_root.dl = "";
mySound1.setVolume(ratio * 2);
This code is working for slider.I mean it scrolls the slider.but it dosent make any effect to sound.
Below is my button code.
stop();
mySoundBtn4.onRelease = function () {
mySoundC = new Sound(this);
mySoundC.attachSound("mySoundClip4");
mySoundC.start(0, 300); //10 represents the number of loops
gotoAndPlay("play1");
this is on button's frame.not exactly on button.
Button and Slider both are on diffrent scene.
Can you plese help me out? -
There was a problem downloading the software for the iphone.The network connection timed out. Make sure the network settings are correct
I just had the same problem updating my iPhone 4. I found out by turning my Kaspersky virus protection OFF, then everything worked out, and I was able to update my phone.
Virus protection programs can cause alot of problems sometime, so it's worth a try if you haven't already tried. -
How to create an Invoice for the sales order using the T-Code VF01
Hello Experts,
How to create an Invoice for a sales order using the T-Code VF01?
Thanks in advace,
Sumahi,
Make the following settings-
1. Create sales document and billing type
2. assign billing type in sales document type config VOV8
3. Activate itemcategory as sales order related billing
4. Maintain copy control header and item level between sales order and billing
5. Maintain pricing procedure for sales order and billing
6. Define Output procedure in case to print invoice
Regards
Goutham
Maybe you are looking for
-
I have LR 4 and now I cannot open the software because I get this warning: "light room cannot start because it cannot create files in the temp file location. C:\windows\temp\". I think I need to have LR open in a different place but I have no idea ho
-
Adobe Reader 9 is not opening same files in Browser "Error in this Page"
Adobe Reader 9 is not opening same files in Browser "Error in this Page" If I try to open this pdf file manually then its works. The Error comes if I try to open Big Files or some else Files in the Browser. This Error was not comming with Adobe 8.
-
Cannot execute GR(MIGO)
Hi All, There is a user ABC who is operating the production order X The user cannot carry the GR (MIGO ). The error note is shown as below:- Production Order X is already being processed by user ABC Message no. CO469 Diagnosis User ABC is blocking
-
Big Oracle, and no support !!
We got stuck with an oracle ADF error in eclipse, but there is no support, just tell us is this a bug or we have to change the technology : Oracle ADF EAR 11.1.1 requires EAR 5.0 ?? Thanks
-
Since updating FF and the Adobe plug in last week I've found that loading pages or clicking on links is totally frustrating. The pages either dont load or need refreshing 3 or 4 times before they finally do load or I get nothing but a blank page. Or