To return the rows less value and the next line of the value 'hungry '.
I'm about 10 gr 2My best here trying to just do a single SQL rather than writing PL/SQL. I know it's possible, that I'm not good at SQL past oracle 8i. I have searched the forums and found many examples for the beaches and dates to help connect by level, but nothing specifically related to the scales of value.
Basically I have a table with the number of employees and approval limits:
with a as (select 12345 emp_no,1000 val from dual
UNION select 12346,5000 from dual UNION select 12347,9999 from dual)
select * from a
ReturnsEMP_NO VAL
------- ---------------
12345 1000
12346 5000
12347 9999
I want a SQL statement that returns all lines less that the & parameter, but also the line of 'the child' who, as "greater" as the largest value of the value to be less than the value parameter.It is probably easier to show examples.
If & parameter was broadcast then 2342
EMP_NO VAL
------- ---------------
12345 1000
12346 5000
If & parameter was broadcast then 7898EMP_NO VAL
------- ---------------
12345 1000
12346 5000
12347 9999
If & parameter was broadcast then 10EMP_NO VAL
------- ---------------
12345 1000
If & parameter was broadcast and 788777No rows returned
Basically, I'm trying to return the chain of trust that a Bill will have to cross before it can be approved until the & amount of parameter.Tried to connect, even lead function. Request for assistance from the gurus to do things. Hope that this could also help others.
Published by: user13007502 on February 8, 2012 04:56
Published by: user13007502 on February 8, 2012 04:58
Hello
Here's a way (very similar to what Peter posted previously):
SELECT *
FROM a
WHERE val <= (
SELECT MIN (val)
FROM a
WHERE val > 3000 -- or whatever
)
;
If the parameter is greater than any what val in the table, then the scalar subquery terturn will be NULL, and the WHERE clause will never real.
Tags: Database
Similar Questions
-
ORA-01422 exactly fetch returned more rows than expected
Hi all
Some1 can you please suggest what is the difference between "ORA-01422 exactly fetch returned more rows than expected" and too many errors of lines.
Concerning
ArpitTOO_MANY_ROWS is a predefined exception that allows to capture the ORA-01422. It simply means that we don't need to declare our own exception to cope.
SQL> DECLARE 2 3 lv_Dummy dual.dummy%TYPE; 4 5 BEGIN 6 7 SELECT 8 dummy 9 INTO 10 lv_Dummy 11 FROM 12 ( SELECT dummy FROM DUAL UNION ALL 13 SELECT dummy FROM DUAL 14 ); 15 END; 16 / DECLARE * ERROR at line 1: ORA-01422: exact fetch returns more than requested number of rows ORA-06512: at line 7 SQL> set serveroutput on SQL> DECLARE 2 3 lv_Dummy dual.dummy%TYPE; 4 5 BEGIN 6 7 SELECT 8 dummy 9 INTO 10 lv_Dummy 11 FROM 12 ( SELECT dummy FROM DUAL UNION ALL 13 SELECT dummy FROM DUAL 14 ); 15 EXCEPTION 16 WHEN TOO_MANY_ROWS THEN 17 dbms_output.put_line('TOO_MANY_ROWS is built in exception to allow us to capture ORA-01422'); 18 19 END; 20 / TOO_MANY_ROWS is built in exception to allow us to capture ORA-01422 PL/SQL procedure successfully completed. SQL> DECLARE 2 3 lv_Dummy dual.dummy%TYPE; 4 lex_TooManyRows EXCEPTION; 5 6 PRAGMA EXCEPTION_INIT(lex_TooManyRows, -1422); 7 BEGIN 8 9 SELECT 10 dummy 11 INTO 12 lv_Dummy 13 FROM 14 ( SELECT dummy FROM DUAL UNION ALL 15 SELECT dummy FROM DUAL 16 ); 17 EXCEPTION 18 WHEN lex_TooManyRows THEN 19 dbms_output.put_line('lex_TooManyRows is our exception to allow us to capture ORA-01422'); 20 21 END; 22 / lex_TooManyRows is our exception to allow us to capture ORA-01422 PL/SQL procedure successfully completed.
HTH
David
-
subquery returns no row in the main query, but hard returns the value of the master query
Oracle 11g, Solaris SPARC 64-bit:
This is the master query: its not to return all the lines
Select count (*) in the sadmin.usr_mods where to_char (ts_id) in ((select to_char (rtrim (ltrim(TS_MODULES,','), ',')) in the sadmin.usr_rfc where TS_KINTANA_PACKAGE_NUMBER = '123' and ts_projectid = 3));
COUNT (*)
----------
0
But wherever if I use subquery only returns he lines:
SQL > select rtrim (ltrim(TS_MODULES,','), ',') from the sadmin.usr_rfc where TS_KINTANA_PACKAGE_NUMBER = '123' and ts_projectid = 3;
RTRIM (LTRIM(TS_MODULES,','), ',')
--------------------------------------------------------------------------------
49,54
If I use these values as hardcoded to a select master it will return 2 rows:
SQL > select count (*) in the sadmin.usr_mods where to_char (ts_id) in ('49 ', ' 54');
COUNT (*)
----------
2
TS_MODULES datatype is CLOB
TS_ID datatype is set to number
Help, please
with
usr_rfc as
(select 3 ts_projectid, 123 ts_kintana_package_number, to_clob(',49,54,') ts_modules
of the double
),
usr_mods as
(select ts_id 49 Union double all the)
Select 50 in all double union
Select double 54
)
Select count (*)
of usr_mods
where to_char (ts_id) in (select regexp_substr (to_char (rtrim (ltrim(TS_MODULES,','), ',')),'[^,] +', 1, level))
of usr_rfc
where TS_KINTANA_PACKAGE_NUMBER = '123'
and ts_projectid = 3
connect by level<= regexp_count(to_char(rtrim(ltrim(ts_modules,','),',')),',')="" +="">=>
)
COUNT (*) 2 Concerning
Etbin
Select count (*)
of usr_mods
where instr ((select ',' | to_char (rtrim (ltrim(TS_MODULES,','), ',')) |)) ','
of usr_rfc
where TS_KINTANA_PACKAGE_NUMBER = '123'
and ts_projectid = 3
),
',' || TO_CHAR (TS_ID) | ','
) > 0
-
Do stuff to PL/SQl that returns the value and redirect to modal page by setting this value
Hello
a button click Page1 I would perform a PL/SQL procedure that returns a value in P1_ITEMVAL and then redirect to a page 2 (modal page) and the value of an item on this page with the value previously returned. To do the same thing with a normal page is quite easy:
Button action is present, then process of PL/SQL that returns the value in the P1_ITEMVAL element and, finally, a branch at page 2 that sets P2_ITEMVAL with P1_ITEMVAL. I really have no idea how to do the same thing when the target is a modal page.
I created a unit test on https://apex.oracle.com/pls/apex (application 1554 - redir_to_modal)
Workspace: tests
USER: supporter
PWD: supporter1234
Any help would be much appreciated.
Kind regards
Pavel
Pavel
If you prepare a URL using the value calculated in the PLSQL of DA part you can then use a subsequent stage of javascript to set the location of the window.
This will jump to the top of the page of the modal dialog box
: P1_URL: = apex_util.prepare_url)
' f ? p ='|| : APP_ID - Application id
|': 2' - Page id
||': ' || : APP_SESSION - Session id
||':' -- Request
||':NO' -- Debug
: ': ' - Clear Cache
: ': ' - Settings
||' P2_ITEMVAL'
: ': ' - Parameter values
|| (: P1_ITEMVAL);
then in the action of javascript
Window.Location.Replace ($v ('P1_URL'));
Hope this is of some use
Concerning
Kelvin
-
: Nom_element and V ('ITEM_NAME') do not return the same value
Hi all
I'm developing a shared application process that is called by an AJAX request.
For the pl/sql code, stored procedure validation e development support I moved the logic inside a database.
So I have this situation:
Application process
...
: MYITEM: = wwv_flow.g_x01; -received setting of ajax call I want to put
...
MY_FUNCTION();
MyFunc
...
v('MYITEM') - here I use value MyItem
...
The problem is that when I call v ('MYITEM') the value I get is the previous and not one that I put with: MYITEM: = wwv_flow.g_x01;
I have the same problem if I set the V ('MYITEM') inside the apex application process.
I saw that it worked right if I use the following to set the value of the element in the application process:
APEX_UTIL. SET_SESSION_STATE('P0_LST_DATA',:P0_LST_DATA);
Is this a bug?
I was expecting to get the value of the item: MONELEMENT and v ('MYITEM') are equivalent...
Thank you
DavideDavide,
If you encode the block like that, you should get the results you expect:
: P100_VAR1: = '1'. : P100_VAR1;
: P100_TEST: =: P100_VAR1;The reason why this block does not give you what you expect:
: P100_VAR1: = '1'. : P100_VAR1;
: P100_TEST: = v ('P100_VAR1');... is that v ('P100_VAR1') returns the current value of the item in the table of PL/SQL State session as it existed before the execution of the block. The assignment to the variable binding: P100_VAR1 has registered only a value in storage variable to bind the dynamic execution at this time and has not yet spread to session state, which is located at the end of the execution of the block. It's a little weird, we know.
Andy,
I figured that the: xxxx points have been settled during the loading of the page with what the source is...
They contain the session state value and can be read or written in notation variable bind.
However, they are updated only in the session when you send page...
They are updated in session state when the particular block is completed and a commit is issued at this time there.
In order to update a piece of code PL/SQL session state, you must use... apex_util.set_session_state.
You must be careful to call it when scoring also bind variable to set the session state may cause one to deny the other. Using one method or the other should work very well.
Scott
-
Returns the value of column line
Greetings! I currently have a request we will tell
SELECT value, period FROM MAS_CFUS_KEYACM_CONTROLDATA ORDER BY cf_keyword_ID
RESULTS
Period value
--------------------------
100.0002 1 JANUARY 14
-35.68 1 DECEMBER 14
-1943.67 NOVEMBER 1, 14
678.0013 OCTOBER 1, 14
This continues for about 15 results by cf_keyword_ID.
I'm looking to return the VALUE first in a new column called PREV1, the second value of PREV2, third in PREV3 and so on. The same goes for the dates. And all this for only the first 10 values of each cf_keyword_ID. Can anyone suggest the best way to achieve this?
Thank you!!
Hello
This is called pivoting. Because I don't have a copy of your table test, I'll use scott.emp to illustrate.
This shows the first 3 employees for each job, in order by hiredate, along with their hiredates:
WITH relevant_data AS
(
SELECT ename, job, hiredate
row_number () taken OVER (PARTITION OF work
ORDER BY hiredate
) AS r_num
FROM scott.emp
)
SELECT *.
OF relevant_data
PIVOT (MIN (ename) AS ename
MIN (hiredate) AS hiredate
FOR r_num (1, 2, 3)
)
ORDER BY job
;
Output:
WORK 1_ENAME 1_HIREDATE 2_ENAME 2_HIREDATE 3_ENAME 3_HIREDATE
--------- ---------- ----------- ---------- ----------- ---------- -----------
ANALYST FORD 3 December 1981 SCOTT April 19, 1987
The CLERK SMITH December 17, 1980, 3 December 1981 JAMES MILLER January 23, 1982
MANAGER JONES 2 April 1981 BLAKE 1 May 1981 CLARK June 9, 1981
PRESIDENT KING November 17, 1981
SELLER ALLEN 20 February 1981 WARD 22 February 1981 TURNER 08-Sep-1981
There are actually more than 3 SECRETARIES and SALESMEN. Which does not cause an error; the only first 3 are shown.
As you can see, having less of 3 does not cause any errors, either.
For more info on pivots, see the FAQ of the Forum:
Re: 4. How can I convert rows to columns?
I hope that answers your question.
If this isn't the case, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
If yod post rather a problem using scott.emp, then you need not display the sample data; just results and explanations.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum:
-
GetCurrentRow returns the null value while trying to values defined in table advanced VO
Hi all
I'm trying to set default values to a bean advanced table according to the selection of LOV in another region. Here is the code and getCurrentRow returns the value null and null pointer exception is throwed. Please let me know where Iam going bad.
if (pageContext. ) isLovEvent ())
LovInputSourceId = string pageContext. getLovInputSourceId ();
if ("poNumber". ) is equal to ()lovInputSourceId))
pageContext . putDialogMessage (new OAException()"inside Onclick"));
OAViewObject VO = (OAViewObject) am . findViewObject ()"L3APNonprojbasedpoVO1");
VO1 OAViewObject = (OAViewObject) am . findViewObject ()"L3APCodingInfoEOVO1");
VO . setWhereClause (null);
VO . setWhereClauseParams (null);
VO . executeQuery ();
VO1 . setWhereClause (null);
VO1 . setWhereClauseParams (null);
VO1 . setWhereClause ("1=2");
VO1 . executeQuery ();
if (null! = VO )
Row ReqRow = (Row) VO.first();
if (null ! = ReqRow )
int idx = VO . getRowCount ();
for (int xx = 0; xx < idx ; xx ++)
String Description = (String)VO. getCurrentRow (). getAttribute ()"ItemDescription");
Number Amount = (Number)VO. getCurrentRow (). getAttribute ("Amount");
String Company = (String)VO. getCurrentRow (). getAttribute ("Company");
String ProfitCenter = (String)VO. getCurrentRow (). getAttribute ()'ProfitCenter');
String Dept = (String)VO. getCurrentRow (). getAttribute ("Dept");
String Lob = (String)VO. getCurrentRow (). getAttribute ("Lob");
String Account = (String)VO. getCurrentRow (). getAttribute ("Account");
pageContext . putDialogMessage (new OAException()"inside loops'));
if (null! = VO1 )
{ am. invokeMethod ("createRow");
VO1 . getCurrentRow (). setAttribute ()'Description',Description);
VO1 . getCurrentRow (). setAttribute ("Amount",Amount);
VO1 . getCurrentRow (). setAttribute ("Company",Company);
} ReqRow = (Row)VO.next(); }
else {}
}
}
Here is the method in AM.
Public Sub createRow()
{
OAViewObject vo = (OAViewObject) getL3APCodingProjectEOVO1 ();vo.clearCache ();
If (!) VO.isPreparedForExecution ())
{
System.out.println ("project VO executed");
vo.setWhereClause (null);
vo.setWhereClauseParams (null);
vo.setWhereClause ("1 = 2");
vo.executeQuery ();
}
Line = vo.createRow ();
vo.insertRow (row);
row.setNewRowState (Row.STATUS_INITIALIZED);
}I modified your code a bit. This code does not require a method of AM.
If the problem still not solved.
If you want you can try this and let us know what happens.
if (pageContext.isLovEvent()) { String lovInputSourceId = pageContext.getLovInputSourceId(); if("poNumber".equals(lovInputSourceId)) { pageContext.putDialogMessage(new OAException("Inside Onclick")); OAViewObject VO=(OAViewObject)am.findViewObject("L3APNonprojbasedpoVO1"); OAViewObject VO1=(OAViewObject)am.findViewObject("L3APCodingInfoEOVO1"); VO.setWhereClause(null); VO.setWhereClauseParams(null); VO.executeQuery(); VO1.setWhereClause(null); VO1.setWhereClauseParams(null); VO1.setWhereClause("1=2"); VO1.executeQuery(); if (VO != null) { for( Row ReqRow = (Row) VO.first(); ReqRow != null; ReqRow = (Row) VO.next()) { String Description = (String)ReqRow.getAttribute("ItemDescription"); Number Amount = (Number)ReqRow.getAttribute("Amount"); String Company = (String)ReqRow.getAttribute("Company"); String ProfitCenter = (String)ReqRow.getAttribute("ProfitCenter"); String Dept = (String)ReqRow.getAttribute("Dept"); String Lob = (String)ReqRow.getAttribute("Lob"); String Account = (String)ReqRow.getAttribute("Account"); pageContext.putDialogMessage(new OAException("Inside for Loop")); if (VO1 != null) { Row newRow = VO1.createRow(); newRow.setAttribute("Description",Description); newRow.setAttribute("Amount",Amount); newRow.setAttribute("Company",Company); VO1.insertRow(newRow); } } } } }
See you soon
AJ
-
Returns the lowest value of two fields
Hello
I have two domains that users manually enter in a form. Value1 and Value2.
Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?
Thank you
Natalie
I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:
Custom calculate script
(function () {}
Initialize the array
aNums var = [];
Get the field values as strings
var s1 = getField("Value1").valueAsString;
var S2 = getField("Value2").valueAsString;
Convert values to numbers if not empty and add to the table
If aNums.push(+s1) (s1);
If aNums.push(+s2) (s2);
Set the value of this lesser field of entries
If both are blank, this field blank
Event.Value = aNums.length? Math.min.Apply (null, aNums);:
})();
-
Interactive report that returns 0 rows on the initial screen of forcing
How can I get the initial display of my interactive to have 0 rows (and quickly) reports on the initial display, so that the user can determine the lines they want without having to wait for the report view without much in the way of the filters?
My reports many lines of 50-100 k with several joins of tables: so they are slow and the initial default result set is not useful for them, until they start of construction interactive filters themselves.
I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning the default #of ranks backward, THEN that wraps like a subselect and applies to the i / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...
I'm experimenting also with a flag of pxx_firsttime, intiall value, and according to my report SQL NVL(:Pxx_FIRSTTIME,'Y') = n and (rest of joins of tables)...
the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?
Thank youHello
I tried to add a default I / filter R which is never true, return 0 rows, but if I have good corrrectly, APEX will execute the sql 1, returning back by default #of lines, THEN that wraps like a subselect and applies the > I / R filters. So, I still have to wait for the report of 'run' before its filtered to 0 rows...
Yes, you are right.
I assume that you already have using the paging Type as line from X to Y.
the problem I have with this is, how can I get this option the value N as the user begins to use the interactive report filters, etc., which seem NOT to resubmit the page?
Whenever the user do something with 'Actions', APEX IR will get updated. Thus, to create a dynamic Action that will be triggered before the refreshment of your IR, update the session state from P1_FIRSTTIME_FLAG to "n".
Kind regards
Hari -
How to perform a function and return the result in a variable of liaison
Hello
I'm trying to calculate the sum of the salaries of all persons with a particular using a function JOB_ID TOTAL_INCOME (v_job_id).
create or replace function total_income
+ (v_job_id in VARCHAR2) +.
Number IS BACK
v_total number (6);
cursor get_sal is
Select the pay of employees
where job_id = v_job_id;
BEGIN
v_total: = 0;
for emp in get_sal
loop
v_total: = v_total emp.salary; +.
end loop;
dbms_output.put_line (' Total salary ' | v_job_id |' is: ' | v_total);
Return v_total;
END;
Now I woud like to perform this function and assign the value returned in a variable binding test_sal
test_sal variable number (6)
SELECT total_income ('AD_VP') in: test_sal FROM DUAL;
dbms_output.put_line (' Sal Total :'||: test_sal);
This returns the errors below:
SELECT total_income ('AD_VP') in: test_sal FROM DUAL
*+
Error on line 0
ORA-01036: illegal variable name/number
dbms_output.put_line (' Sal Total :'||: test_sal);
Error on line 3
ORA-00900: invalid SQL statement
Could someone help me what could be the problem? Thanks for your time...Hi Kiran and welcome to the forum,
You mix SQL and PL/SQL
It's the way in which SQL:
SQL> SELECT total_income('AD_VP') FROM DUAL; TOTAL_INCOME('AD_VP') --------------------- 123 1 row selected.
It comes to PL/SQL in SQL * more
SQL> variable test_sal number SQL> execute :test_sal := total_income('AD_VP') PL/SQL procedure successfully completed. SQL> exec dbms_output.put_line('Total Sal:'||:test_sal) Total Sal:123 PL/SQL procedure successfully completed
Concerning
Peter -
SQL-MIN() don't not returns the minimum value
This is my code;
$SQLx = "SELECT MIN (price_from) AS minimumprice FROM AN_pricetable WHERE accomm_id =". "." $db_field ["accomm_id"];
$resultx = mysql_query ($SQLx);
$pricefrom = mysql_result ($resultx, $i, 'minimumprice');
If ($pricefrom == 0) {}
$pricefrom = 'TBC' ;}
But for some reason, it is not the minimum value "price_from". For example, several rows in the table have the same "accomm_id", and their values in the field 'price_from' are: 8, 12, 50-7, but the SQL code returns the MIN 12. What I'm doing wrong here?
Thank you
What is the data type of price_from? If it is a type of string (char), then 12 would be the lowest value.
-
Help with the query to return the last possible value
Can someone please help me to create a query for the situation below?
Table: TABLEA
Columns:
FACID VARCHAR2 (10),
DEPTID VARCHAR2 (10),
CHARGENUMBER NUMBER (10)
I have the following data:
A, B, 1
A, B, 2
C, D, 3
C, D, 4
I will return the following:
A, B, 2
C, D, 4
In other words, I would return the last possible CHARGENUMBER for FACID and DEPTID.
The table has no index, and it is responsible for a worksheet in that order.
Thank you very much!Hello
If you have a TIMESTAMP column, called entry_dt, you can use a Top - N query like this to find the last x entries.
WITH got_rnum AS ( SELECT my_table.* , RANK () OVER (ORDER BY entry_dt DESC) AS rnum FROM my_table ) SELECT * -- or list all columns except rnum FROM got_rnum WHERE rnum <= x ;
It is very common to have a trigger to ensure that columns like entry_dt are met.
If you have only one statement that inserts with hundreds of lines, they can all have the same entry_dt. (The value of SYSTIMESTAMP is constant throughout a statement, even if it takes a few seconds).
The above query uses RANK, so if you tell him you want the last 10 entries, it can return more than 10, because it includes all lines with exactly the same entry_dt as the 10th. If you want to exactly 10 rows returned, even if there is a tie for 10th place, then use ROW_NUMBER instead of RANK; the rest of the query is the same. -
Oracle query of relay and access function call does not return the list
Thanks to aid in a previous post, I received, I created an oracle 10 g feature that returns the list after you run the sql code it contains. It works in oracle, using sql developer.
I need to have the list that he returned to see the place in MS Access via a relay request. It does not work so far. The string for connection etc is ok, I'm able to use passthrough queries to run sql strings correctly. But when I try to call the function through the request of relay and access initially nothing seems to happen (IE no list) and if I try to run again, there is an "ongoing call odbc error. Current operation cancelled "." There are only three records in the table. I'm missing something, someone can he spot?
The application of relay and looks like this
Select * from fn_testvalues of the double
Once that is running in oracle.
To create the test table and 2 functions below.
CREATE TABLE t_values (MyValue varchar2 (10));
Table created
INSERT INTO t_values)
SELECT 'Merced' c1 FROM dual UNION ALL
SELECT "Pixie" dual UNION ALL
SELECT "452" DOUBLE);
3 lines inserted
FUNCTION to CREATE or REPLACE RETURN NUMBER IS fn_isnum(p_val VARCHAR2)
n_val NUMBER;
BEGIN
n_val: = to_number (p_val);
RETURN 1;
EXCEPTION
WHILE OTHERS THEN
RETURN 0;
END;
/
Feature created
table test:
SELECT val, isnum fn_isnum (MyValue)
OF t_values;
VAL ISNUM
---------- ----------
Merced 0
Pixie 0
1 452
Now the function that is called in the application of relay:
create or replace function fn_testvalues
sys_refcursor is back
RC sys_refcursor;
Start
Open rc for
Select t_values.*, fn_isnum (MyValue) t_values IsNum;
Return (RC);
end fn_testvalues;Why not?
satyaki> satyaki>select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>create or replace view bb 2 as 3 select * 4 from emp; View created. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * from bb; EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN 7654 MARTIN SALESMAN 7698 28-SEP-81 1815 1400 30 SALESMAN 7788 SCOTT ANALYST 7566 19-APR-87 598.95 20 ANALYST 7839 KING PRESIDENT 17-NOV-81 7260 10 PRESIDENT 7844 TURNER SALESMAN 7698 08-SEP-81 2178 0 30 SALESMAN 7876 ADAMS CLERK 7788 23-MAY-87 159.72 20 CLERK 7900 JAMES CLERK 7698 03-DEC-81 1379.4 30 CLERK 7902 FORD ANALYST 7566 03-DEC-81 5270.76 20 ANALYST 7934 MILLER CLERK 7782 23-JAN-82 1887.6 10 CLERK 7566 Smith Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 7698 Glen Manager 7839 23-JAN-82 1848 0 10 Manager 23-JAN-89 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 1 boock 12 rows selected. Elapsed: 00:00:00.00 satyaki> satyaki> satyaki>select * 2 from bb 3 where empno = &eno; Enter value for eno: 7521 old 3: where empno = &eno new 3: where empno = 7521 EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO JOB1 DOB ---------- ---------- --------- ---------- --------- ---------- ---------- ---------- --------- ---- 7521 WARD SALESMAN 7698 22-FEB-81 226.88 500 30 SALESMAN Elapsed: 00:00:00.00 satyaki> satyaki>
Kind regards.
LOULOU.
-
Returns the time value zero calendar
Hi, I write code with calendar that return the value zero for HOUR_OF_DAY and MINUTE when I run this code in Strom2(9550-5.0.0.334) below.
Calendar calendar = Calendar.GetInstance ();
Date date = new Date (this.arrivalTimeField.getDate ());
calendar.setTime (date);
Day int = calendar.get (Calendar.HOUR_OF_DAY);
int minute = calendar.get (Calendar.MINUTE);So please help me for this problem and thanks in advanced
I had a lot of problems like myself. Invariably, I find that the bug is my code. Usually, it is not difficult to find using the appropriate debug or SimpleDateFormat (because times are difficult to interpret, it is good to let the system do it for you!). I suggest you do the same thing here.
If you find that the system does not have it that you wait, then give us the details, for example, give us the long value that you provide to the calendar and the time you go out. You should be able to do it in two or three lines, just using the standard Java RIM (i.e. None of your classes). You can also indicate the time zone that you are testing in.
-
List of input values (multi-column) must return the output text once the value is selected
Hello
I am trying to achieve conditional:
I create a searchVO(select '' empNumber from dual) - to accept the input value (name empNumber).
I create empLovVO (select enum,ename, addr, city of emp). lov attached to empNumber (searchVO).
In the list of values when I select a value (emp 1, a, xyz, abc), it must return the default aby associated with emp values 1 to my output texts
the name of the EMP one.
addr xyz
City abc
It should also automatically change the values if I select another empNumber.
Please let me know how to achieve this.
Thank youFirstly, for the searchVO, add a three other attributes, name, address, and City, the type of string:
and make sure they are still editable:
Then, you're mapped LOV enum attribute EmpNumber, right?
Do similar for the newly created attributes, in the list of values dialog box validation:
Ename--> name,
--> addr addr,
City--> City
Then, just to show these attributes in the form of output text, and you'll get what you want...
Maybe you are looking for
-
Satellite A100 - 750 PSAAR, 4 GB of installed RAM, 3 GB of usable RAM
I just upgraded my Satellite A100-750 of 2x2gb 2x1GB RAM.The BIOS recognizes 4 GB RAMbut the output of said BIOS then "spent 3 GB RAM system". My Windows 7 Pro 64 bit OS said it has 4 GB of RAM, but only 3 GB are used. How can I use all my 4 GB of RA
-
Original photos keep endangered...
I collect digital images. I use the same procedure each time. Save the image in a collection on my drive folder, drag the image to the photo files (previously with iPhoto which never presented me with no problem). Once the files are displayed in the
-
laptop HP pavilion ts 11: gray screen - check short DST failed
Hi, I have pls can't help. My laptop screen becomes grey as I turn it on. The hp logo lights up, & it will say auto repair. Then the screen will become grey & it stays like that. I removed the battery tried to restart, but did not difference. Thank y
-
Errors of run Switchport Port-Security
So I'm a bit new to switchport security. I work on most of the ports in one location. Its ports where I either switchport voice and switchport access VLAN or just switchport voice VLAN. For some reason, these types of ports going into err - disabl
-
HOW TO DOWNLOAD ASSETS 14 WITH WINDOWS 8.1?
HOW TO DOWNLOAD A NEW SOFTWARE WITH WINDOWS 8.1 (14 ITEMS)