Query to select values that correspond to several beaches
HelloOracle 10g.
I have a POINTS table (ID INTEGER, CLASS VARCHAR2 (15), CUMULATIVE NUMBER (2.1),...).
In my application (APEX), I show a list of classes of point, order by date.
SELECT CLASS FROM POINTS ORDER BY CUMUL;
Then the user can choose a range of classes point (CUMULATION is not indicated in the request, it's just for example):CUMUL CLASS
12.2 31458 <-
13.4 5S84 <- range 1
13.6 78PPH <-
15.0 3R594 <-
15.1 ZB452
15.5 54IO
17.6 21GFD
19.2 A54VV <-
19.9 IC112 <- range 2
20.8 158RC9 <-
21.3 G4G5
23.0 V22 <- range 3
For each range, I only store the first classes and he would give the last selected by a user, in a table USER_SELECTION (ID, ID_USER, FROM_CLASS, TO_CLASS), so using the example above:ID ID_USER FROM_CLASS TO_CLASS
1 12 31458 3R594
2 12 A54VV 158RC9
3 12 V22 V22
... ... ... ...
The problem is that in a query, I need to return all items selected by a user, and I don't really know how to get there without too much work...:SELECT *.
POINTS
WHEN USER_ID = 12
AND IN THE CLASS (*? *);
Any help would be appreciated.
Yann.
It is clear exactly what data are held in which tables etc but maybe something like this...
select user_selection.id, points.*
from points, user_selection
where user_selection.user_id = 12
and points.cumul between
(select cumul from points where class = user_selection.class1)
and
(select cumul from points where class = user_selection.class2)
order by user_select.id, points.cumul
Tags: Database
Similar Questions
-
Dynamically set a value based on the selected value of LOV
Apex 4.2
I can't create a dynamic action to set a value. I have used dynamic actions to hide and display areas but for some reason any cannot set a value.
I have a list of selection-> P101_LIST. Type of source is "Column of the database". Source of value or an expression is "person_id" the query is as follows:
Select first_name, person_id From Persons
I have a display-> P101_DISPLAY value. Source type is 'static Assignment. The source value or expression that I left blank.
I would like for each time the user selects a name of P101_LIST, the P101_DISPLAY element is updated to display the value (person_id) correspondent.
Because there are other page elements / information on the page, I prefer that to not submit / update of the page. Would not want other page elements / information update.
Any help on this would be greatly appreciated. Thanks in advance.
Hello
Create a DA:
-event onChange P101_LIST
-Action: PL/SQL
-PL/SQL code:
: P101_DISPLAY: =: P101_LIST;
What to submit: P101_LIST
Point of return: P101_DISPLAY
And in fact.
Kind regards
Joni
-
Exception while trying to get the selected value for the choice of SelectOne in ADF Mobile
I added the following code after arriving through this post https://forums.oracle.com/thread/2536419
DCBindingContainer dcBindings = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();
DCIteratorBinding iterBind = (DCIteratorBinding) dcBindings.get ("facilitySelectItems");
Attribute String = (String) iterBind.getCurrentRow () .getAttribute (0);
But Jdeveloper complained class BindingContext wasn't available and I get the jar file adfm.jar has not been added to the project. I added it manually the path C:\JDeveloper11r24\oracle_common\modules\oracle.adf.model_11.1.1\adfm.jar. Once I've deployed code on an android emulator, I get the below error. Can someone please?
07-25 13:18:03.812: D/CordovaLog (869): [SEVERE - oracle.adfmf.framework - adf.mf.internal - logError] request: {classname: oracle.adfmf.framework.api.Model; method: evaluateMethodExpression; params: [0: #{pageFlowScope.IBCMSearchBean.getSearchParams}] [1:] [2: {}] [3:] ;} exception: {message: oracle/adf/model/binding/DCBindingContainer (unsupported major.minor version 50.0); the severity: ERROR; .Guy: oracle.adfmf.framework.exception.AdfException; .exception: true ;}}}
The version of the compiler maximum the JDev shows that 1.4. And I'm using version 11.1.2.4.0 for JDeveloper. The JDK version is 1.6.0_24.
Sorry I missed the question!
First of all, to get the value of selectedItem in selectOneChoice do not have another function in the domain controller. Here is an excellent article by Frank that explains this. Or you can use the below function to get the selected value immediately. Here the market is the value of selectOneChoice attribute. I wasn't aware of this method until you have read this article.
{} public void getAndSetMarketValue (market of the object)
ValueExpression ve = (ValueExpression) AdfmfJavaUtilities.getValueExpression ("#{bindings.marketSelectItems}", Object.class);
AmxAttributeBinding attrBinding = (AmxAttributeBinding) ve.getValue (AdfmfJavaUtilities.getAdfELContext ());
access the iterator that populates the list of values in
the selectManyChoice component
AmxIteratorBinding amxListIterator = attrBinding.getIteratorBinding ();
the AmxIteratorBinding is a wrapper for the BasicIterator
iterator which sets out the information we need
ListIterator BasicIterator = amxListIterator.getIterator ();
for each index value, query the name of the service (you can
access and attribute from the line) to display
SelectedValue = string
(String) listIterator.getAttributeValueAtIndex (((New Integer ((String) market))) .intValue (), "Value");
}
Second, you can use #{row} in commandLink's action since it is something that is evaluated when the user clicks on the link and we do not have access to #{line} after that the entire component is rendered. To remedy this give an action for the commandlink which is a function in the bean and the function of bean back to the action of the link selected.
ListOfReports.amx
.......
.......
LoginBean.java
......
public String returnClickValue() {}
Option of string = AdfmfJavaUtilities.evaluateELExpression("#{viewScope.selectedItem}").toString ();
return option;
}
......
-
SelectManyShuttle: get the selected values
Hi all.
My task is to make declarative component (or any other reusable solution) that contains the selected component to many shuttle and should proceed with a treatment of the selected values (IDs and labels). During this operation, I found that this shuttle component returns the bean always and only point index, nothing more.
First of all, I tried MyBean.setSelected and found it is called with list < integer > instead of < SelectItem > list or any similar. These integers is the index 0 of selected lines. Then I tried to valuePassThru, but it triggered a mocking effect only: setSelected receives List < String > with the same values of the index 0 chained. Finally, I tried valueChangeListener and newValues - everything was the same, both in JDeveloper corresponding 11.1.1.5 & 11.1.2.1 with ADFs. Googling did me a lot of links--say, the need to get the values selected from the selectManyShuttle --but nothing that I can use.<af:selectManyShuttle label="" id="sms1" styleClass="AFStretchWidth" value="#{MyBean.selected}" valueChangeListener="#{MyBean.shuttleChangeListener}" valuePassThru="true"> <f:selectItems value="#{attrs.items}" id="si1"/> </af:selectManyShuttle>
Maybe I should get a model and an iteration, but in several tests (for example, ((MyBean) this) .getAttribute ('items')) I failed to locate him. In any case, I would be happy to see that any solution work.What do you get when solve you the EL "#{attrs.items}" in the method of bean? Not sure if you have access to everything or what you get in return, but you can try.
Just put a breakpoint in the method and type the EL in the evaluator 'EL' and see if you get something in return and what type it is. I hope you have the list you put in to fill the shuttle.Timo
-
How to get to an event raised to a ring of text re-selecting value curretly selected?
Hello. I have a ring of text I need to get a triggered event when any text (value) is selected. Now I have a value change event and it works well when choosing a form of different value, current, but what I need is the same event triggered even though I select the same text (value) that has been previously selected. I can't use the mouse resting on the same command, event because it fires the event before any text (value) is selected.
If I create a property node (raise the event of Val (Sgnl)) I can "at a distance", and in this case the value change event for the ring of text will trigger even if I write the same value for the property node (Val (Sgnl)) several times. It's actually the behavior that I would have by clicking on one of the values of the ring of text with the mouse.
Any ideas on how to solve this problem?
Just have a look: it's a very simple way to do what you need to...
-
How to use a parameter query to select and display the data in the table of the façade
Hiiiiii
I am using Access 2007 database
I want to select the specific data in the database using control of the chain as 'select product, size, weight of ProductInfo where barcode (chain control) =?' and also display the same table of façade.I use the connected database toolkit.
I saw the example of the parameterized insert, but it did not help to use parameterized select query, as well as to display data of parameterized select query.I looked for example on parameterized select query, but I don't have any.
So pls guide me how to do this. I would like to know the other method (if any) that the use of parameter query to perform the same thing.
If possble pls share a vi reference.
Thank you!!!HII szewczak
Thanks for the reply
but I did not getsolution in one of your shared links
My problem is solved. There is no need to use the parameter query to select control values
In my case I want to display data from database where bar code is even entered by the user
I use the data function DB TOOL CHOOSE and create the condition of chain based on concatenation of strings -
reload the page when SQL query returns a value
Hello world
the title of this discussion may seem strange, but I'll try to explain why I need this:
A user has the ability to connect on my APEX application. There are several tabs in my application that are visible only if a certain SQL statement returns a value which is not the case by default. The user has also the ability to download a file that is transferred to an external system that analyzes the file and writes the data in the database. During this writing process - which may take several minutes - conditions for some of the tabs to show the will becomes real (-> the query will return a value). When the user refreshes the page manually, the tabs will be displayed. However, I want the tabs will appear automatically when the condition is met.
Is it possible to refresh the page as soon as the query returns a value? It is perhaps possible to check it on the client side and trigger a refresh of the page when the condition is met. It would be even better if only the tabset has been updated, but refreshing the full page is fine as well.
Thank you!
Here is an overview of how it can be done
This is possible thanks to a dynamic action being performed on a timer.
View default tabs and dynamic action hide them on loading the page if they are not to be considered
Create a dynamic action that will execute your query every 5 seconds or more
If the query returns data, you can use the dynamic action to show your tabs using javascript
-
Get blocking detected when waiting for resource query error select...
Hi all
I get an error below each time that the execution of the select query below...
a few times, it will show lock detected while you wait resource and finished...
a few times, it runs and give the result...
but all the time, he writes a journal to alert to the alert
Plesae suggest how to solve the problem...
Thanks in advance
.
Env: Linux / Oracle 11.2.0.3.3
.
.
Alerts log error:
Errors in the /u01/oracle/oracle/diag/rdbms/bdrdb/bdrdb/trace/bdrdb_p017_6076.trc file:
ORA-00060: Deadlock detected while you wait resource
ORA-10387: interruption of server a (normal) parallel query
Trace file... information bdrdb_p017_6076.trc:
Trace file /U01/Oracle/Oracle/diag/RDBMS/bdrdb/bdrdb/trace/bdrdb_p017_6076.TRC
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With partitioning, OLAP, Data Mining and Real Application Testing options
ORACLE_HOME = /u01/oracle/oracle/product/11.2.0/dbhome_1
Name of the system: Linux
Name of the node: bdrdb.cteplindia.com
News Release: 2.6.18 - 308.el5PAE
Version: #1 SMP kills Jan 27 17:40:09 EST 2012
Machine: i686
Instance name: bdrdb
Redo thread mounted by this instance: 1
Oracle process number: 92
Unix process pid: 6076, image: [email protected] (P017)
2013-11-04 23:18:57.915
SESSION ID: (423.59970) 2013-11-04 23:18:57.915
CUSTOMER ID :() 23:18:57.915 2013-11-04
SERVICE NAME: (bdrdb) 2013-11-04 23:18:57.915
MODULE NAME :() 23:18:57.915 2013-11-04
ACTION NAME :() 23:18:57.915 2013-11-04
.
.
2013-11-04 23:18:57.915
DEADLOCK DETECTED (ORA-00060)
.
[Transaction blocking]
Deadlock graph event:
-Blockers - Waiter (s).
Resource name process session held process session expected holds expected
PS-00000001-00000011 92 423 S 33 128 S X
BF-2ed08c01-00000000 33 128 S 92 423 S X
session 423: C 005-0001-00081126 session 128: DONE 01/21/67 D 23
session 128: MADE 21/01/67 D session 23 423: have you 0001-005 C-00081126
DEADLOCK DETECTED (ORA-00060)
[Transaction blocking]
Deadlock graph event:
-Blockers - Waiter (s).
Resource name process session held process session expected holds expected
PS-00000001-00000011 92 423 S 33 128 S X
BF-2ed08c01-00000000 33 128 S 92 423 S X
session 423: C 005-0001-00081126 session 128: DONE 01/21/67 D 23
session 128: MADE 21/01/67 D session 23 423: have you 0001-005 C-00081126
Expected number of lines:
Session 423: no line
Session 128: obj - rowid = 00021DC1 - AAAh3BAAVAAAQL/AAA
(dictionary objn - 138689, file - 21, block - 66303, machine slot - 0)
-Information for OTHER waiting sessions-
Session 128:
SID: 128 ser: 46176 audsid: 1836857 user: 102/DBLOCAL
indicators: (0 x 8000041) USR /-flags_idl: (0 x 1) BSY /-/ - /-/ - / -.
Flags2: (0 x 40009) - /-/ INC.
PID: 33 info o/s: user: oracle, duration: UNKNOWN, ospid: 31611
image: [email protected]
Customer details:
Info of the o/s: user: hidden, term: hidden, ospid: 5924:568
machine: hidden program: Toad.exe
application name: TOAD background query session, the hash value = 526966934
SQL courses
application name: TOAD background query session, the hash value = 526966934
SQL courses
SELECT DISTINCT B_FP_TEST. TEST_ID
OF B_FP_TEST.
B_USER_INFO,
J_FP_INVESTIGATOR,
L_TEST_STATUS,
L_ATMS_TEST_TYPE,
j_op_test_anml
WHERE B_FP_TEST. TEST_ID = J_FP_INVESTIGATOR. TEST_ID
AND B_FP_TEST. TEST_TYPE_ID = L_ATMS_TEST_TYPE. ATMS_TEST_TYPE_ID
AND B_USER_INFO. B_USER_INFO_ID = J_FP_INVESTIGATOR. INVESTIGATOR_ID
AND B_FP_TEST. BATCH = L_TEST_STATUS. BATCH
AND B_FP_TEST.IS_DELETED =: "SYS_B_00."
AND B_FP_TEST. TEST_NUM NOT IN (: 'SYS_B_01,': 'SYS_B_02': 'SYS_B_03')
AND L_ATMS_TEST_TYPE.IS_DELETED =: "SYS_B_04."
AND J_FP_INVESTIGATOR.is_pi =: "SYS_B_05."
AND L_TEST_STATUS. STATUS (: 'SYS_B_06': 'SYS_B_07': 'SYS_B_08')
AND j_op_test_anml.test_id = B_FP_TEST. TEST_ID
.
.
-End of information for OTHER waiting sessions-
.
.
2013-11-04 23:18:57.916
dbkedDefDump(): from a dump of diagnosis non-event (flags = 0 x 0, level = 3, mask = 0 x 0)
-Error stack dump-
ORA-00060: Deadlock detected while you wait resource
ORA-10387: interruption of server a (normal) parallel query
-SQL statement (none).
Run SQL information not available - no cursor.
-Call trace stack memory-
call call entered the argument values in hex
location point type (? means dubious value)
More...
.
.
.
.
Query:
SELECT DISTINCT B_FP_TEST. TEST_ID
OF B_FP_TEST.
B_USER_INFO,
J_FP_INVESTIGATOR,
L_TEST_STATUS,
L_ATMS_TEST_TYPE,
j_op_test_anml
WHERE B_FP_TEST. TEST_ID = J_FP_INVESTIGATOR. TEST_ID
AND B_FP_TEST. TEST_TYPE_ID = L_ATMS_TEST_TYPE. ATMS_TEST_TYPE_ID
AND B_USER_INFO. B_USER_INFO_ID = J_FP_INVESTIGATOR. INVESTIGATOR_ID
AND B_FP_TEST. BATCH = L_TEST_STATUS. BATCH
AND B_FP_TEST.IS_DELETED = 0
AND B_FP_TEST. TEST_NUM NOT IN (1, 2, 99)
AND L_ATMS_TEST_TYPE.IS_DELETED = 0
AND J_FP_INVESTIGATOR.is_pi = 1
AND L_TEST_STATUS. STATUS ('regular', 'In progress', 'completed')
AND j_op_test_anml.test_id = B_FP_TEST. TEST_ID
AND ((j_op_test_anml.end_date ENTRE TO_DATE (28 octobre 2013 ") - 1))
AND TO_DATE (4 November 2013 ') + 1).
OR (j_op_test_anml.start_date BETWEEN TO_DATE (28 October 2013 "") - 1).
AND TO_DATE (4 November 2013 ') + 1).
OR (TO_DATE (28 October 2013') BETWEEN j_op_test_anml.start_date)
AND j_op_test_anml.end_date)
OR (TO_DATE (4 November 2013") BETWEEN j_op_test_anml.start_date)
(AND j_op_test_anml.end_date))
AND L_ATMS_TEST_TYPE.IS_DELETED = 0
AND B_FP_TEST. DATASOURCE_ID = 9
.
.
.
Exp query plan:
Hash value of plan: 3398228788
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
| ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time | Pstart. Pstop | TQ | IN-OUT | PQ Distrib.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1501 | 102K | 1929 (1) | 00:00:24 | | | | | |
| 1. HASH UNIQUE | | 1501 | 102K | 1929 (1) | 00:00:24 | | | | | |
| 2. CONCATENATION. | | | | | | | | | |
| 3. COORDINATOR OF PX | | | | | | | | | | |
| 4. PX SEND QC (RANDOM). : TQ30005 | 241. 16870 | 800 (1) | 00:00:10 | | | Q3, 05 | P > S | QC (RAND) |
|* 5 | HASH JOIN | | 241. 16870 | 800 (1) | 00:00:10 | | | Q3, 05 | SVCP | |
| 8 2 PX RECEIVE | | 246. 15990. 797 (1) | 00:00:10 | | | Q3, 05 | SVCP | |
| 7. PX SEND HASH | : TQ30004 | 246. 15990. 797 (1) | 00:00:10 | | | Q3, 04 | P > P | HASH |
|* 8 | HASH JOIN | | 246. 15990. 797 (1) | 00:00:10 | | | Q3, 04 | SVCP | |
| 9. RECEIVE PX | | 573. 29223 | 793 (1) | 00:00:10 | | | Q3, 04 | SVCP | |
| 10. PX SEND HASH | : TQ30003 | 573. 29223 | 793 (1) | 00:00:10 | | | Q3, 03 | P > P | HASH |
| * 11 | HASH JOIN | | 573. 29223 | 793 (1) | 00:00:10 | | | Q3, 03 | SVCP | |
| 12. KIND OF BUFFER. | | | | | | | Q3, 03 | ISSUE | |
| 13. RECEIVE PX | | | | | | | | Q3, 03 | SVCP | |
| 14. PX SEND BROADCAST | : TQ30000 | | | | | | | | S > P | BROADCAST |
| 15. NESTED LOOPS | | | | | | | | | | |
| 16. NESTED LOOPS | | 485. 20855 | 781 (0) | 00:00:10 | | | | | |
| 17. TABLE ACCESS BY INDEX ROWID | J_OP_TEST_ANML | 485. 10185 | 296 (0) | 00:00:04 | ROWID | ROWID | | | |
| * 18. INDEX RANGE SCAN | IDX$ $_2D190001 | 485. | 4 (0) | 00:00:01 | | | | | |
| * 19. INDEX UNIQUE SCAN | FT_TEST_ID_PK | 1. | 0 (0) | 00:00:01 | | | | | |
| * 20. TABLE ACCESS BY INDEX ROWID | B_FP_TEST | 1. 22. 1 (0) | 00:00:01 | ROWID | ROWID | | | |
| 21. ITERATOR BLOCK PX | | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q3, 03 | ISSUE | |
| * 22. TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q3, 03 | SVCP | |
| 23. KIND OF BUFFER. | | | | | | | Q3, 04 | ISSUE | |
| 24. RECEIVE PX | | 3. 42. 3 (0) | 00:00:01 | | | Q3, 04 | SVCP | |
| 25. PX SEND HASH | : TQ30001 | 3. 42. 3 (0) | 00:00:01 | | | | S > P | HASH |
| * 26. TABLE ACCESS FULL | L_TEST_STATUS | 3. 42. 3 (0) | 00:00:01 | | | | | |
| 27. KIND OF BUFFER. | | | | | | | Q3, 05 | ISSUE | |
| 28. PX RECEIVE | | 30. 150. 3 (0) | 00:00:01 | | | Q3, 05 | SVCP | |
| 29. PX SEND HASH | : TQ30002 | 30. 150. 3 (0) | 00:00:01 | | | | S > P | HASH |
| * 30 | TABLE ACCESS FULL | L_ATMS_TEST_TYPE | 30. 150. 3 (0) | 00:00:01 | | | | | |
| 31. NESTED LOOPS | | | | | | | | | | |
| 32. NESTED LOOPS | | 3. 210 | 329 (1) | 00:00:04 | | | | | |
| 33. NESTED LOOPS | | 3. 195. 329 (1) | 00:00:04 | | | | | |
| * 34 | HASH JOIN | | 2. 114. 325 (1) | 00:00:04 | | | | | |
| 35. NESTED LOOPS | | | | | | | | | | |
| 36. NESTED LOOPS | | 6. 258. 322 (1) | 00:00:04 | | | | | |
| 37. RANGE OF SINGLE PARTITION | | 6. 126. 316 (1) | 00:00:04 | 7. 7. | | |
| * 38 | TABLE ACCESS FULL | J_OP_TEST_ANML | 6. 126. 316 (1) | 00:00:04 | 7. 7. | | |
| * 39 | INDEX UNIQUE SCAN | FT_TEST_ID_PK | 1. | 0 (0) | 00:00:01 | | | | | |
| * 40 | TABLE ACCESS BY INDEX ROWID | B_FP_TEST | 1. 22. 1 (0) | 00:00:01 | ROWID | ROWID | | | |
| * 41. TABLE ACCESS FULL | L_TEST_STATUS | 3. 42. 3 (0) | 00:00:01 | | | | | |
| * 42 | TABLE ACCESS BY INDEX ROWID | J_FP_INVESTIGATOR | 1. 8. 2 (0) | 00:00:01 | | | | | |
| * 43. INDEX RANGE SCAN | FI_TEST_ID_PK | 1. | 1 (0) | 00:00:01 | | | | | |
| * 44 | INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK | 1. | 0 (0) | 00:00:01 | | | | | |
| * 45 | TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE | 1. 5. 1 (0) | 00:00:01 | | | | | |
| 46. COORDINATOR OF PX | | | | | | | | | | |
| 47. PX SEND QC (RANDOM). : TQ20003 | | | | | | | Q2, 03 | P > S | QC (RAND) |
| 48. NESTED LOOPS | | | | | | | | Q2, 03 | SVCP | |
| 49. NESTED LOOPS | | 33. 2310 | 399 (2) | 00:00:05 | | | Q2, 03 | SVCP | |
| * 50 | HASH JOIN | | 33. 2145. 397 (2) | 00:00:05 | | | Q2, 03 | SVCP | |
| 51. RECEIVE PX | | 78. 3978 | 393 (1) | 00:00:05 | | | Q2, 03 | SVCP | |
| 52. PX SEND HASH | : TQ20002 | 78. 3978 | 393 (1) | 00:00:05 | | | Q2, 02 | P > P | HASH |
| * 53 | HASH JOIN | | 78. 3978 | 393 (1) | 00:00:05 | | | Q2, 02 | SVCP | |
| 54. KIND OF BUFFER. | | | | | | | Q2, 02 | ISSUE | |
| 55. RECEIVE PX | | | | | | | | Q2, 02 | SVCP | |
| 86 M | PX SEND BROADCAST | : TQ20000 | | | | | | | | S > P | BROADCAST |
| 57. NESTED LOOPS | | | | | | | | | | |
| 58. NESTED LOOPS | | 66. 2838 | 382 (1) | 00:00:05 | | | | | |
| 59. RANGE OF SINGLE PARTITION | | 66. 1386 | 316 (1) | 00:00:04 | 7. 7. | | |
| * 60 | TABLE ACCESS FULL | J_OP_TEST_ANML | 66. 1386 | 316 (1) | 00:00:04 | 7. 7. | | |
| * 61. INDEX UNIQUE SCAN | FT_TEST_ID_PK | 1. | 0 (0) | 00:00:01 | | | | | |
| * 62 | TABLE ACCESS BY INDEX ROWID | B_FP_TEST | 1. 22. 1 (0) | 00:00:01 | ROWID | ROWID | | | |
| 63. ITERATOR BLOCK PX | | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q2, 02 | ISSUE | |
| * 64 | TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q2, 02 | SVCP | |
| 65. KIND OF BUFFER. | | | | | | | Q2, 03 | ISSUE | |
| 66. RECEIVE PX | | 3. 42. 3 (0) | 00:00:01 | | | Q2, 03 | SVCP | |
| 67. PX SEND HASH | : TQ20001 | 3. 42. 3 (0) | 00:00:01 | | | | S > P | HASH |
| * 68 | TABLE ACCESS FULL | L_TEST_STATUS | 3. 42. 3 (0) | 00:00:01 | | | | | |
| * 69 | INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK | 1. | 0 (0) | 00:00:01 | | | Q2, 03 | SVCP | |
| * 70 | TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE | 1. 5. 1 (0) | 00:00:01 | | | Q2, 03 | SVCP | |
| 71. COORDINATOR OF PX | | | | | | | | | | |
| 72. PX SEND QC (RANDOM). : TQ10003 | | | | | | | Q1, 03 | P > S | QC (RAND) |
| 73. NESTED LOOPS | | | | | | | | Q1, 03 | SVCP | |
| 74. NESTED LOOPS | | 33. 2310 | 399 (2) | 00:00:05 | | | Q1, 03 | SVCP | |
| * 75 | HASH JOIN | | 34. 2210 | 397 (2) | 00:00:05 | | | Q1, 03 | SVCP | |
| 76. RECEIVE PX | | 78. 3978 | 393 (1) | 00:00:05 | | | Q1, 03 | SVCP | |
| 77. PX SEND HASH | : TQ10002 | 78. 3978 | 393 (1) | 00:00:05 | | | Q1, 02 | P > P | HASH |
| * 78 | HASH JOIN | | 78. 3978 | 393 (1) | 00:00:05 | | | Q1, 02 | SVCP | |
| 79. KIND OF BUFFER. | | | | | | | Q1, 02 | ISSUE | |
| 80. RECEIVE PX | | | | | | | | Q1, 02 | SVCP | |
| 81. PX SEND BROADCAST | : TQ10000 | | | | | | | | S > P | BROADCAST |
| 82. NESTED LOOPS | | | | | | | | | | |
| 83. NESTED LOOPS | | 66. 2838 | 382 (1) | 00:00:05 | | | | | |
| 84. RANGE OF SINGLE PARTITION | | 66. 1386 | 316 (1) | 00:00:04 | 7. 7. | | |
| * 85 | TABLE ACCESS FULL | J_OP_TEST_ANML | 66. 1386 | 316 (1) | 00:00:04 | 7. 7. | | |
| * 86 | INDEX UNIQUE SCAN | FT_TEST_ID_PK | 1. | 0 (0) | 00:00:01 | | | | | |
| * 87. TABLE ACCESS BY INDEX ROWID | B_FP_TEST | 1. 22. 1 (0) | 00:00:01 | ROWID | ROWID | | | |
| 88. ITERATOR BLOCK PX | | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q1, 02 | ISSUE | |
| * 89 | TABLE ACCESS FULL | J_FP_INVESTIGATOR | 70382 | 549KO | 11 (0) | 00:00:01 | | | Q1, 02 | SVCP | |
| 90. KIND OF BUFFER. | | | | | | | Q1, 03 | ISSUE | |
| 91. RECEIVE PX | | 5: 42. 3 (0) | 00:00:01 | | | Q1, 03 | SVCP | |
| 92. PX SEND HASH | : TQ10001 | 5: 42. 3 (0) | 00:00:01 | | | | S > P | HASH |
| * 93 | TABLE ACCESS FULL | L_TEST_STATUS | 5: 42. 3 (0) | 00:00:01 | | | | | |
| * 94 | INDEX UNIQUE SCAN | L_ATMS_TEST_TYPE_PK | 1. | 0 (0) | 00:00:01 | | | Q1, 03 | SVCP | |
| * 95 | TABLE ACCESS BY INDEX ROWID | L_ATMS_TEST_TYPE | 1. 3: 1 (0) | 00:00:01 | | | Q1, 03 | SVCP | |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Information of predicates (identified by the operation identity card):
---------------------------------------------------
5 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")
8 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')
11 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")
18 - access("J_OP_TEST_ANML".") Start_date"> = TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-11-05)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss"))
19 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")
20 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND
'B_FP_TEST '. ("' TEST_NUM" <>99)
22 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)
26 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"
30 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)
34 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')
38 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-10-27 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "' End_date ' < = TO_DATE (' 2013-11-05)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "Start_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "
LNNVL ("J_OP_TEST_ANML". "Start_date" < = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')))) "
39 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")
40 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND
'B_FP_TEST '. ("' TEST_NUM" <>99)
41 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"
42 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)
43 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")
44 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")
45 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)
50 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')
53 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")
60 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-11-04 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-11-04)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "End_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "
LNNVL ("J_OP_TEST_ANML". "End_date" < = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL ("J_OP_TEST_ANML".) " Start_date"> = TO_DATE (' 2013-10-27)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss")) or LNNVL("J_OP_TEST_ANML".") Start_date"< = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))))
61 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")
62 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND
'B_FP_TEST '. ("' TEST_NUM" <>99)
64 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)
68 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"
69 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")
70 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)
75 - access("B_FP_TEST".") BATCH "=" L_TEST_STATUS. " ("' BATCH ')
78 - access("B_FP_TEST".") TEST_ID "=" J_FP_INVESTIGATOR. " ("' TEST_ID")
85 - filter("J_OP_TEST_ANML".") End_date"> = TO_DATE(' 2013-10-28 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND"J_OP_TEST_ANML. " "" Start_date "< = TO_DATE (' 2013-10-28)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss") AND (LNNVL ("J_OP_TEST_ANML". "End_date" > = TO_DATE (' 2013-11-04 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) OR) "
LNNVL ("J_OP_TEST_ANML". "Start_date" < = TO_DATE (' 2013-11-04 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND (LNNVL ("J_OP_TEST_ANML".) " End_date"> = TO_DATE (' 2013-10-27)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss")) or LNNVL("J_OP_TEST_ANML".") End_date"< = TO_DATE (' 2013-11-05 00:00:00 ',' syyyy-mm-dd hh24:mi:ss'))) AND)
(LNNVL ("J_OP_TEST_ANML". "Start_date" > = TO_DATE (' 2013-10-27 00:00:00 ',' syyyy-mm-dd hh24:mi:ss')) or LNNVL ("J_OP_TEST_ANML".) " Start_date"< = TO_DATE (' 2013-11-05)
00:00:00 ', "syyyy-mm-dd hh24:mi:ss")))
86 - access("J_OP_TEST_ANML".") TEST_ID "=" B_FP_TEST. " ("' TEST_ID")
87 - filter("B_FP_TEST".") DATASOURCE_ID '= 9 AND 'B_FP_TEST'." ' IS_DELETED '= 0 AND 'B_FP_TEST'.' <>TEST_NUM ' 1 AND 'B_FP_TEST '. "" TEST_NUM "<>2 AND
'B_FP_TEST '. ("' TEST_NUM" <>99)
89 - filter("J_FP_INVESTIGATOR".") IS_PI "= 1)
93 - filter("L_TEST_STATUS".") STATUS "="Finished"OR"L_TEST_STATUS"". "" STATUS '= 'In progress' OR 'L_TEST_STATUS'." STATUS "="Regular")"
94 - access("B_FP_TEST".") TEST_TYPE_ID "=" L_ATMS_TEST_TYPE. " ("' ATMS_TEST_TYPE_ID")
95 - filter("L_ATMS_TEST_TYPE".") IS_DELETED "= 0)
aanto wrote:
Thanks for the update... but if we perform also using Toad... showing the same error...
Thanks for this update, but it does not change the reality.
If it hurts when you push you in the eyes, the only way to stop the pain should stop poking you in the eye.
Oracle is not related ORA-00060 just to make life more difficult.
ORA-000600 is thrown when a deadlock between two session is detected. PERIOD!
The order in which the DML is run needs to change.
-
assignment of sequential value that resets to a group of records
Hello all and happy FRIDAY!
I do a conversion of data to a new system and I can't seem to come with a query.
Running Oracle 10.2
Sample data:
Do select * at this stage will give you the elements of nulls for the third column.create table test (GRP number, PART varchar2(20), SEQ number); insert into test values(9000, 'lskdjf', null); insert into test values(9000, 'alsdk', null); insert into test values(9000, '492kjsfjsldk', null); insert into test values(9000, 'lkjasdf0982j', null); insert into test values(9001, 'likfjajsd', null); insert into test values(9001, '234-092838', null); insert into test values(8934, '000-192893aj', null); insert into test values(8934, 'anotherpart', null); insert into test values(8934, 'jjjj0-aa-2001', null); insert into test values(8934, 'encifudy', null); insert into test values(8934, 'asfdjslkjdfklsj', null); insert into test values(8934, 'lksjdflj', null); insert into test values(4736, 'l;ask---jdflasj', null); commit; Select * from test;
Problem:
I'm trying to run a query that spits out a sequence for each "group" of records. If there are 5 records in a group, I would like the sequence start at 1 and go to 5... may be ordered by a party. (not quite sure that the command, but to do babysteps here): P
Here is an example of the output data, I would like that in the example above:
In that result, SEQ is not applied to the drive control part, but ultimately, this might be something I would do. So far only community-eager to get these figures here. I read using rankover(), but it's still a bit confusing for me on how it works. I'll go than I suspect it's probably what I'll have to use a search.GRP PART SEQ 9000 lskdjf 1 9000 alsdk 2 9000 492kjsfjsldk 3 9000 lkjasdf0982j 4 9001 likfjajsd 1 9001 234-092838 2 8934 000-192893aj 1 8934 anotherpart 2 8934 jjjj0-aa-2001 3 8934 encifudy 4 8934 asfdjslkjdfklsj 5 8934 lksjdflj 6 4736 l;ask---jdflasj 1
In the end, this is part of a slider that is powered by a bulk collect. I might be able to fill this SEQ in PL/SQL, but I thought it would be easier to get them just at the level of the query so that they are already part of the collection, instead of having to build the logic to create this numbering system prior to insertion of an intermediate table.
Anyhoo... any help would be greatly appreciated! If I've omitted something or am not clear anyway, please let me know! Thank you!
Published by: dvsoukup on July 27, 2012 16:25Hello
dvsoukup wrote:
Running Oracle 10.2Sample data:
create table test (GRP number, PART varchar2(20), SEQ number); insert into test values(9000, 'lskdjf', null); ...
Thanks for posting your version and CREATE TABLE and INSERT PMT ts; It's very useful!
>Do select * at this stage will give you the elements of nulls for the third column.
Problem:
I'm trying to run a query that spits out a sequence for each "group" of records. If there are 5 records in a group, I would like the sequence start at 1 and go to 5... may be ordered by a party. (not quite sure that the command, but to do babysteps here): P
I read using rankover(), but it's still a bit confusing for me on how it works.You got that right! Analytical functions are looking very strange and confusing at first. After awhile, they don't seem so strange, and then they get even less confusion.
One thing to remember: "PARTITION OF x" (this is always optional) means that each value of x is a world full. It's like a separate query is made for each value of x, and when they are all finished, the results are clauses together. In this case, you want to PARTITION BY grp.I'll go than I suspect it's probably what I'll have to use a search.
You are very close; only, as the first response said, it is not RANK you want, but its close relative ROW_NUMBER. The difference between the two, it's how they deal with the links. If you have duplicates, RANK assigns a number in doubles. I suppose you want the unique numbers, even if you have identical parts on the same grp.
In the end, this is part of a slider that is powered by a bulk collect. I might be able to fill this SEQ in PL/SQL, but I thought it would be easier to get them just at the level of the query so that they are already part of the collection, instead of having to build the logic to create this numbering system prior to insertion of an intermediate table.
It is quite easy to assign numbers when you generate the table.
If the situation is what you have posted, that is your table already exists, but the number of seq is not filled yet, then you can do:
MERGE INTO test dst USING ( SELECT grp , part , ROW_NUMBER () OVER ( PARTITION BY grp ORDER BY part ) AS seq FROM test ) src ON ( src.grp = dst.grp AND src.part = dst.part ) WHEN MATCHED THEN UPDATE SET dst.seq = src.seq ;
The MERGE statement preceding assumes that the combination (grp, part) is unique.
Once executing, this query:SELECT * FROM test ORDER BY grp , part ;
will these results:
` GRP PART SEQ ---------- -------------------- ---------- 4736 l;ask---jdflasj 1 8934 000-192893aj 1 8934 anotherpart 2 8934 asfdjslkjdfklsj 3 8934 encifudy 4 8934 jjjj0-aa-2001 5 8934 lksjdflj 6 9000 492kjsfjsldk 1 9000 alsdk 2 9000 lkjasdf0982j 3 9000 lskdjf 4 9001 234-092838 1 9001 likfjajsd 2
The USING clause above is almost identical to the query, published in the last post, but in the analytic clause, instead of "ORDER BY grp", part it says "COMMANDER PARTIALLY. He never has any sense to PARTITION BY and ORDER BY the same column in the same function. Why? Discuss.
-
Assigning selected value of tree to an element node
Hi guys,.
I want to assign the value of the node in the tree selected to a page element. This can be a text box or label (view only). How can I do? I tried to use the 'Element of Page node selected' property that is available on the attributes of the tree. But I couldn't assign the value without refreshing the entire page.
You have an idea?
Thank you.I'll assume that you have a table in your database with columns (ID, PARENT_ID, VALUE) or something like that.
OK, first go to your region of the tree and look at the SQL query. You will see that it is link attribute. By default, link attribute is set to redirect you to another or even from one page.
You need modify this attribute of link with something like this:' javascript:pageItemValue('_||) 'VALUE ' | ')' As link
So click on the tree node, you ask function javascript and passing as the parameter value.
Now, you just need to be pageItemValue. Go to Edit Page, header HTML and write this function:
You can change (P1_ITEM) at what you want.
-
present the need to alert button if not select value rather than send blank page
I have a product page that sends to a page of product details, details of the page has also all other products in the category... The problem is when they land on the page it shows their selected product but so that information to be transmitted to the cart they need to select the product first, even if they are already on the page (because there are some other produts it) right now if they choose their product and just hit select it sends to a blank page. I need guest and say "(Please select create all first).
It is of the form
< form id = "FormName" action = "" method = "get" name = "FormName" > "
< table >
< tr valign = "middle" >
< td width = "30" height = "40" class = "meduimTXT" > 1. < table >
< td width = "190" align = "left" > < div align = "left" >
< select name = 'ID' class = 'text' id = "selectName" >
< option value = "select Design" > select Design < / option >
<? PHP
@mysql_select_db ($database_beau, $beau);
$query = sprintf ("SELECT * FROM beauProd WHERE the CatID = '%s'", GetSQLValueString ($row_Recordset1 ['CatID'], "int") ");
$results = mysql_query ($query, $beau) or die (mysql_error ());
$productsInCategory = array();
While ($row = {mysql_fetch_array ($results))}
[$productsInCategory] = $row ['ID'];
? >
< option value = "<?" PHP echo $row ['ID'];? > "> <?" PHP echo $row ['name'];? > < / option >
<? PHP
}
? >
< / select >
< / div > < table >
"" < td width = "190" align = "left" > < input type = "image" src = "... / pictures / select design.gif ' border = '0' name ="button"id ="button"value ="sΘlectionner the new design"/ > < table >
< /tr >
< /table >
< / make >
Thanks in advance
He made
function selection_warn() {
if (document.getElementById("selectName").value == 'Select Design') {
alert('Please select design first');
return false;
} else {
return true;
}
}
onclick = "return selection_warn();"
-
Let's say I have a column with different values, now I want to find a value located most, how is the best way to make this request?
Is the best solution to do this way:
As you can see that the value 'a' is more time in table T, then the query must exit the 'a' and nothing more. If the number of occurrences of the 'a' and 'b' would be the same, then the application should exit one of them, no matter which.WITH t AS (SELECT 'a' AS VALUE FROM Dual UNION ALL SELECT 'b' FROM Dual UNION ALL SELECT 'a' FROM Dual) SELECT VALUE FROM (SELECT t.Value, COUNT(*) AS Cnt FROM t GROUP BY t.Value ORDER BY Cnt DESC ) WHERE Rownum = 1
As you can see query now does not seem to be well optimized, I think.
(Oracle 10g)Or
SQL> with t as ( select 'a' as value from dual union all select 'b' from dual union all select 'b' from dual ) -- -- select max (value) keep (dense_rank last order by count (*)) value, count(*) cnt from t group by value / VALUE CNT ----- ---------- b 2 1 row selected.
Published by: MichaelS on December 14, 2010 10:39
CNT added.
-
How to record the selected value in select?
How can I save the value chosen in a selection box in a form and save it as a parameter to pass to a page of action? Here is the code for the drop down menu. I have a question earlier in the code that populates the list with a database of movies MovieTitle field. It works well, brings up the list and has the choice in the box. But I'm not record anywhere and will. Can not find a way.
<!--> list of films for the drop-down list
< select name = "MovieTitle".
< option value = "" > < / option >
< cfoutput query = "movie_list" >
< option value = "#FilmID #" > #MovieTitle # < / option >
< / cfoutput >->Thanks for any help!
praemorsa
Well, if you really wanted was the title of the film, you can specify that in the value attribute of the option instead of FilmID. But often, we want to use primary keys to ensure uniqueness and to facilitate things in other respects. If this is the case, your action page could fetch the title of the database using FilmID as a filter in your query. Which of them is the best approach really depends on what happens in your pages.
Dave Watts, CTO, Fig Leaf Software
Fig Leaf Software is a small business Veteran - Owned (VOSB) on
GSA Schedule and provides high caliber of the authorized seller
instruction at our training centers, online, or on-site.
Read this before posting:
-
Value that is used when you apply a gradient to an RGB image map
Hello:
I'm doing a classification of the color in Photoshop using the map of gradient, so the colors of certain range in the initial image corresponds to a given color chosen Gradient of.
The final product is somehow predictable if the original image is an image in grayscale. However, if the original scale is a RGB image, value that will be used to determine the color applied to each pixel of the slope?
There are several ways to calculate the luminosity of an RGB image, such as
(0.2126*R) + (0.7152*G) + (0.0722*B)
. I tried to use some, but none of them can be used to predict the actual color used by Photoshop to generate gradient.Does anyone know the formula used by Photoshop to determine with a pixel RGB is the color?
Thank you
Shane Li
About ((red) *.3 + (green) *.59 + (blue) *. 11)
-
Separate the values that are not in the hierarchy...
Hi all
Please help me build the following query:
Parent child
==== ===
10 20
20 30
30 40
50 60
70 80
etc... In the above data we ensure there's a great single parent say 10 and values 50,60,70,80 etc are not attached to the grandparent 10. so I need to display values that are forgotten to fix on the Top 10 of node that is to say, here 50,60,70,80 etc. If my query is useful in retreving these values then I can attach them to the hierarchy.
Thanks in advance.
Kind regards
KalyanSQL>WITH t AS 2 (SELECT 10 AS par, 20 AS chi FROM DUAL UNION ALL 3 SELECT 20, 30 FROM DUAL UNION ALL 4 SELECT 30, 40 FROM DUAL UNION ALL 5 SELECT 50, 60 FROM DUAL UNION ALL 6 SELECT 70, 80 FROM DUAL) 7 SELECT * 8 FROM t 9 WHERE chi NOT IN(SELECT chi 10 FROM t 11 CONNECT BY PRIOR chi = par 12 START WITH par = 10); PAR CHI ---------- ---------- 50 60 70 80
HTH, Urs
Maybe you are looking for
-
Satellite P300: Microsoft Windows Media Player problems
Hi, I have trouble getting all the sounds of WMP 11 after about 10-15 seconds. I can get sound for 10 seconds and then no sound, but WMP still continues to play. Same thing when you try headphones. I have no trouble hearing my TV modem sounds and oth
-
How can I change the sort order in the Photos?
How can I change the sort order in the Photos? I would like to have more recent photos at the top of the screen instead of at the bottom.
-
2b29wm HP 2000: installation of a new graphics card
Recently, I replaced my hard drive for better preformance, I want to replace my graphics card, but I heard that some laptops may not have to replace. I looked on the internet to see if my cell phone is one of the types that could not have replaced th
-
Hello Wondering if you could help me with my problem. I am developing an application for data logging. The user will look at the actual data are read from a card thermocouple CDAQ and when it is happy that the temperature conditions are set, press a
-
2.6 MovieMaker - how to make a break in the audio?
I need a space of breathing between two video clips. I tried to use a melted transition but the next clip audio arrives too early. It is a way to start the next clip a second or two later he wants to naturally?