Count query always return value 1
Hi all,
I got the following sql command :-
select count(*)
from mtl_txn_request_lines mtrl
WHERE mtrl.date_required >= to_date(:fdate || '00:00:00','DD-MON-YYYY HH24:MI:SS') and mtrl.date_required <= to_date(:Tdate || '23:59:59','DD-MON-YYYY HH24:MI:SS')
and mtrl.header_id = :header_id1
however when I put into the report, the count value always show 1. ( :header_id1 is the key search from another query ).
Rgds
Lim
did you get 1 when you run it on sql/plus too?
Similar Messages
-
Oracle Query Always return records
I want to have an Query In Which i always want to return one records regardless of exitence.
If no records exist ...it should appear as
NAME ID
0 0
if records exit it should appear as
NAME ID
manish 1Hi,
You can do that with a UNION of your real query and something that selects the default values from dual. Just be sure the second part returns 0 rows when the real query returns anything.
WITH real_query AS
SELECT name
, id
FROM table_x
WHERE ...
SELECT *
FROM real_query
UNION ALL
SELECT '0' AS name
, 0 AS id
FROM dual
WHERE NOT EXISTS (
SELECT 1
FROM real_query
;As always, be careful that the two prongs of the UNION have the same number and types of columns in the SELECT clause. -
Restrictive query always returns no rows
I am trying to run a query with a where clause, but I'm always getting no rows returned. I am obviously overlooking something. Here are my scripts that are on the employee dept tables.
The scripts run without any errors and when I do a 'select * from dept_xml' I get the complete XML output. However if I run the query
select * from dept_xml
where existsNode(sys_nc_rowinfo$, '/DEPT_T[DEPTNO=40]') = 1
no rows returned
WHY??
drop type emp_t force
drop type emplist_t force
drop type dept_t force
drop type deptlist_t force
drop type depts_t force
CREATE OR REPLACE TYPE emp_t AS OBJECT
EMPNO NUMBER(4),
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(8,2),
COMM NUMBER(8,2)
CREATE OR REPLACE TYPE emplist_t AS TABLE OF emp_t
CREATE OR REPLACE TYPE dept_t AS OBJECT
DEPTNO NUMBER(2),
DNAME VARCHAR2(14),
LOC VARCHAR2(13),
EMPS EMPLIST_T
CREATE OR REPLACE TYPE deptlist_t AS TABLE OF dept_t
CREATE OR REPLACE TYPE depts_t AS OBJECT
DEPTS DEPTLIST_T
begin
dbms_xmlschema.deleteSchema('http://www.oracle.com/depts.xsd', 4);
dbms_xmlschema.registerSchema('http://www.oracle.com/depts.xsd', dbms_xmlschema.generateschema('SCOTT','DEPT_T'),TRUE,FALSE);
end;
CREATE OR REPLACE VIEW dept_xml OF XMLTYPE
XMLSCHEMA "http://www.oracle.com/depts.xsd" ELEMENT "DEPT_T"
WITH OBJECT ID (sys_nc_rowinfo$.extract('/DEPT_T/DEPTNO').getNumberVal())
AS
SELECT dept_t(d.deptno,
d.dname,
d.loc,
cast(multiset(SELECT emp_t(e.empno,
e.ename,
e.job,
e.mgr,
e.hiredate,
e.sal,
e.comm)
FROM emp e
WHERE e.deptno = d.deptno)
AS emplist_t))
FROM dept d;#1. I would strong recommend using the SQL/XML operators (XMLElement, XMLForest etc)to define your view, rather than creating SQL Types. We will be focusing future development on improving the performance and functionality of the SQL/XML operators, so these operators are now the preferred approach.
#2 Please post the XML document that is generated by teh view. I suspect that the XPATH expression does not match the generated docuemnt. -
Query Read returns # values
Experts ,
Please advise on below issue ...
Comparing two systems (Dev and Quality)
In execution for below read method (for BPC infocube) same parameters are passed (lt_range & ct_data_income), but in dev system <Lt_read_out> gets junk values (As ####)for all fields except ones selected in lt_range
CALL METHOD me->read
EXPORTING
it_range = lt_range
it_data_income = ct_data_income
IMPORTING
ef_end_of_data = lf_end_of_data
et_current = <lt_read_out>
CHANGING
cf_first_call = lf_first_call.
Further drilling down, it calls the below DB_SQL function which is not possible to debug into it and again all parameters passed are the same in both systems but <outtab> gets junk (##) values
CALL 'C_DB_FUNCTION' ID 'FUNCTION' FIELD 'DB_SQL'
ID 'FCODE' FIELD c_fcode_next_package
ID 'CONNAME' FIELD me->con_ref->con_name
ID 'CONDA' FIELD me->con_ref->con_da
ID 'CURSOR' FIELD me->cursor
ID 'BOUND' FIELD me->outvals_bound
ID 'OUTVALS' FIELD me->parameters->param_tab
ID 'OUTTAB' FIELD <outtab>
ID 'LINE' FIELD <line>
ID 'UPTO' FIELD upto
ID 'ROWCNT' FIELD rows_ret
ID 'SQLCODE' FIELD sql_code
ID 'SQLMSG' FIELD sql_msg.
Checked on SQL traces in ST05, but no logs for execution of 'C_DB_FUNCTION'
Thanks & Regards,
Anup SinghHi Gersh,
When trying to insert values through Input schedule , It is creating a new value in BPC infocube instead of inserting only Delta values (so that it overwrites existing values).
During debugging , I'm finding that - When it reads from info cube with "CALL METHOD me->read"
It is reading ## values for all fields expect for BPC dimensions (Characteristics of Infocube)
ie.. Dimension package of Infocube (0CHNGID , 0REQUID & RECORDDTP) has ## values
All Navigational attrbutes has ### values
Only BPC Dimension and Key figure has correct values
As shown below : Data structure read from info Cube gets ## values and Data structure to be inserted has blank space , So it doesn't calculates delta value inserts as new value in info cube
This ## values are getting populated from function "CALL 'C_DB_FUNCTION' ID 'FUNCTION' FIELD 'DB_SQL' for each of this fields , Is there a way to debug this execution step .... ?
Thanks & Regards,
Anup Singh -
How to create and execute a function whose return value is a table
hi folks ,
i would like know how to create and execute a function whose return value is a table ,
am new to pl/sql ,
my statement for the function is
SELECT ct.credential_code, c.expiration_date
FROM certifications c, credential_types ct
WHERE ct.crdnt_id = c.crdnt_id
AND c.person_id = person_id;
i would like to have the result of the above query as return value for the function.
Thanks in advance ,
Ashok.chi Ps ,
Can you please do small sample ,
that would help me in clear understanding
thanks in advance
ashok.c -
Select query having count function is returning null
Hi Everyone,
Please see the query and help me to get this solved.
DB version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
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 - ProductionQUERY
SELECT COUNT(*) as V_COUNT
FROM LAB_ORDER_TMPLT_TEST
WHERE TEST_ID IN
(SELECT WEST_TEST_ID
FROM TEST_CODE_CONVERSION TCC
WHERE TCC.EAST_TEST_ID = 2769)
GROUP BY LAB_ORDER_TMPLT_ID
HAVING COUNT(*) > 1;
It's returning null. Is there any way I can get the value as zero instead of null? Please help.Regards,
BS2012.Hi,
BS2012 wrote:
Hi Everyone,
Please see the query and help me to get this solved.
DB version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
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 - ProductionQUERY
SELECT COUNT(*) as V_COUNT
FROM LAB_ORDER_TMPLT_TEST
WHERE TEST_ID IN
(SELECT WEST_TEST_ID
FROM TEST_CODE_CONVERSION TCC
WHERE TCC.EAST_TEST_ID = 2769)
GROUP BY LAB_ORDER_TMPLT_ID
HAVING COUNT(*) > 1;
It's returning null.
Really? COUNT never returns NULL; it always returns 0 or a positive integer.
Do you mean the query results in "no rows selected"?
Is there any way I can get the value as zero instead of null? Please help.Do you want a query that will produce the same output as the query above, but will produce a single row containing 0 when the query above does not produce anything? That sounds like a job for an outer join:
WITH original_query AS
SELECT COUNT(*) AS v_count
FROM lab_order_tmplt_test
WHERE test_id IN
( SELECT west_test_id
FROM test_code_conversion tcc
WHERE tcc.east_test_id = 2769
GROUP BY lab_order_tmplt_id
SELECT NVL (o.v_count, 0) AS v_count
FROM dual
LEFT OUTER JOIN original_query o ON o.v_count > 0
;If you'd care to post CREATE TABLE and INSERT statements for the sample data, then I could test this. -
Query to return ALL rows even those with zero counts
Hi,
The following query will return only those rows that have a non zero count value:
select c.id, a.name, count(*) as XYZ from CON c, CUST a
where c.help !='1' and (c.id = a.id) group by c.id, a.name order by c.id;
The results are:
1 ME 3
3 YOU 4
What i want is to return all rows in CUST and the count, XYZ, that correspond to each row in CUST that matches the whare condition above, even if the count is zero.
ie
1 ME 3
2 WE 0
3 YOU 4
Can this be done?You may want to get the counts then do the outer join. If you simply count with an outer join you will get 1 for 'WE' because there is a row in the cust table with 'WE'. This may work for you;
with
cust as (
select 1 id, 'ME' name from dual union all
select 2 id, 'YOU' name from dual union all
select 3 id, 'WE' name from dual),
con as (
select 1 id, '2' help from dual union all
select 1 id, '2' help from dual union all
select 1 id, '2' help from dual union all
select 2 id, '2' help from dual union all
select 2 id, '2' help from dual union all
select 2 id, '2' help from dual union all
select 2 id, '2' help from dual)
-- end of test data
select a.id, a.name, nvl(c.cnt,0) xyz
from cust a,
(select id, help, count(*) cnt
from con
where help !='1'
group by id, help) c
where a.id = c.id(+) -
Select query on table rcv_lots_interface is always returning null
Hi ,
I need a help on the below issue.
The issue is after creating PO in Oracle 11i I receive it in MSCA application.
When we receive it at that point data gets inserted in the table " rcv_transactions_interface " and we have written a trigger on it.
From the trigger on table " rcv_transactions_interface " we are calling a package and in the package we have select query on "rcv_lots_interface."
But the select query is always returning null even though we are passing the correct "interface_transaction_id " and also after the "Receiving Transaction Processor" is executed i can see data in the table " RCV_LOT_TRANSACTIONS " for the same transaction.
Below is the sample code i am using.
CREATE OR REPLACE TRIGGER inv.RCV_TRAN_TRIGGER
AFTER UPDATE
ON po.rcv_transactions_interface
FOR EACH ROW
WHEN (NEW.processing_status_code='PENDING'
AND NEW.destination_type_code IN ('INVENTORY','RECEIVING')
AND NEW.mobile_txn = 'Y')
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
v_user_id NUMBER;
v_interface_transaction_id NUMBER;
v_organization_id NUMBER;
v_item_id NUMBER;
v_quantity NUMBER;
v_resp_id NUMBER;
v_mobile_txn VARCHAR2(5);
v_shipment_header_id NUMBER;
v_bill_of_lading VARCHAR2(100);
v_group_id NUMBER;
v_header_interface_id NUMBER;
BEGIN
v_interface_transaction_id := :NEW.interface_transaction_id;
v_organization_id := :NEW.to_organization_id;
v_user_id := :NEW.created_by;
v_item_id := :NEW.item_id;
v_quantity := :NEW.quantity;
v_resp_id :=fnd_profile.VALUE('RESP_ID');
v_transaction_type := :NEW.transaction_type;
v_mobile_txn := :NEW.mobile_txn;
v_bill_of_lading := :NEW.bill_of_lading;
v_group_id := :NEW.group_id;
v_header_interface_id := :NEW.HEADER_INTERFACE_ID;
INV.INV_RCV_TRX_PKG.INV_RCV_LABEL_GEN_PRC( v_user_id,
v_interface_transaction_id,
v_item_id,
v_quantity,
v_organization_id,
v_resp_id,
v_shipment_header_id,
v_bill_of_lading,
v_header_interface_id,
v_group_id);
END;
CREATE OR REPLACE PACKAGE BODY INV.INV_RCV_TRX_PKG
AS
PROCEDURE INV_RCV_LABEL_GEN_PRC( p_user_id IN NUMBER,
p_interface_transaction_id IN NUMBER,
p_item_id IN NUMBER,
p_quantity IN NUMBER,
p_organization_id IN NUMBER,
p_resp_id IN NUMBER,
p_shipment_header_id IN NUMBER,
p_bill_of_lading IN VARCHAR2,
p_header_interface_id IN NUMBER ,
p_group_id IN NUMBER
IS
v_user_id NUMBER;
v_print BOOLEAN;
v_resp_id NUMBER;
v_resp_appl_id NUMBER;
v_lot_num VARCHAR2(50);
BEGIN
BEGIN
SELECT application_id
INTO v_resp_appl_id
FROM apps.fnd_responsibility_tl frt
WHERE responsibility_id=p_resp_id;
END;
apps.fnd_global.apps_initialize(p_user_id, p_resp_id, v_resp_appl_id);
BEGIN
SELECT rli.lot_num , rli.expiration_date
INTO v_lot_num ,
v_expiration_date
FROM apps.rcv_lots_interface rli
WHERE rli.interface_transaction_id = p_interface_transaction_id ;
EXCEPTION
WHEN OTHERS THEN
v_lot_num :=NULL;
v_expiration_date :=NULL;
apps.fnd_file.put_line(fnd_file.log,'Exception while deriving LOT Number ######### '||p_interface_transaction_id||'------'||SQLERRM);
END;
END;
Need your help to understand why the below query is always returning null and what is the solution for it ?
SELECT rli.lot_num , rli.expiration_date
FROM apps.rcv_lots_interface rli
WHERE rli.interface_transaction_id = p_interface_transaction_id ;
Thanks
Jaydeep
Edited by: user10454886 on Mar 25, 2013 6:31 AM
Hi ,
I need a solution to this issue at the earliest.
Appreciate all of your help
Thanks
JaydeepCentinul wrote:
There are a lot of bugs listed in Metalink with respect to wrong results and function-based indexes.
Here are a few:
Bug 4028186 Wrong results if function based index exists
Bug 4717546 Wrong results / poor plan when function based index exists
Bug 5092688 Wrong results if function based index exists
Based on reviewing them the workarounds range from dropping the index to setting "_disable_function_based_index" to TRUE.Facinating. It seems to me that if you use the undocumented intitialization parameter you might just as well drop the FBIs too.
Another hazard of FBIs is the Law of Unintended Consequences. 2 years ago we tried to use one to speed up a query in a PL/SQL package. Worked OK for that purpose, but an unrelated loader on the affected table ran and rand but never finished until the FBI was dropped. -
Create SP that returns value and at the same time displays query result in output window
I would like create an SP which will return the records from the table and also return value to my c# client application.
For Example:
Select * from employee returns all the query results in output window.
Now I want to create an SP
Create procedure Test
As
Declare @ret int,
Select * from employee
set @ret = Select count(*) from employee
if @ret > 0
return 1
else
return 0
The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
Can u pls help in this regard.The above algo should return 1 0r 0 to c# client application and at the same time display all employees in sql query output window.
Why? and No!
Why? Your procedure generates a resultset of some number of rows. You check the resultset for the presence of rows to determine if "anything is there". You don't need a separate value to tell you this. Note that it helps
to post tsql that is syntactically correct. While we're at it, if you just need to know that rows exist there is no need to count them since that does more work than required. Simply test for existence using the appropriately-named function
"exists". E.g., if exists (select * from dbo.employee).
No! A stored procedure does not display anything anywhere. The application which executes the procedures is responsible for the consumption of the resultset; it chooses what to do and what to display.
Lastly, do not get into the lazy habit of using the asterisk in your tsql code. That is not best practice. Along with that, you should also get into the following best practice habits:
schema-qualify your objects (i.e., dbo.employee)
terminate every statement - it will eventually be required. -
Return value for Direct OBPM SQL Query in OBPM 10GR3
Hi all,
I use a direct SQL Query provided by OBPM 10GR3 in my automatic activity to select certain elements from the db. The query is as follows:-
foreach (element in
SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
// statements
logMessage("-- The id is-->" +element.id);
This only returns when the id is found in the db but returns nothing when not found in db?
How can I always get a return value? atleast a true or false, so that I can put IF statements?
Because if it returns nothing, the loop does not execute {}? So we cannot put something like:-
foreach (element in
SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
logMessage("-- The id is-->" +element.id);
if(element.id == null)
logMessage("-- Id Not Found -->" );
else
logMessage("-- Id Found -->");
How can I always get a return value from my OBPM direct query ?
Remember , I am not using DynamicSQL in this case?Hi,
Set a Boolean flag value to False before the SQL query.
Some thing like:
boolean flag = false;
foreach (element in
SELECT id FROM TESTTABLE WHERE requestId = 732 and status = 1 )
logMessage("-- The id is-->" +element.id);
flag = true;
if(flag) {
logMessage("-- Id Found -->" );
else
logMessage("-- Id Not Found -->");
Hope the above logic would work fine.
Bibhu
Edited by: Bibhuti Bhusan on Sep 2, 2011 11:48 AM -
PCI-6133 always returns huge constant number of counts
Hi,
I am trying to use a PCI-6133 with a BNC-2110 adapter to counting leading edges of pulses. Please excuse my high degree of ignorance of how to do this. Anyway, I connected up my TTL input signal according to the BNC-2110 instructions (to PFI-8 via User-2). Whenever I run the DAQmx sample program Count Digital Events.vi, it recognizes the PCI-6133 OK, but always returns an absurdly high and constant number of counts, like 3.2e9. The number doesn't change as I send test pulses into the input. It also remains the same even if I disconnect the input line entirely and rerun the sample program.
Rebooting yields the same behavior.
Using DAQ assistant to generate my own code, instead of the sample program, produced exactly the same result.
Thanks for any help you can give me. I don't even know where to start to debug this problem.
Thanks,
AndyBVeezy wrote:
How/what exactly are you measureing from;? Are you wiring the digital signal directly into PFI 8? Have your tried using the other counter (CTR1) on the 6133? It should be PFI 3 (as indicated in the manual). You may also try generating a pulse signal from the 6133 and reading it with this VI to determine if your source may be the issue (you could use PFI 2 as a Digital Output for this). Finally, does it read the same value every time you run it (the reported 3.2e9)?
Regards,
Brandon V.
Applications Engineer
National Instruments
Thank you very much for your help.
How/what exactly are you measureing from;?
I am measuring (counting) TTL pulses coming from a TTL driver. They are about 1 us long and nominal TTL high and low values. The pulses look fine on a scope. The rate is very low, typically a few Hz up to perhaps 200 Hz. The behavior is the same regardless of whether I have the input signal connected to the BNC-2110, however. The pulses are ultimately generated by a neutron detector, with a bunch of signal processing in between.
Are you wiring the digital signal directly into PFI 8?
The input signal is connected by BNC cable to the "User 2" port on the BNC-2110. A jumper wire connects the "User2" PFI Terminal to the "PFI-8" PFI Terminal. Again, the behavior is exactly the same regardless of whether these wires are installed or not.
Have your tried using the other counter (CTR1) on the 6133?
The behavior is exactly the same on ctr1, which has no wires connected to it.
You may also try generating a pulse signal from the 6133 and reading it with this VI to determine if your source may be the issue (you could use PFI 2 as a Digital Output for this).
I tried running a "test panel" in MAX to count the 20 MHz internally generated signal. It gave the exact same results, on both ctr0 and ctr1. It did not throw any error message.
Finally, does it read the same value every time you run it (the reported 3.2e9)?
It reads the same value every time I run the sample VI or test panel (3217997774) on both channels, except that the number changes to a different constant number (very close) when I reboot the computer.
I have been wondering if the problem might be associated with the configuration of the ports on the PCI-6133. The manual repeatedly says that you can configure the ports to input or output, for example, but it is not clear to me how to do that. When I right-click the device in MAX, "Configure" is not one of the choices, despite what it says in the "Getting Started" manual.
Again, thanks for your help.
Take care,
Andyaina -
How to Sort by the length of the returned value from a query.
Hi,
I was wondering if it is possible to sort by the length of the returned value from a query?
For example if I want to get a list of people with the name 'Samuel', I would like to short by how short the length of the whole name is.
Sort by length of the name in SQL
Samuel Syda
Samuel Indranaka
Samuel Johnsons
Samuel Longhenderson
Thank you.Hi,
Sorting is done by an ORDER BY clause at the end of the main query.
In most cases, you can ORDER BY any expression, even f it is not in the SELECT clause. In this case, it sounds like you just need:
ORDER BY LENGTH (name_column)
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Post your query, using an ORDER BY clause like the one above, and point out where that query is producing the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Sys_refcursor not fetching any data although query returns value
hi!!!
I am using sys_refcursor to return columns,and using below procedure to do so.Although data is there in table_1 and table_2.
PROCEDURE test_pro(abc_date N DATE,
cur_get_data OUT sys_refcursor
OPEN cur_get_data
for
select A.col1,B.col2
from table_1 A
where A.dis_date=abc_date
left outer join
table_2 B
on
A.dis_date=B.dis_date;
IF cur_get_data%rowcount=0
then
raise e_error;
END if;
EXCEPTION
when e_error
then
------no_data_found;
when others
then
--------(giving SQL error with error code);
END test_pro;
while running below sql in sql window of pl/sql developer fetching
data
select A.col1,B.col2
from table_1 A
where A.dis_date=abc_date
left outer join
table_2 B
on
A.dis_date=B.dis_date;
but while testing the test_pro in test window of pl/sql developer it is
not fetching any data and raising e_error each time
is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
so can somebody please put some ideas what cud be the possible reason for this??Welcome to the forum!
Unfortunatley you posted to the wrong forum. This question belongs in the SQL and PL/SQL forum.
PL/SQL
>
sys_refcursor not fetching any data although query returns value
but while testing the test_pro in test window of pl/sql developer it is
not fetching any data and raising e_error each time
is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
>
A cursor doesn't fetch data - your code has to do that. The code you posted doesn't have any FETCH statements so no data will be fetched.
There is no problem using 'IF cur_get_data%rowcount=0' but it will always be 0 in your code because you are not fetching any data.
I'm guessing that you are trying to determine if there are any rows for the query. That isn't going to work since a cursor doesn't fetch rows.
You just have to return the cursor to the caller and the caller will have to perform at least one fetch to see if there are any rows.
If the above answers your question the just mark the question ANSWERED. Otherwise, since you have posted in the wrong forum
1. repost the question in the SQL and PL/SQL forum
2. Edit this post to add a link to the new thread in the other forum
3. Mark this question ANSWERED so people will follow up in the other forum.
Thanks. -
GUID generation issue, SYSUUID always returns the same value.
Hi,
I'm using "SELECT SYSUUID FROM DUMMY" to get a guid value but it always return the same value.
What should I do to get a unique value each time I execute the query above.
Thanks.I thought I had the same problem and I found that if you generate multiple UUID's in the same SQL, it they will be the same. If you make multiple calls, you should get multiple UUID's.
Try this:
SELECT SYSUUID as UUID1 FROM DUMMY;
SELECT SYSUUID as UUID2 FROM DUMMY;
I get the following results:
UUID1 = 538632FD7EA20426E10000000A3F10A9
UUID2 = 538632FE7EA20426E10000000A3F10A9
Notice that the strings look almost identical, but the 8th character on UUID1 is a D and the 8th on UUID2 is a E.
Jim -
SQL Query returns values like "---" and "NA"
Hi
When I execute a sql query in MII it returns values like "---" and "NA" for empty Char and numeric fields respectively.
I have checked the database and made sure that these fields does not have any value. This happens only when I run the query through MII. Can any one know how can we get rid of these values?
Thanks in advance
ShajiShaji,
MII sets those values as a default if it discovers null values in a query result. You can change this default behaviour in several ways.
First, have a look at the document [Setting custom null values in XML|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70628af0-8ec4-2c10-7da2-f451e412dd8f?quicklink=index&overridelayout=true]. Then you may also use SQL functions like [NVL|http://www.techonthenet.com/oracle/functions/nvl.php] to change the value directly in the SQL query. You can also change the value inside the MII BLT to whatever you need.
Michael
Maybe you are looking for
-
Has this ever happend to anyone, i bought a new computer in Janaury plugged in the iphone after itunes and my ipod had already worked correctly. Then once the iphone was syncing the dreaded "blue screen" popped up. My computer crashed losing everyith
-
Can you use apple tv to project from a regular projector and mac/ipad?
I am trying to project things from an ipad to a projector - wireless, without a HD but a regular projector and a Mac. Can Apple TV help me do that or do I need an actual HD TV to use the Apple TV to project.
-
Can't get past the Blue Screen during startup
I decided to upgrade the 4/8/08 firmware on my aluminum bluetooth keyboard this afternoon using my mac mini. Shortly after the procedure started, something happened to the keyboard and it could not complete the install. I tried a second time, but aga
-
Important Note: Memory Management
If you encounter low memory messages including "Available app space" or "Storage space running out" please check the software on your tablet: 1) Go to Settings 2) Select About Tablet 3) Refer to SW Version If the SW Version on your Ellipsis 7 tablet
-
Language translation from Development class
Hi Experts, I have a small problem regarding language translation. Here i have to translate all the texts from one language to all other available languages from development class. Suppose for example all the texts of reports in a developmen