<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi All:<br><br>&nbsp;&nbsp; Is item b the link item ? <br><br>&nbsp;&nbsp; I believe QTP is working as described in the manuals. <br><br>&nbsp;&nbsp; Some of the later versions of Oracle allow for external tables. <br>&nbsp;&nbsp; If you have declare file_a to be an external table in Qracle then you can<br>&nbsp;&nbsp; join file_a to Oracle_file_b.<br><br>&nbsp;&nbsp; If you did the the optional join in a cursor and NULLS are allowed in the dictionary <br>&nbsp;&nbsp; definition then QTP and Quiz should work similarly.<br><br>&nbsp;&nbsp; i.e.<br><br>&nbsp;&nbsp; Declare XYZ cursor &amp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for select .... from file_a A left join Oracle_file_b B &amp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on A.link_item = B.link_item <br><br>&nbsp; Access XYZ<br><br><hr id="stopSpelling">Date: Mon, 19 Apr 2010 13:12:31 -0700<br>From: danhl@rogers.com<br>Subject: Initializing when Oracle record does not exist<br>To: powerh-l@lists.sowder.com<br><br>

<style>
.ExternalClass DIV
{;}
</style><div style="font-family: tahoma,new york,times,serif; font-size: 10pt;"><div>Hello,</div>
<div>&nbsp;</div>
<div>&nbsp; When linking to&nbsp;an Oracle table where the record does not exist,&nbsp;Quiz and QTP seem to handle it differently. Quiz regards the items in the missing record to be null while QTP&nbsp;initializes them&nbsp;to&nbsp; " "&nbsp;or 0 (for char or num type) - ie. the old, familiar, non relational db case.</div>
<div>&nbsp;</div>
<div>eg. </div>
<div>&nbsp;</div>
<div>Access file_a link to Oracle_file_b optional</div>
<div>&nbsp;</div>
<div>define d_b char*5 = "Null" if b of Oracle_file_b is null</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else&nbsp;&nbsp;&nbsp;&nbsp;b of Oracle_file_b&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>
<div>&nbsp;</div>
<div>&nbsp;(I want d_b to be null if b is null, or if the record does not esist)</div>
<div>&nbsp;</div>
<div>In Quiz if the record Oracle_file_b does not exist, d_b&nbsp; will be "Null" </div>
<div>&nbsp;</div>
<div>In QTP it will be&nbsp;" "</div>
<div>&nbsp;</div>
<div>Does anyone know why ? I would prefer both Quiz and QTP to act the same way and for Oracle files not existing, initialize to null.</div>
<div>&nbsp;</div>
<div>Because of this, I must add a separate condition in QTP either:</div>
<div>&nbsp;</div>
<div>&nbsp; ... or record Oracle_file_b does not exist ...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; or</div>
<div>&nbsp; ... or b of Oracle_file_b = " "</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Dan</div>
<div>&nbsp;</div>
<div>&nbsp;</div></div>                                               <br /><hr />Live connected.  <a href='http://go.microsoft.com/?linkid=9724459' target='_new'>Get Hotmail & Messenger for mobile.</a></body>
</html>