Compare to fields and show which ones dont exists?
Hi
I have two tables, one is SR_TRANSACTIONS and the other is SR_CUSTOMERS.
I want to report on which companies are listed in SR_TRANSACTIONS but not in SR_CUSTOMERS i.e which ones need to be added before this database goes live.
This is the query that shows a list of matching companies in both tables, could you suggest a modification of this code that shows which companies arent listed in SR_CUSTOMERS but are listed in SR_TRANSACTIONS?
select DISTINCT "SR_CUSTOMERS"."NAME" as "NAME",
"SR_TRANSACTIONS"."CUSTNAME" as "CUSTNAME"
from "SR_TRANSACTIONS" "SR_TRANSACTIONS",
"SR_CUSTOMERS" "SR_CUSTOMERS"
where "SR_TRANSACTIONS"."CUSTNAME" = "SR_CUSTOMERS"."NAME" Thanks
Adam
Use an outer join, like in following example :
TEST@db102 > select * from dept;
DEPTNO DNAME LOC
10 ACCOUNTING NEW YORK
20 RESEARCH DALLAS
30 SALES CHICAGO
40 OPERATIONS BOSTON
TEST@db102 > create table dept1 as select * from dept;
Table created.
TEST@db102 > delete dept1 where deptno=30;
1 row deleted.
TEST@db102 > select a.* from dept a, dept1 b
2 where a.deptno = b.deptno(+)
3 and b.deptno is null;
DEPTNO DNAME LOC
30 SALES CHICAGO
TEST@db102 >
Similar Messages
-
I would like to compare two field and then is it's true then the output will be the 2nd one
Hello All,
I am doing a mappong where i need to compare two field and then if there are equal the 2nd one should be the output and 2nd value will be using multiple segment.
It's for shipment.
Regards
RituparnaNot sure if i understand correctly. But you are trying to compare one field with multiple occurrences of another field.
You can make use of the node function "Use One as Many" and repeat the first value as many times as the second value.
Please refer to below wiki.
Explain node functions - Process Integration - SCN Wiki -
How to compare two dates to know which one is greater than oher?
how to compare two dates to know which one is greater than oher?
Please search before asking basic questions.
Edited by: Rob Burbank on Mar 27, 2009 9:26 AMHi,
If thse to date fields are of same type u can directly compare like this.
regards,
Bharat. -
So i have 29 albums and my computer says it has 2.55gb on the itunes, and im planing on getting a iphone 5 that has 16gb or 32gb and idk which one to get? Idk but i just need to know how much storage that can hold 2.55 gb of albums and rest of the apps and pic i gonna put on this iphone 5 im getting! please help!!!!! (16gb or 32gb?) If maybe can i get some tips about Storage!
I certainly owuld not get the 16 Gb. My old phone had 32 Gb and it was pretty much full. I just depends on what you wan tto place on it in the way music, apps, videos etc
-
After update ios. iPhone asks me to write the password and id which i dont know
hello! I have a problem with my iphone 5 ,after update ios.Iphone asks me to write the password and id which i dont know because all settings set in Egypt when i bought IPHONE.Is it possible to change id or make smth with this problem? I bought the Iphone in Egypt
serial nomber F1*******TWH
IMEI *****
<Edited By Host>Vyacheslav1987 wrote:
I unfortunatly could`t to contact with seller
Then you will not be able to use the iPhone.
Is it possible to change id or make smth with this problem?
Not unless you have the previous owner's AppleID and password or can contact them.
Sorry but why i can `t use my IPHONE?
Because it is Activation locked.
See this -> Find My iPhone Activation Lock: Removing a device from a previous owner’s account -
In most web sites many web sites, the menu buttons do not appear i have to scroll over the screen until the cursor changes indicating a button is actually there, and guess which one it is. I am using windows 7 , 64 bit
See:
* http://kb.mozillazine.org/Website_colors_are_wrong
* http://kb.mozillazine.org/Websites_look_wrong -
Nolock and readpast which one give efficient performance
Dear All,
please help me.
in both nolock and readpast which one give efficient performance.
mastanvali shaikDear All,
please help me.
in both nolock and readpast which one give efficient performance.
mastanvali shaik
Both are equally bad and are used by coders who just want to get things done and don't care about data integrity. So bottom line both are bad , avoid it.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Create list of files in folder, choose file and show choosen one
Hello,
I have got several txt-files in a folder. I list them with "List Folder".
Now I want to choose one of them and show it in a string indicator.
Unfortunately I dont know how to implement that. Can someone please help me with that ?
Karl-HeinzSure for a listbox just use the "item names" property to store and retrieve the filenames which will be a 1-D array and the value of the listbox to index the array then do the rest as you have already done.
For a table you'll need to index the 2-D array.
I've attached an example using the listbox.
Systems Test Engineer
Certified LabVIEW Architect (CLA)
Attachments:
Select_File_Listbox.vi 21 KB -
Hi there,
I am setting up SQL Server (to be used in our SharePoint 2013 farm).
The Firewall exception for SQL server gives me three choices in Profile section as
Domain, Public and Private profiles
Which ones should I choose please?
Thank you so much.Hi,
According to your description, my understanding is that you want to set the firewall exception for SQL server.
Domain profile—This profile is active when the server is connected to an Active Directory (AD) domain via an internal network. This is the profile that's typically active, because most servers are members of an AD domain.
Private profile—This profile is active when the server is a member of a workgroup. Microsoft recommends more restrictive firewall settings for this profile than for the domain profile.
Public profile—This profile is active when the server is connected to an AD domain via a public network. Microsoft recommends the most restrictive settings for this profile.
More information, please refer to the link:
http://windowsitpro.com/windows/windows-server-2008-r2-firewall-security
Please 'propose as answer'
if it helped you, also 'vote helpful' if you like this reply.
Prabhu -
Xsd and dtd: which one will overrule
Hi,
if I have both DTD and XSD, and the rules in them are conflicting (say: the DTD indicates that an element is mandatory and the XSD is indicating that the element is optional): which one will overrule?
Kind regardsAn XML document may have only either a DTD or a schema specified.
-
Has anyone had a problem with their iPad touchscreen not working? Mine is fully charged, keeping time, and showing me there are apps that need updates, but I can' get the touchscreen to work. I've turned it off and on several times and connected it o my laptop hoping it would "unfreeze", but nothing seems to work. Any ideas?
Frozen or unresponsive iPad
Resolve these most common issues:
• Display remains black or blank
• Touch screen not responding
• Application unexpectedly closes or freezes
http://www.apple.com/support/ipad/assistant/ipad/
iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
What to Do When Your iPad Won't Turn On
http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
iOS: Not responding or does not turn on
http://support.apple.com/kb/TS3281
iPad: Basic troubleshooting
http://support.apple.com/kb/TS3274
Cheers, Tom -
Compare 2 fields and change color when they do not match
I have a form where I am totaling up 2 columns. When all is said and done both totals should match, but if they don't I want to change the color of one field to red and display a message.
Thanks,
DianeYou can use the following custom calculation script for a hidden text field. Just make sure that it is after the other two fields in the field calculation order:
(function () {
// Get references to the two fields
var f1 = getField("column1_total");
var f2 = getField("column2_total");
// Get the field values, as numbers
var v1 = +f1.value;
var v2 = +f2.value;
// If the values don't match, set f2 text color to red, otherwise black
if (v1 !== v2) {
f2.textColor = color.red;
app.alert("Column values don't match.", 3);
} else {
f2.textColor = color.black;
This will work if you're summing integers, but not if you're summing real numbers, which is usually the case. For example, this is what JavaScript calculates for the following two additions:
0.4 + 0.5 = 0.9
0.3 + 0.6 = 0.8999999999999999
This is due to the way floating point calculations are performed in JavaScript. In such a case, the code above will consider the two values to be different, even though they may display as the same value (e.g., 0.90) in the field. To deal with this, you can round each field value to a certain number of significant digits before you compare them, like this:
// Get the field values, as numbers rounded to two decimal places
var v1 = util.printf("%.2f", +f1.value);
var v2 = util.printf("%.2f", +f2.value);
and that should take care of it. -
UITextField and knowing which one was first responder
I have a app with several UITextFields and I want to know which textfield was the first responder within the function.
ie I have a text field created in interface builder and its outlet is assigned to nameField.
So how can I know when nameField was the one that received the input from the keyboard of DONE ??
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
return YES;
I've tried
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
[theTextField resignFirstResponder];
if(theTextField == nameField)
NSLog(@"I got here");
return YES;
But my NSLog output is not sent, so I don't know why theTextField is evaluating to false.
ThanksTake a view based application and name it as textField.
Make Sure that in interface builder set each textField delegate to File's Owner. Otherwise it won't work.
Here is the code:
textFieldViewController.h
#import <UIKit/UIKit.h>
@interface textFieldViewController : UIViewController <UITextFieldDelegate> {
UITextField *textField1;
UITextField *textField2;
UITextField *textField3;
UITextField *textField4;
UITextField *textField5;
@property (nonatomic, retain) IBOutlet UITextField *textField1;
@property (nonatomic, retain) IBOutlet UITextField *textField2;
@property (nonatomic, retain) IBOutlet UITextField *textField3;
@property (nonatomic, retain) IBOutlet UITextField *textField4;
@property (nonatomic, retain) IBOutlet UITextField *textField5;
@end
textFieldViewController.m
#import "textFieldViewController.h"
@implementation textFieldViewController
@synthesize textField1;
@synthesize textField2;
@synthesize textField3;
@synthesize textField4;
@synthesize textField5;
- (BOOL)textFieldShouldReturn:(UITextField *)theTextField {
[theTextField resignFirstResponder];
if (theTextField == textField1)
NSLog(@"I Got here");
return YES;
- (void)dealloc {
[textField1 release];
[textField2 release];
[textField3 release];
[textField4 release];
[textField5 release];
[super dealloc];
@end -
Need to compare two fields and populate the other fields.
Hi All,
I have scenario like this.
DATA: text1(150) type C
VALUE 'Step: SHORT DUMP; Scenario: PRE; Date :09.07.2007. Time :13:08:33.'.
DATA: text2(150) TYPE C
VALUE 'Step: &; Scenario: &; &',
DATA: text_A(150) TYPE C,
text_B(150) TYPE C,
text_C(150) TYPE C.
Now I need to compare text1 and text2 and populate text_A, text_B and text_C as follows.
text_A = SHORT DUMP
text_B = PRE
text_C = Date :09.07.2007. Time :13:08:33.
Basically I need to fill text_A, text_A and text_A with the values in text1 which are replaced by '&'.
Can anyone suggest me a code snippet to do it?
Thanks in advance.
Regards
AnkitSorry for slow response - I'm in a different timezone I think... Well it's not a short algorithm, but you could try something like the following (there's probably a sweeter algorithm, but this is what occured to me overnight)... I realise that it's not foolproof as you could have words substituted in for the "&" that also appear in the original message text and that would skew the results...
Jonathan
report zlocal_jc_get_msgvars.
types:
gty_char150(150) type c.
parameters:
p_text_1 type gty_char150 lower case,
p_text_2 type gty_char150 lower case.
initialization.
perform initialization.
start-of-selection.
perform extract_msgv.
*& Form initialization
form initialization.
*" Default screen variables
concatenate
'Step: SHORT DUMP; Scenario: PRE;'
'Date :09.07.2007. Time :13:08:33.'
into p_text_1 separated by space.
p_text_2 = 'Step: &; Scenario: &; &'.
endform. "initialization
*& Form extract_msgv
form extract_msgv.
*" Work out the values that have been substituted
*" into p_text2 to make p_text1
data:
l_text_a type gty_char150,
l_text_b type gty_char150,
l_text_c type gty_char150,
l_text_d type gty_char150,
l_tabix_1 type i,
l_tabix_2 type i,
l_word_1 type gty_char150,
lt_word_1 type gty_char150 occurs 10,
l_word_2 type gty_char150,
lt_word_2 type gty_char150 occurs 10,
l_result type gty_char150,
l_tabix type sy-tabix,
l_tabix_next type sy-tabix,
l_tabix_from type sy-tabix,
l_tabix_to type sy-tabix,
lt_tabix type sy-tabix occurs 4,
lt_result type gty_char150 occurs 10.
*" Break the strings into words
split p_text_1 at space into table lt_word_1.
split p_text_2 at space into table lt_word_2.
format reset.
format color col_total.
write: / p_text_1(80).
write: / p_text_2(80).
format reset.
*" Look at where the words in the shorter string appear in the longer
loop at lt_word_2 into l_word_2.
add 1 to l_tabix_2.
write: / 'P_TEXT_2, Word', l_tabix_2, l_word_2.
if l_word_2+0(1) = '&'. "placemarker
continue.
endif.
*" examine the expanded version
read table lt_word_1 into l_word_1
with key = l_word_2.
if not sy-subrc is initial.
write: /
'ERROR: Word not found in expanded version' color col_negative.
continue.
endif.
l_tabix_1 = sy-tabix. "Where we found word from short msg
append l_tabix_1 to lt_tabix.
endloop.
*" add pointer to end of list of words too
describe table lt_word_1 lines l_tabix_1.
add 1 to l_tabix_1. "because we subtract 1 below...
append l_tabix_1 to lt_tabix.
loop at lt_tabix into l_tabix_from.
l_tabix = sy-tabix.
write: / l_tabix_from.
*" get the range of words we want by getting next tabix row
*" and subtracting 1
l_tabix_next = l_tabix.
add 1 to l_tabix_next.
read table lt_tabix into l_tabix_to index l_tabix_next.
if not sy-subrc is initial. "no more words...
exit.
endif.
add 1 to l_tabix_from.
subtract 1 from l_tabix_to.
loop at lt_word_1 into l_word_1
from l_tabix_from to l_tabix_to.
write: / l_word_1 color col_positive.
* Push into text_A, text_B, text_C, text_D
case l_tabix.
when 1.
concatenate l_text_A l_word_1 into l_text_a
separated by space.
when 2.
concatenate l_text_b l_word_1 into l_text_b
separated by space.
when 3.
concatenate l_text_c l_word_1 into l_text_c
separated by space.
when 4.
concatenate l_text_d l_word_1 into l_text_d
separated by space.
endcase.
endloop.
endloop.
uline.
format reset.
format color col_group.
write: / 'TEXT_A', l_text_a(80).
write: / 'TEXT_B', l_text_b(80).
write: / 'TEXT_C', l_text_c(80).
write: / 'TEXT_D', l_text_d(80).
format reset.
endform. "extract_msgv -
Need an Custom XSLT code... where i need to compare 2 attribute fields( Name and Start Date) fromInputMessagePart_0 with the 2 fields ( Name and Start Date) from InputMessagePart_1 and need to map the repetitive attribute field ( phoneno) from InputMessagePart_1
to attribute field( PhoneNo of Destination schema.
this will look like this
Source Schema
Destination Schema
InputMessagePart_0 Item
Record
- Name
-Name
- StartDate
- StartDate
- Addres
- PhoneNo
InputMessagePart_1
-Name
-StartDate
-PhoneNo
Final output should look like by
Details
Name
StartDate
PhoneNo
Details
Name
StartDate
PhoneNo
Details
Name
StartDate
PhoneNo
Details
Name
StartDate
PhoneNo
Need urgent assistance
Thank you in advance
BizTalkLearnercould you also post your sample input instance and expected output instance
Please mark the post as answer if this answers your question. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.
Maybe you are looking for
-
X freezes (kbd, mouse, screen) but machine itself still OK
This has now happened to me several times today, and although I think I may have found the cause (or at least something associated with it) I'm really not sure. I'm posting anyway, just in case it triggers any thoughts and anybody can give me a bett
-
Automatic clearing for G/L account
Hi Experts, the program is SAPF124, T-code is F.13. i have one requirment, please provide valuable solutions.... my object current functionality is the program checks tolerance limit and it will post this amt into perticular account.in this program
-
I imported about 150 photos today from a shoot into Lightroom, and began to edit them. A few hours later, I got a message on my computer that my hard drive was full, so I made space by deleting some old files. When I opened up Lightroom, I found that
-
I thought this was supposed to be a seemless transistion. How do I get the info from the apps from my last iphone (2g) onto the 4S? Do I have to re-register and sign in to the apps?
-
1.83ghz Macbook and Adobe/Macromedia ??
I'm a poor student at the moment and I'm considering the Macbook 1.83 because I already have access to a dvd burner if needed so don't want to pay the extra $400 for the 2.0Ghz model. That being said does anyone know if this MacBook will be adequate