Join table JavaScript QML
It seems that forcing a string table, indicates that he has the correct content, but just .comes (', ') does not work. -What is that supposed to work in QML? Is there something else that replaces it?
I have the code following, that I create, push my navstack, and then call the newParticipant Member:
{Page}
[participants varying property:]
function newParticipant (fn) {}
This.participants += [fn];
participantLabel.text = "with:" + this.participants.join (','); "."
}
{Label
ID: participantLabel
text: "with:
textStyle {}
Base: SystemDefaults.TextStyles.SubtitleText
}
verticalAlignment: VerticalAlignment.Center
Multiline: true
}
}
Turns, QML (v4) properties are not true pictures of JavaScript, but kind of pretending to be. They cannot be transferred. The solution is:
var tmp = good;
tmp.push (a);
property = tmp;
Tags: BlackBerry Developers
Similar Questions
-
DB connectivity Kit: syntax error in a SELECTION of data from joined tables
Hello everyone
I'm putting in labview a SQL query on joined tables.
As an example I take a database to store the data of basketball 2on2 matches, which tables are
corresponds to (matchId, Thomas, teamB)
teams (teamId,PlayerAname, PlayerBname, nationality)
nationalities (NatId, natName)
To get an array of result with the game as well as the names of player as well as their nationality, I use this query on MySQL (which works on command line interface)
SELECT MatchID,
T1. PlayerAName, t1. PlayerBName, n1.natName,
T2. PlayerAName, t2. PlayerBName, n2.natName
MATCHES m
INNER JOIN teams t1 ON t1.teamID = m.teamA
INNER JOIN teams t2 ON t2.teamID = m.teamB
INNER JOIN nationalities L1 ON n1.natID = t1.nationality
INNER JOIN nationalities n2 ON n2.natID = t2.nationalityWhen I put it in labview, using the block 'select data', I get a syntax error as shown in the attached screenshot.
Am I something mistanking using the JOIN examples statements or aliases?
Thanks in advance!
The select VI is designed to be a simple way to select from a table. I doubt that he can do joins (and would not certainly need the 'FROM', even if it can). What you can do instead calls the query execute VI and give him the complete SQL query. I don't remember if it returns the data in the recordset object, so you must do so separately.
-
What happens if we want to join table DOUBLE with another table?
Gul says:
What happens if we want to join table DOUBLE with another table?Not really would you use an equi-join on double because it will always contain a single row and column. Cartesian double with one of the tables will result in the same set of rows, which is at the Table.
When we get the same result from Tables, why do we use double then?
Double table is just a convenience table which is / was used to extract the sequence next/Currval, in order to calculate the level of generation etc. Dates missing to know. For more information of the Table double, please read the thread from Tom Kyte. Everything about Table double.
-
Hello
What is the way to perform a join in the cache object in coherence - the equivalent of a join table as select a.* from A, B and b where Julien = BK.
Thank youOut of the box, you can't do a join - the consistency is not a database that supports all the things you can do in SQL.
There are ways to allow certain types of join features. Read this blog which is about the project, I am working currently on (the blog is a colleague) http://www.benstopford.com/2011/09/22/achieving-fast-joins-in-distributed-data-stores-through-the-application-of-snowflake-schemas-and-the-connected-replication-pattern-2/
JK
-
How do I display values skyrocket in the IR filter for the joined table columns?
Hello
I have a problem in the IR the query is based on a table, joined with other tables. I would like to provide users the ability to use IR filter search bar in the joined table columns. The problem facing on this filter, the Expression field, by pressing the arrow button displays values for the fields in the primary table, but not for fields that come from joined tables. Have you experienced this behavior in your reports? Is this normal?
TIAHello
Correlated subqueries can improve performance - but it does not depend on the involved tables, the number of columns and the existence of indices. As far as I know, the optimizer has problems with them. You could try to explain the Plans on the two statements to verify that.
In any case, I created a new test page with the SQL for IR:
SELECT E.EMPNO, E.ENAME, D.DEPTNO, D.DNAME, E2.EMPNO "EMPNO2", E2.ENAME "ENAME2" FROM EMP E, EMP2 E2, DEPT D WHERE E.EMPNO = E2.EMPNO(+) AND E.DEPTNO = D.DEPTNO(+) AND E2.PRIMARY_EMPLOYEE(+) = 'Y'
http://Apex.Oracle.com/pls/OTN/f?p=267:226
As far as I can see, it works properly - except that if I do a filter on the ename column, when I try to create a second filter, drop-down lists ename all the values, while the other columns list only the available values after having applied the first filter. Which seems strange that the filters are applied as ANDS. But it does the same thing for other areas - IE, the field used in a filter is not filtered for the second filter - so I guess this is normal, but only a person in Apex could probably explain why it is so.
Otherwise, everything seems to work as I expect and the above page works the same as my test page, which uses external joins http://apex.oracle.com/pls/otn/f?p=267:224
Andy
-
How to debug javascript/qml?
is there a way to set breakpoints in qml/javascript and debugging code?
Normally I can SSH to my Nokia N9 will enable developer mode.
You should also be able to do it on the playbook:
http://openbbnews.WordPress.com/2011/12/21/devuser-and-1000/
And then edit files using vi (assuming that QNX vi?).
I have yet to try this with my playbook, but I'll do that when I start the porting on BB 10 soon.
-
Help to understand the basics of the integration of Javascript/QML
Hey all!
I am just development of BB for the first time, so please bear with me. I'm not sure that understand the interaction between JS and QML. I understand that you can write JS in QML, particularly in managers of signals, and I used chunks of it with success. Also, I show/read by the "Javascript in QML" and JS linked in the pages of Qt, which helped a bit.
However, I am having a few problems incorporating it into my code. Could you take a look at this and point me in the right direction? (I'm also new to JS itself, so maybe that my mistakes are with this instead?)
onTriggered: {}
When an item is selected, we push the recipe Page in the attribute of file chosenItem.
var chosenItem = dataModel.data (row);
Create the content page and place on top of drill down for it.
contentPage var = pillDetailPageDefinition.createObject ();
Set the properties of content to reflect the selected image.
contentpage.contentImageURL = chosenItem.thumbnail
contentpage.contentName = chosenItem.name + ', ' + chosenItem.mass
* Errors begin to surface in this block *.
contentpage.contentConsumption = {}
Guide bar = "With"
Mistakes of the top line: 'missing}, unknown symbol "guideline", missing colon "guideline", etc.
Boolean multiInstruction = false;
Top line errors: inconsistent input boolean expected RBRACE
If {(chosenItem.withFood)
guideline += "food";
multiInstruction = true;
}
If {(chosenItem.withWater)
If (multiInstruction) guideline += 'and ';
guideline += 'water '.
}
Return to the guideline;
}
Thanks in advance! I feel I'm missing something incredibly small/basictry calling it without braces.
You can also create a function directly in QML, no need to export to a js file unless you want to use other components (that are not subcomponents) as well.
to learn more about the construction of Qt/QML parent, I suggest to read this doc API:
http://Qt-project.org/doc/Qt-4.8/objecttrees.htmlcreateObject (this) would create a new component with the parent defined on the object class, and if this is destroyed a new is also destroyed. This is useful when you create components dynamically as you don't have to delete them manually later.
-
Hi all
I have 3 tables A, B, C
Create table a (varchar2 (100)) of the currency;
insert into a values (GBp);
insert into a values (GBP);
insert into a values (GBX);
Create table B (varchar2 (100) currency, number);
insert into B values (GBP, 61.1);
Create a table (minor_currency varchar2 (100), major_currency varchar2 (100));
insert into values of C (GBp, GBP);
insert into values of C (GBX, GBP);
I need to get the rate table B by linking the A with the currency as a condition of joining. (left outer join)
For currencies which are not in table B, table should be attached with C minor currency-based
and get the major_currency and join with table B
Ex:
something like this:
Select B.rate from A, B, C
WHERE (A.currency = B.currency or (A.currency = C.minor_currency and B.currency = C.major_currency)
O/P: for GBp and GBX currency, I need to get the rate as 61.1 in table B, but B currency is GBP. So I need to get the major_currecny for GBp, GBX table C and join with the table B
Thank you
Sasi
Hi all
Thanks for your time. Its done
-
Hello
Oracle version: 11.1.0.7.0 - 64 bit
I read the documentation online at joins. The page is avialable here: joins at
My question is about the join order of evaluation of the conditions in clause and the conditions of those
are not the join conditions and are placed in the WHERE clause.
Consider the following pseudocode
SELECT
T1. Col1,
T2.Col1
Of
Table1 t1 LEFT OUTER JOIN table2 t2
WE
(condition_expression1)
WHERE
(condition_expression2)
Is it correct to say that if there is no column on the status of join (condition_expression1) in condition_expression2, then condition_expression2 is executed before condition_expression1? In other words, oracle always trying to filter based on the WHERE clause individually each table as much as possible before joining them based on the conditions on the article?
Thanks in advance,
Hello
dariyoosh wrote:
Hello
Oracle version: 11.1.0.7.0 - 64 bit
I read the documentation online at joins. The page is avialable here: joins at
My question is about the join order of evaluation of the conditions in clause and the conditions of those
are not the join conditions and are placed in the WHERE clause.
Consider the following pseudocode
SELECT
T1. Col1,
T2.Col1
Of
Table1 t1 LEFT OUTER JOIN table2 t2
WE
(condition_expression1)
WHERE
(condition_expression2)
Is it correct to say that if there is no column on the status of join (condition_expression1) in condition_expression2, then condition_expression2 is executed before condition_expression1? In other words, oracle always trying to filter based on the WHERE clause individually each table as much as possible before joining them based on the conditions on the article? ...
The reverse is actually closer to the truth, but we can't really make general statements like that.
SQL is not a language of the proceedings. Looking at the code SQL, we could say that the code does, but we cannot say much about how that code it. In other words, SQL is a language that describes the results you get, not the way to get them.
The optimizer will do everything what he thinks is faster if it does not change the results. If any order in which they are applied (in outer joins or CONNECT BY queries, for example), then think of the join is done first, and the value of the WHERE clause is applied to the result of the join.
Here is a query looks very much like you posted:
SELECT d.deptno
e.ename, e.sal
OF scott.dept d
LEFT OUTER JOIN scott.emp e ON e.deptno = d.deptno
WHERE e.sal > = 3000
ORDER BY d.deptno
;
Output:
DEPTNO ENAME SAL
---------- ---------- ----------
10 KING 5000
20 FORD 3000
20 3000 SCOTT
The scott.dept table contains deptnos 30 and 40; Why are they not in the result set? The query behaves as if the outer join is made first (production 15 rows), then the WHERE clause has been applied. All lines with deptno = 30 had sals down han 3000 and all single line with deptno = 40 was NULL in the sal column, then these lines are excluded (as well as other lines of deptnos 10 and 20), and only 3 lines above are left.
-
Just looking for best way to do... 2 data joined tables
looking for advice this.
using oracle 11 g.
I have data im going to use in a view to update TABLE1 monthly.im going to see all these data via php in a web page.
I would like to add a few modifiable of table2 values who will join table1.
-drop the table1 table:
create table table1)
number of value1,
Number of value2,
number of value3,
Number of VALUE4,
number of Value5
);
INSERT INTO TABLE1 (VALUE1, VALUE2, VALUE3, VALUE4, VALUE5) VALUES (1119,4,54,772,643);
INSERT INTO TABLE1 (VALUE1, VALUE2, VALUE3, VALUE4, VALUE5) VALUES (22,345,55,278,446);
INSERT INTO TABLE1 (VALUE1, VALUE2, VALUE3, VALUE4, VALUE5) VALUES (314,193,75,542,676);
INSERT INTO TABLE1 (VALUE1, VALUE2, VALUE3, VALUE4, VALUE5) VALUES (13,396,59,232,670);
INSERT INTO TABLE1 (VALUE1, VALUE2, VALUE3, VALUE4, VALUE5) VALUES (41,2003,505,232,7096);
-select * from table1
create the table2 table)
VCLE NUMBER,
NUMBER OF VERSION_NUM,
COMMENTAIRES1 VARCHAR2 (50).
comments2 varchar2 (50)
);
-select * from table2
Vcle in table2 is a concatenation of value1, value2, value3 on table1.
So the end result is on the web page of all the values in table 1, unmodifiable, 2 reviews in table2 fields that can be changed. A user can change these fields, then they will save in table2 with the key of concatenation. the reason why I want to do like this, with a second table is because whenever a user changes these fields I want to insert again to occur in this table, not an update, which will add a trigger, I have a new version number. This sounds like a mistake to do it this way?
The strategy of the concatenation is a mistake.
Concatenation requires strings, then you would be conversion 3 numbers to strings to concatenate, then convert it to a number stored in table2.
If I insert = 11-v1, v2 = 11, v3 = 11 then insert v1 = 1, v2 = 11, v3 = 111. I generates the same Vcle and either corrupt your data or make it impossible to tell what row in table1 = 111111 Vcle should concern.
A substitution used as primary key in table 1 key is a way to fix this design.
-
Problem joining tables; duplicate records
I have problems with my request. She joined essentially three tables. I am inside the environment of the Apex, but this problem is with my request. I have three tables:
JOBS
Job_Id PK
Job_Number
Goal
Title
JOB_BUNDLES
Job_Bundle_Id PK
Modification_Number
Justification
Job_Id FK
JOB_TASKS
Job_Task_Id
Sequence
Task_Id (values can be either 1,2,3,4,5 or 6)
Job_Bundle_Id FK
You can see the stream / connection between each table. A JOB can have several JOB_BUNDLES and one can JOB_BUNDLE have JOB_TASKS a lot. One-to-many relationships
My query now displays a report of JOB_BUNDLES for a given job, represented in the form:
SELECT Job_Bundle_Id, Modification_Number, Justification, Job_Id FROM JOB_BUNDLES JB WHERE JB.Job_Id = :P26_Job_Id
The page element, P26_Job_Id represents the Job_Id of the WORK of the table argument. That said, each record JOB_BUNDLE will have JOB_TASKS related records; more specifically, there will be at least a record where JOB. TASKS. Task_Id = 6. This happens only once. I can't get my information from the request that I submitted and the information from the table JOB_TASKS where the Task_Id = 6. I tried to add a JOIN and a WHERE clause, but I still get duplicate records. If anyone has some insight on this issue, it would be greatly appreciated. Thanks in advance.
What:
SQL > select b.*
2, (select t.sequence
job_tasks 3 t
4 where t.job_bundle_id = b.job_bundle_id
5 and t.task_id = 6
(6) seq
job_bundles 7 b
8 where b.job_id = 1;
JOB_BUNDLE_ID MODIFICATION_NUMBER JUSTIFICATION JOB_ID SEQ
------------- ------------------- ------------------------------ ---------- ----------
1 0 there is no justification 1 12
2 that 1 I'm just here for test 1
3 2 it's the third amendment 1 7
3 selected lines.
-
Dear all,
I use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production.
I have two tables MASTER_IDS and SALES_NAME, the MASTER_IDS is a large table, which has about 5 million of data. Here are examples of data.
Data MASTER_IDS:
TABLE-NAME UK_ID UK_NAME SALES 10 A SALES 11 B SALES 12 C CREATE TABLE MASTER_IDS AS SELECT 'SALES' AS TABLE_NAME, 10 AS UK_ID, 'A' AS UK_NAME FROM DUAL UNION SELECT 'SALES' AS TABLE_NAME, 11 AS UK_ID, 'B' AS UK_NAME FROM DUAL UNION SELECT 'SALES' AS TABLE_NAME, 12 AS UK_ID, 'C' AS UK_NAME FROM DUAL;
Data in the SALES_NAME table:
CNAME ONAME NAME A B C CREATE TABLE SALES_NAME AS SELECT 'A' AS CNAME, 'B' AS ONAME, 'C' AS NNAME FROM DUAL;
And I need to insert into another table of SALES of these two tables as data below.
C_NAME_ID O_NAME_ID N_NAME_ID 10 11 12 I tried with the query below, but it uses the MASTER_IDS three times since it's the huge table can be fear of performance problem. Is it possible to get the result as above with minimal use of the MASTER_IDS table.
SELECT A1.UK_ID AS C_NAME_ID, A2.UK_ID AS O_NAME_ID, A3.UK_ID AS N_NAME_ID FROM SALES_NAME A INNER JOIN MASTER_IDS A1 ON A1.UK_NAME = A.CNAME INNER JOIN MASTER_IDS A2 ON A2.UK_NAME = A.ONAME INNER JOIN MASTER_IDS A3 ON A3.UK_NAME = A.NNAME;
Appreciate your help.
Thank you all.
Try this?
SELECT MAX(CASE WHEN cname = uk_name THEN uk_id END) C_NAME_ID,
Max (case when oname = uk_name Then uk_id end) O_NAME_ID,
Max (case when nname = uk_name Then uk_id end) N_NAME_ID
Master_ids MI, sales_name sn
WHERE mi.table_name = 'SALES '.
AND mi.uk_name IN (sn.cname, sn.oname, sn.nname);
OUTPUT:-
------
C_NAME_ID O_NAME_ID N_NAME_ID
---------- ---------- ----------
10-11-12
INSERT statement:--
-----------------
INSERT INTO sales
SELECT MAX(CASE WHEN cname = uk_name THEN uk_id END) C_NAME_ID,
Max (case when oname = uk_name Then uk_id end) O_NAME_ID,
Max (case when nname = uk_name Then uk_id end) N_NAME_ID
Master_ids MI, sales_name sn
WHERE mi.table_name = 'SALES '.
AND mi.uk_name IN (sn.cname, sn.oname, sn.nname);
-
Hi masters
the following query returns 8 rows... I have to join to another table. need to get the same lines.
Select distinct HHW. IP_FQDN,
WHEN UPPER (FILE_NAME) like '% CISCO IOS' – THEN DEAL
RDD.NE_TYPE - ADDED FOR CISCO IOS
ELSE HAVE NULL TERMINATOR NE_TYPE,
WHEN UPPER (FILE_NAME) as 'CIENA - 6500% ' - DEAL THEN
RDD. TYPE_EQUIPEMENT - ADDED CIENA TO 6500
ELSE HAVE NULL TERMINATOR TYPE_EQUIPEMENT,
CNE.ne_name,
CNE.ID,
CNE.Comments,
CNE. DESCRIPTION,
CNE. USERCANONICAL_NE_NAME,
1 SHELF_SEQ,
FILE_NAME,
DNT. NC_MODEL,
TSD.pollingsheet
OF UDMF_STAGE. RAW_DEVICE_DATA RDD,
UDMF_DABI. NEC CIT_NETWORK_ELEMENT,
udmf_dabi.tbl_shelf_details DNT - REFERRING NEW DATA IN UDMF_DABI SCHEMA
WHERE
((TRIM (RDD. IP_FQDN) = TRIM (CNE. ADDRESS1))
or
(TRIM (RDD. IP_FQDN) = TRIM (SUBSTR (CNE. ADDRESS1, 1, INSTR (CNE. ADDRESS1, "/")-1)))
)
AND CNE.NE_NAME = TSD.NE_NAME
AND DNT. POLLINGSHEET = 'y '.
AND FILE_NAME = "Alpine.csv."
- and nc_model is null;
A table more is UDMF_DABI. TBL_SHELF_DETAILS. the common column is Ne_name.
Select * from UDMF_DABI. TBL_SHELF_DETAILS where ne_name in)
I'll write the query above?
Thanks in adv
AR.
Try the update statement below
UPDATE UDMF_DABI. TBL_SHELF_DETAILS DNT
SET POLLING_SHEET = 'X '.
WHERE EXISTS (SELECT 1 FROM (select distinct RDD. IP_FQDN,
WHEN UPPER (FILE_NAME) like '% CISCO IOS' – THEN DEAL
RDD.NE_TYPE - ADDED FOR CISCO IOS
ELSE HAVE NULL TERMINATOR NE_TYPE,
WHEN UPPER (FILE_NAME) as 'CIENA - 6500% ' - DEAL THEN
RDD. TYPE_EQUIPEMENT - ADDED CIENA TO 6500
ELSE HAVE NULL TERMINATOR TYPE_EQUIPEMENT,
CNE.ne_name,
CNE.ID,
CNE.Comments,
CNE. DESCRIPTION,
CNE. USERCANONICAL_NE_NAME,
1 SHELF_SEQ,
FILE_NAME,
DNT. NC_MODEL,
TSD.pollingsheet
OF UDMF_STAGE. RAW_DEVICE_DATA RDD,
UDMF_DABI. NEC CIT_NETWORK_ELEMENT,
udmf_dabi.tbl_shelf_details DNT - REFERRING NEW DATA IN UDMF_DABI SCHEMA
WHERE
((TRIM (RDD. IP_FQDN) = TRIM (CNE. ADDRESS1))
or
(TRIM (RDD. IP_FQDN) = TRIM (SUBSTR (CNE. ADDRESS1, 1, INSTR (CNE. ADDRESS1, "/")-1)))
)
AND CNE.NE_NAME = TSD.NE_NAME
AND DNT. POLLINGSHEET = 'y '.
File_name AND = "Alpine.csv") qry1
WHERE the qry1.NE_NAME = TSD.NE_NAME);
-
How to join tables and get ppl not in the list of the other table
Hi, I have 2 tables
Table (girlscoutid, quarter, point)
Table b (girlscoutid, fname lname)
I want to get the names of ppl who didn't sell any point/s for Q4
girlscoutid agenda quarter 7771 drinks 4QS 9000 Tickets 4QW 7771 Cookies 2QS 5085 books 3QF 3010 Tickets 3QW 5085 Cookies 1QF lscoutid fname lname 7771 Jenn Richochet 9000 Laura Wilkins 5085 Sally Mae 3010 Dora McKenzie That's what I have, however, I get duplicates and also 7771 appears on the list even if she sold something on the 4th quarter. Any suggestions?
SELECT fname, lname, a.girlscoutid
Of a, b
WHERE a.girlscoutid = b.girlscoutid
AND the term NOT AS "4Q_";
Hello
So, all the information that you want to see figure in table b, but if you want to see it depends on the table has.
This looks like a job for a semi Join. Here's a way to do it:
SELECT b.fname
b.lname
b.girlscoutid
B
LEFT OUTER JOIN has IT a.girlscoutid = b.girlscoutid
AND a.quarter NOT AS "4Q_" - or a.TERM, if it is the column
WHERE a.girscoutid IS NULL
;
What you posted was an INNER join, where the rows of each table are included in the only game that if they have a corresponding row in the other table.
An OUTER join includes all the rows in a table (table b in this case) if they have a match in the other table. If a line of b has no corresponding row in a, then all the columns that are supposed to come from table will be NULL in the result set. Given that the join condition includes = b.girlscoutid a.girlscoutid, this means that the only way to a.girlscoutid can be NULL in the result set is if the b line is included although it has no corresponding line one, which are exactly the lines that we want to display. (You can try to run the query above with the WHERE clause, deleted, just to see how it works.)
Alternatively, you can get the desired results by using a subquery NOT EXISTS, a NOT IN subquery or analytical functions. The semi join, supra, is probably the most effective solution.
-
Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Hi, I have the following example. I am getting the output require if I hardcode the values into the START WITH CLAUSE
but instead of coading hard values how can I join the table.
WITH Current_ids AS (SELECT 100 ID FROM DUAL UNION SELECT 105 ID FROM DUAL), Hirerchy AS (SELECT 100 ID, 101 parent_id FROM DUAL UNION ALL SELECT 101 ID, 102 parent_id FROM DUAL UNION ALL SELECT 102 ID, 103 parent_id FROM DUAL UNION ALL SELECT 103 ID, 104 parent_id FROM DUAL UNION ALL SELECT 105 ID, 106 parent_id FROM DUAL UNION ALL SELECT 106 ID, 107 parent_id FROM DUAL UNION ALL SELECT 107 ID, 108 parent_id FROM DUAL) SELECT CONNECT_BY_ROOT (ID) ID, TRIM (SYS_CONNECT_BY_PATH (B.id, ' ') || ' ' || B.parent_id) PATH FROM Hirerchy b WHERE CONNECT_BY_ISLEAF = 1 START WITH b.id IN (101, 105) /******** Change this to get the values from Current_ids ********/ CONNECT BY PRIOR b.parent_id = b.id
Thank you all for the support and assistanceoutput ID PATH 101 101 102 103 104 105 105 106 107 108
Hello
Welcome to the forum!
Here's one way:
SELECT CONNECT_BY_ROOT (ID) ID, TRIM (SYS_CONNECT_BY_PATH (B.id, ' ') || ' ' || B.parent_id) PATH FROM Hirerchy b WHERE CONNECT_BY_ISLEAF = 1 START WITH b.id IN ( SELECT id FROM current_ids ) CONNECT BY PRIOR b.parent_id = b.id ;
Published by: Frank Kulash on May 15, 2013 10:31
Another way is to really join the tables:
WITH join_results AS ( SELECT h.id, h.parent_id , c.id AS current_id FROM hirerchy h LEFT OUTER JOIN current_ids c ON c.id = h.id ) SELECT CONNECT_BY_ROOT (ID) ID, TRIM (SYS_CONNECT_BY_PATH (id, ' ') || ' ' || parent_id) PATH FROM join_results WHERE CONNECT_BY_ISLEAF = 1 START WITH current_id IS NOT NULL CONNECT BY PRIOR parent_id = id ;
You don't need absolutely the subquery. You can do a join and CONNECT BY in the same query (join conditions are applied before the CONNECT BY is done), but it is often much faster to do the join and CONNECT it BY separately, one in a subquery.
Maybe you are looking for
-
BlackBerry Smartphones Flash Player
I'm new to BlackBerry, but thought I was getting a good smart phone. Now I find I can't read videos or news, etc. without Adobe Flash Player and it doesn't have an Adobe Flash Player available for the BB. Is there a solution? Or I have to get a ph
-
Help BlackBerry Smartphones blackberry messenger
Hi, I see everything about me contact avatars tried battery stall and the peak of instead of the caller ID display.
-
RADIUS-server host command problem
Hi all I have cisco 4506 e - 8 L - e sup with the latest IOS image, but host X.X.X.X command radius server is not available, I've heard that this order has been changed now, can someone tell me the new syntax of this command because I'm setting this
-
In our Production, we can share the password of user of database 'Apps' with our consultants functional, although they would like to examine through fields by (help > Diagnostics > review) and here he asked the password of the user "APPS". We need to
-
Problems of closing popup in filedownload actionlistener
Cannot close the popup after download the fileJSFF< af:commandButton id = "cb2-generateKey.Text = "#{msg.oauthCertOpGenKeyPair} '"partialSubmit = "false" clientComponent = "true" >< af:fileDownloadActionListener filename = "keyStore.p12" contentType