Equivlent CASE WHEN query for Oracle 8.05
Is there a way to construct a query similar to the statement below in Oracle version 8.05?
SELECT ename, CASE WHEN empid>10000 THEN 'Old Timer' ELSE 'New Comer' END
FROM employees;
I would like to use a single select query to handle such situations. Thanks for any suggestions.
Roger
sql>select empid,
2 decode(sign(10001 - empid), 1, 'Newcomer', 'Oldtimer') description
3 from foo
4 order by empid;
EMPID DESCRIPT
9999 Newcomer
10000 Newcomer
10001 Oldtimer
10002 Oldtimer
Similar Messages
-
Need help converting Excel IF statement into CASE WHEN statement for Oracle
Hi,
Hope someone can help I have tried various ways of getting this to work, to no avail!
Bascially I have some figures that are minus figures, and I need to add them together to get a movement figure, but I need to treat the minus figures as minus, if that makes sense, rather than the usual... a minus and a minus makes a plus.
For example:- Budget Figure = -1% and Actual Figure = -68% so the movement needs to be -69%.
The IF statement I have been using in Excel is the following:-
=IF(FO110<0,(FP110-(IF(FO110=0,1,FO110)*-1)),FP110-IF(FO110=0,1,FO110))
Which when using the figures as above = -69%
Cell FO = The Budget Figure
Cell FP = The Actual Figure
However, when I created the CASE statement in Oracle, the figure in the query comes back as -0.67, which is oviously not what I want to happen when both actual and budget are minus figures; however when they are a minus and a plus, it works perfectly fine.
Any help on this would be most appreciated!
Kind regards,
AnnmarieHappy I did'n mess something up :)
Nevertheless, don't show it too much around because
case when budget < 0
then actual - case when budget = 0 /* will never happen */
then 1 /* will never happen */
else budget
end * (-1) /* -budget * (-1) remains only */
else actual - case when budget = 0
then 1
else budget
end
endso at least try the following (if case is more readable as decode for you). Let's hope it works as I don't have a Database at hand
case when budget < 0
then actual + budget
else actual - case when budget = 0
then 1
else budget
end
end Regards
Etbin -
Can i use case in query in oracle form 6i
sir can i use case in query in oracle form 6i
such as
select empno, case when deptno=10 then dptno end from emp;
please gice meHello,
Does this code compile ?
If not, I'm afraid that the PL/SQL engine of Forms6i does not recognize this syntax.
Francois -
Where case when query not running at all in 11.2.0.3
Hi,
I have a query that was running fine till the time we were in 11.1.0.7. Last month, we had a migration to 11.2.0.3, and the query has stopped running since then. It runs indefinitely, and finally I have to kill it. However, until 11.1.0.7, I had absolutely no problems with it. Not sure what changed in 11.2.0.3 that causes it to never give me a result. The query is as below:
SELECT T1.NAME,T2.AGE,T2.level, T2.AMT,
FROM table1 T1, table2 T2
WHERE (CASE WHEN
(T1.name = 'Peter' AND SUBSTR(T1.desc,1,15)=SUBSTR(T2.description,1,15))
THEN 1
ELSE 0
END)=1;
Please advise!
Thanks in advance.Hi,
CrazyAnie wrote:
Hi,
I have a query that was running fine till the time we were in 11.1.0.7. Last month, we had a migration to 11.2.0.3, and the query has stopped running since then. It runs indefinitely, and finally I have to kill it. However, until 11.1.0.7, I had absolutely no problems with it. Not sure what changed in 11.2.0.3 that causes it to never give me a result. The query is as below:
SELECT T1.NAME,T2.AGE,T2.level, T2.AMT,
FROM table1 T1, table2 T2
WHERE (CASE WHEN
(T1.name = 'Peter' AND SUBSTR(T1.desc,1,15)=SUBSTR(T2.description,1,15))
THEN 1
ELSE 0
END)=1;
Please advise!I'm surprised it runs in any version. You have a comma right before the keyword FROM. If you were not getting a compile-time error, that was a bug in 11.1.0.7 that they fixed by 11.2.0.3.
It's still strange that the query runs for a long time. I would expect it to give you an error when you tried to compile it. Is there any chance that what you posted is not what you're actually running?
Also, LEVEL, NAME and DESC are not good column names. How Oracle reacts to using keywords like that as column names can vary from version to version. If a word is in v$reserved_words.keyword, then it's best to avoid using it as a column (or table, or variable, or schema) name.
Edited by: Frank Kulash on Nov 21, 2012 1:33 PM
By the way, that WHERE clause is a lot more complicated than it needs to be. Why not use
WHERE t1.name = 'Peter'
AND SUBSTR ( t1."DESC" -- If you must use DESC, double-quote it
, 1
, 15
) = SUBSTR ( t2.description
, 1
, 15
)? Always think carefully before using CASE in a WHERE (or HAVING, or START WITH, or CONNECT BY) clause. -
Query for oracle 9i and 10g on same box
HI
All,
I have oracle 9i installed on one box it has
oracle home /u01/app/oracle/product/9.2.0
and i am gonna install oracle 10g on different home /u01/app/oracle/product/10.2.0
Do I need to specify different location for OraInventory?
so what else I need to take care?
Thanks,
VishalSo there should not be a problem if it is the same
orainventory location for both 9i and 10g right.There should be no problem.
can you throw more focus on below ?
When managing different oracle versions on the same
box you should take care of environment variables to
properly point to each ORACLE HOME and PATH, and
ensure different ports do not conflict.
For instance, you should use the Listener of the latest release on the server (in this case 10g) to services all the databases on that box 9both 9i and 10g).
When you want to startup and shutdown 9i database, you do not want to shutdown a 10g database by mistake. Hence, setting things like ORCLE_HOME and ORACLE_SID.
Also, Oracle Server make use of libraries. You do not want to mix up 9i and 10g libraries. hence take care when you set things like PATH, LD_LIBRARY_PATH etc
The same applies to all Environment variables you want to set on the server that has different oracle releases. You just need to ensure that when you logon, your variables are set correctly for the intended oracle release before you do anything. -
I just want to post another new question based on last week's thread:
Visakh16 provided me answer to use "CASE When" to handling different regions (see the Select statement below).
My new question is: I do need to add a new condition for transaction type = "Billing" after Case when Customer PO In ('12345', '3334444', '23434343'. These 2 conditions need to be embedded in the region called as
"America-Hub".
For the rest of the regions (regions other than America-Hub), I need to filter transaction type = 'Booking". So How can I combine the above new conditions into One query.
Please help
SELECT other columns...,
CASE WHEN CustomerPO IN ('123456',
'3343434', '2343434')
THEN 'AMERICAS (Hub)'
ELSE RegionFieldHere
END AS Region
FROM ...
Thanks,
Josephine
Josey TangThanks for your reply yesterday. I think I would like to clarify my requirement. Below is the table that I expect to see from the query. Customer PO # 123456', '3343434', '2343434' have 2 transaction types (Billing and Booking, please see BOLD
sections below) so I do need to list out these 3 POs in "Booking" transaction type as well under "America" region.
The region called it as "America-Hub" which does not exist, I do need to name this region manually (after filter out by these POs '123456', '3343434', '2343434' and filter by Transaction Type = "Billing").
In the query output, I do need to list out all other customer POs for different regions such as "Japan", "Malaysia', etc. (See purple section) for "Transaction Type" = Booking
Below is the final data output that I expect to see in my query. Appreciate if you can help me out.
Transaction Type
Region
Customer PO
Billing
America-Hub
123456
Billing
America-Hub
3343434
Billing
America-Hub
2343434
Booking
Japan
8898989
Booking
Malaysia
7783838
Booking
America
123456
Booking
America
3343434
Booking
America
2343434
Thanks,
Josephine
Josey Tang -
Applying functions to database fields when querying for a form field
Hi,
how is it possible to apply trim() or another method to the content of a database field when a query is initiated?
The actual problem is that there are entries in the database which are entailed by a blank and, because the user is not aware of this fact, he cannot be forced to add a blank or % to the form field he is querying.
Does anyone have an idea how to solve this issue?
Thank you very much in advance.
Message was edited by:
user492074
nullThe where clause is built that way:
WHERE (ETN.trim(ETN_PLZ)=:1)
The error message:
ORA-00904: "ETN"."TRIM": invalid identifier
Actually, I guess that the trim statements should surround ETN.ETN_PLZ but that is obviously not the case.
Apart from that I did not enter 1 as the value to query for.
Nevertheless, thank you for your help. Forms version is 10.1.2 by the way. -
Hello Experts,
I'm tryng to develop my first application for EP (v7 SP12) with NWDS (without NWDI).
This application has to read and write data in the EP DB (oracle v10).
I'm using:
<u>a Dictionary Project</u> (define the DB Tables)
<u>a Java Project</u> (define class as DAO, DBManager etc)
<u>a Library Project</u>
<u>an EJB Project</u>
<u>an EAR Project</u>
With these projects I can deploy a <u>webService</u> in my EP server.
BUT I have some problem with a query that I'm tryng to sent to my DB through a DAO Class called by my WebService.
The query is simple and correct but it does not work...
This is the error message returned (the query id in bold)
(column names: GIORNO, NOMEDITTA, NOMEAREA, NOMESETTORE)
<i>HTTP/1.1 500 Internal Server Error
Connection: close
Server: SAP J2EE Engine/7.00
Content-Type: text/xml; charset=UTF-8
Date: Fri, 21 Sep 2007 14:29:57 GMT
Set-Cookie: <value is hidden>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>java.sql.SQLException: com.sap.sql.log.OpenSQLException: The SQL statement <b>"SELECT NOMESETTORE, MIN(? - "GIORNO") AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE"</b> <u>contains the syntax error[s]: - 1:25 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</u></faultstring><detail><ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException xmlns:ns1='urn:GiorniSenzaInfortuniWSWsd/GiorniSenzaInfortuniWSVi'></ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope></i>
The variable '?' is the today date, the difference <b>"(?-GIORNO)"</b> is an int..
Moreover in my DAO class the query is <b>"SELECT NOMESETTORE, MIN(? - GIORNO) AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE</b>", instead in the error message is reported <b>MIN(? - "GIORNO")</b>...
We have tryed also with alternative query, for example we used <b>"MIN(SYSDATA - GIORNO)"</b> but <b>SYSDATA</b> was interpreted as column name and not found....
Any help???
Best RegardsHi, I found something about the Host Variable (http://help.sap.com/saphelp_nw70/helpdata/en/ed/dbf8b7823b084f80a6eb7ad43bdbb9/content.htm), there explain that if you want to use an host variable you have to put ':' as prefix..
My problem is that <u>I need to extract the minimum of the subtraction between two dates:</u>
Query <b>MIN(? - GIORNO)</b> --> <i>Error: the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
So I tried to use the ':' as indicated in the manual..
<b>MIN:(? - GIORNO)</b> --> - <i>SQL syntax error: the token ":" was not expected here
- expecting LPAREN, found ':'</i>
<b>MIN(:(? - GIORNO))</b> --> <i>- 1:25 - Open SQL syntax error: :PARAMETER not allowed
- 1:26 - SQL syntax error: the token "(" was not expected here
- 1:26 - expecting ID, found '('</i>
Then I tried to avoid the MIN() function and I tried to do just the subtraction:
<b>? - GIORNO</b> --><i> - 1:21 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
<b>:(? - GIORNO)</b> --> <i>- 1:21 - Open SQL syntax error: :PARAMETER not allowed
- 1:22 - SQL syntax error: the token "(" was not expected here
- 1:22 - expecting ID, found '('</i>
<b>'2007-09-24' - GIORNO</b> --> <i>- 1:34 - SQL syntax error: first argument of operator "-" must be a number, date/time or interval
- 1:43 - SQL syntax error: arguments of operator "-" do not have correct types
- 1:43 - SQL syntax error: derived columns in SELECT list with AS must be values</i>
<b>GIORNO - GIORNO</b> --> <i>- 1:21 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated
- 1:30 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated</i>
Why these parts of query are not accepted???
I don't understand why... I hope you can help me.
Best Regards
Alessandro -
Hi Everyone,
I want oracle query with which we can retrieve information about oracle RAC.
This information is, No of Clusters, Db instances...
Which Tables i can query for this information?
Thank You In Advance...
RoshanHi,
I think you would mean active instances on your cluster....
Query v$active_instances
04/05/[email protected]=287> select * from v$active_instances;
INST_NUMBER INST_NAME
1 rac1:ORCL1
2 rac2:ORCL2
2 rows selected.
Regards,
Rodrigo Mufalani
http://mufalani.blogspot.com -
Error starting Portal or Commerce Server when Configured for Oracle
I've been attempting to configure Portal 4.0 to work with Oracle. I'm running Oracle
8i. I carefully followed the instructions found in "Configuring WebLogic Portal for
Oracle Databases". Specifically, I setup the tablespaces, connection pools and successfully
run the scripts to populate the tables. I am confident the Oracle OCI driver is configured
properly (have done this many times). However, after I make all of the necessary
changes and launch the server, I receive the following error:
Starting WebLogic Server ....
<Jun 26, 2002 4:47:32 AM PDT> <Notice> <Management> <Loading configuration file .\config\wlcsDomain\config.xml
..> <Jun 26, 2002 4:47:39 AM PDT> <Emergency> <Server> <Unable to initialize the
server: 'Fatal initialization exception
Throwable: java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
at weblogic.security.SecurityService.initializeRealm(SecurityService.java:258)
at weblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
'>
The WebLogic Server did not start up properly.
Exception raised:
java.lang.IllegalAccessError: Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
at weblogic.security.SecurityService.initializeRealm(SecurityService.java:258)
at weblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
The startup appears to have trouble with the RDBMS security realm. I tried a) leaving
the settings "as-is", configured for Cloudscape, or b) modified to point to my instance
of Oracle (are their additional things I need to load in Oracle to support it using
the RDBMS realm). Is there a way I can disable the security realm to at least get
the server up-and-running (via the web.xml). I've installed and reinstalled many
times, trying various combinations of things.
Any help would be hugely appreciated!
Thanks,
jeffI finally found this bug in the release notes, i'm surprised one of the bea guys couldn't
answer this....
"Mike Friesen" <[email protected]> wrote:
>
I had the same type of problem with portal 4.0. Trying downloading the
newest 7.0, I found it works much better.
Mike
"K C" <[email protected]> wrote in message news:[email protected]...
I found this as well. However, i still am not able to run the portal afterconfiguring
for oracle. While running create_all, i get many errors like "can binda
LONG value
only for insert into a LONG column"
the table are being created, this appears to occur in the "insertingrequired bootstrap
data" phase.
thanks
"Joshua Davies" <[email protected]> wrote:
You probably followed the instructions too closely. I had the same
problem,
due to
something that's not quite a "bug" in the installation instructions.Look
back at
the section "Update Settings for the RDBMS Security Realm" in thedeployment
guide
(http://edocs.bea.com/wlp/docs40/deploygd/oraclnew.htm#1039294).
In the table in step 2, they show the URL on top, and the Driverclassname
underneath
it. HOWEVER... on the actual data screen, the Driver is on top and the
URL is underneath
it. If you're not being very very careful, it's easy to swap thesetwo
values
and put the URL in the Driver input box and the Driver in the URL input
box. Make
sure you haven't accidentally done this; if you have, you can stillchange
this in
the config.xml file (do a text search for an element RDBMSRealm withan
"name" attribute
of "wlcsRealm").
Verify that it looks like this:
<RDBMSRealm DatabaseDriver="weblogic.jdbc.oci.Driver"
DatabaseURL="jdbc:weblogic:oracle"
Name="wlcsRealm"
and not this:
<RDBMSRealm DatabaseDriver="jdbc:weblogic:oracle"
DatabaseURL="weblogic.jdbc.oci.Driver"
Name="wlcsRealm"
Very subtle gotcha...
"Jeff Davis" <[email protected]> wrote:
I've been attempting to configure Portal 4.0 to work with Oracle. I'm
running
Oracle
8i. I carefully followed the instructions found in "Configuring WebLogic
Portal for
Oracle Databases". Specifically, I setup the tablespaces, connectionpools
and successfully
run the scripts to populate the tables. I am confident the Oracle OCIdriver
is configured
properly (have done this many times). However, after I make all of thenecessary
changes and launch the server, I receive the following error:
Starting WebLogic Server ....
<Jun 26, 2002 4:47:32 AM PDT> <Notice> <Management> <Loading
configuration
file .\config\wlcsDomain\config.xml
...> <Jun 26, 2002 4:47:39 AM PDT> <Emergency> <Server> <Unable toinitialize
the
server: 'Fatal initialization exception
Throwable: java.lang.IllegalAccessError:Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
java.lang.IllegalAccessError:Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
atweblogic.security.SecurityService.initializeRealm(SecurityService.java:258)
atweblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
'>
The WebLogic Server did not start up properly.
Exception raised:
java.lang.IllegalAccessError:Exception[com.bea.p13n.security.realm.RDBMSException:
An error occured creating a database connection for the realm.]
at weblogic.security.acl.Realm.getRealm(Realm.java:91)
at weblogic.security.acl.Realm.getRealm(Realm.java:62)
atweblogic.security.SecurityService.initializeRealm(SecurityService.java:258)
atweblogic.security.SecurityService.initialize(SecurityService.java:115)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:402)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:202)
at weblogic.Server.main(Server.java:35)
Reason: Fatal initialization exception
The startup appears to have trouble with the RDBMS security realm. Itried
a) leaving
the settings "as-is", configured for Cloudscape, or b) modified to point
to my instance
of Oracle (are their additional things I need to load in Oracle tosupport
it using
the RDBMS realm). Is there a way I can disable the security realm toat
least get
the server up-and-running (via the web.xml). I've installed andreinstalled
many
times, trying various combinations of things.
Any help would be hugely appreciated!
Thanks,
jeff -
Hi,
Is there an Oracle equivilent to the LIMIT query ?
Basically, I want to limit the number of rows retrieved.
Thanks in advance!
JD.SELECT * FROM BigTable WHERE ROWNUM<=10as a follow up question can you use that for any
other type of query then SELECT? in MySQL forexample
you can use LIMIT on DELETE and UPDATE as well as
SELECT. Not as far as I know.
also another stupid question perhaps but theROWNUM
variable... Is it specific to the query/cursor orthe
table.?It must be used with care. For instance order by
occurs after the limit is applied.
One can use subqueries to get around the above though.thank you for the info... that is quite different then in operation to MySQL LIMIT (which is applied last after ORDER etc.) although that is expected in this case since it's part of the WHERE clause.. i guess that also means that HAVING will happen after as well? -
"invalid LRS segment" when querying an Oracle Spatial DB
I have a table of GIS segments in an Oracle Spatial database. I'm using C# and ODP to connect to the database. For a given measure from the start of a segment, I want to find the GPS coordinates for that point. I'm running the following query:
select g.geom.sdo_ordinates ord_array from
*(select sdo_lrs.locate_pt(shape,0.02,0) as geom from test_schema.test_table*
where route='ABC' and segmentnum='101.1') g
where shape is of type SDO_GEOMETRY. I'm getting the following error:
ORA-13331: invalid LRS segment
Is there a problem with how I'm passing shape to locate_pt()? The Oracle Spatial documentation says the argument should be SDO_geometry, so that seems ok.
Edited by: 964844 on Oct 11, 2012 2:10 PMI'm using C# with ODP.NET.
Here is the current version of the code that is failing:
var param = new OracleParameter("geom", OracleDbType.Object);
param.UdtTypeName = "MDSYS.SDO_GEOMETRY";
param.Direction = ParameterDirection.Input;
OracleCommand oCmd = new OracleCommand();
oCmd.Connection = this.oConn;
oCmd.CommandText = queryStr;
oCmd.CommandType = CommandType.Text;
oCmd.Parameters.Add(param);
OracleDataAdapter da = new OracleDataAdapter(oCmd);
DataTable dt = new DataTable();
da.Fill(dt);
The exception is generated by the da.Fill(dt) line. -
Swap Space Query for Oracle 11.1.0.6 installation - why so much?
In process of installing 11.1.0.6 DB on RHE Ver 4 with 8GB of RAM. The installation notes state that for platforms of between 2-8GB of RAM - the swap file should be set to the same as the RAM. Is it not the case that the more RAM you have, the less swap space that should be needed since Oracle has more memory to work with. With the 11.1.0.6 installation for platforms of between 2 and 8GB, it appears that the bigger the RAM there is available the more swap space is required - Why is this the case?
What are the implications of using say a 2GB swap file with the 8GB or RAM I have available?
ThanksI was confident that the docs were correct - I guess I was looking to understand why the more RAM you had available up to 8GB, the more swap space that was required - basically to understand the underlying logic of this setup?
-
Execute query for oracle forms tab pages
Hi Guru's,
Please help me how to work on execute query with forms tab pages. I have created three tabs like A, B & C in one canvas.
I have three tables and I have created three tabs in one canvas. And there is no master detail relationship with these three tables.
I have written the code in form level - when-new-form-instance like do_key('execute_query') but when i see at run time its executing for first tab A not for tab B or tab c.
How to get the data or execute the data in tab B and tab C.
Thanks
RS1- create a block blk_1 add items item_1,Item_2 and Item_3.
2- create main canvas main_canvas. type Content.
3- create tabcanvas TABCANVAS . Type Tab
4- Create tabpages tb_1,tb_2 and tb_3.under tabcanvas
5- create stack1,stack2 and stack3.type stack.
6- put Item_1,Item_2 and Item_3 under stack1,stack2 and stack3.
add when tabpage change trigger.
Declare
V_TapPage_Name VarChar2(100);
Begin
Show_View('TABCANVAS');
V_TapPage_Name := Get_Canvas_Property('TABCANVAS',TOPMOST_TAB_PAGE);
If V_TapPage_Name = 'TP_1' Then
Go_Item('Blk_1.ITEM_1');
Show_View('STACK1');
Hide_View('STACK2');
Hide_View('STACK3');
ElsIf V_TapPage_Name = 'TP_2' Then
Go_Item('Blk_1.ITEM_2');
Show_View('STACK2');
Hide_View('STACK1');
Hide_View('STACK3');
ElsIf V_TapPage_Name = 'TP_3' Then
Go_Item('Blk_1.ITEM_3');
Show_View('STACK3');
Hide_View('STACK1');
Hide_View('STACK2');
End If;
End;
Edited by: kingadmin on 20/04/2011 02:15 ص
Edited by: kingadmin on 20/04/2011 02:16 ص -
Executing Native SQL query for oracle
Hi,
I want to run following native sql query but it is giving me error ora:933,
DATA: BEGIN OF WA,
TSP_NAME(255) TYPE C,
PER_USAGE(10) TYPE C,
END OF WA.
EXEC SQL PERFORMING loop_output.
select t.tablespace_name,'(' || TO_CHAR(ROUND(100*(NVL(b.bytes,0)/NVL(a
.bytes,0)))) || '%)' "TSUsed%" from dba_tablespaces t,
( select tablespace_name, sum(bytes)/1024/1024 bytes
from dba_data_files group by tablespace_name) a,
( select e.tablespace_name, sum(e.bytes)/1024/1024 bytes
from dba_extents e group by e.tablespace_name ) b,
( select f.tablespace_name, sum(f.bytes)/1024/1024 bytes
from dba_free_space f group by f.tablespace_name ) c
where t.tablespace_name = a.tablespace_name(+) and
t.tablespace_name = b.tablespace_name(+) and
t.tablespace_name = c.tablespace_name(+) into :wa.
ENDEXEC.
Please provide me the soln
Regards,
Bharat MistryORA-00933: SQL command not properly ended.
Try:
EXEC SQL PERFORMING loop_output.
select
into :wa
ENDEXEC.
(No "." at the end). If that doesn't work, try ending it with a ";"
Rob
Maybe you are looking for
-
Runtime error in Profit Center reports.
Hi Im getting abap dumps whenever i try to access the following two PCA reports: S_ALR_87013326 and S_ALR_87013327 SYNTAX_ERROR The termination occured at: Termination occurred in the ABAP program "SAPLKYP4" - in "RKD_REPORT_START_ONLINE". The main
-
Create a message with empty file in Service pack 9
Hello. I have the Service pack 9, and when PI read an emtpy file delete it inmediately. Is there any way to create the message with an empty file? How? Thank you.
-
Trying to use SPDIF BYPASS with X-Fi Titanium Fatal1ty
I need help guys!! I've bought a Creative X-Fi Titanium Fatalty Pro PCI-E x a few days ago and everything is working great with the lastest drivers (even DTS Connect, Interacti've, DDL, etc... Everything is fine) but now i want to use the digital inp
-
Integrating flash videos into shopping cart
Hi everyone, Absolute flash newbie talking here so please be patient. I have shopping cart we sites and want to show a number of flash videos per product. The titles may differ per product or in some cases a product will show the same video as anothe
-
Macintosh Compatibility with Networkable A/V Receivers (Yamaha, Sony, Denon
My trusty HK 8000 died and I researched high end receivers such as the Sony 6400Es. In every instance, they all said their receivers are not Macintosh compatible and I could not stream audio or video thru the receiver via the network but it would wor