How to compare two fields in two separate databases
HelloCan we compare two columns in two separate databases with a single script.
See you soon
Sexy
Hello
If you mean Oracle to SQL Server while you'd have to put the hand in the Pocket and buy ODBC connectivity for this...
If it's just one large may export your data and import into an Oracle table and make your unique comparison.
Kind regards
Robert.
Tags: Database
Similar Questions
-
How to compare two dates and find exactly
How to compare two dates and find the exact age of the person, no one could be an age of child 2 days or a month, or other.
I'd really appreciate if someone help o
Concerning
After spending 2 hours, I go out with a solution by myself, how ever the function can be customize to check if the user enters date right.
function findAge(subjectName,fromdate, todate) { console.log("findAge(fromdate, todate) is called now "+subjectName+"-->"+fromdate+"-->"+todate); if(todate) todate= new Date(todate); else todate= new Date(); var age= [], fromdate= new Date(fromdate), y= [todate.getFullYear(), fromdate.getFullYear()], ydiff= y[0]-y[1], m= [todate.getMonth(), fromdate.getMonth()], mdiff= m[0]-m[1], d= [todate.getDate(), fromdate.getDate()], ddiff= d[0]-d[1]; if(mdiff < 0 || (mdiff=== 0 && ddiff<0))--ydiff; if(mdiff<0) mdiff+= 11; if(ddiff<0){ fromdate.setMonth(m[1]+1, 0); ddiff= fromdate.getDate()-d[1]+d[0]; --mdiff; } if(ydiff> 0) age.push(ydiff+ ' year'+(ydiff> 1? 's ':' ')); if(mdiff> 0) age.push(mdiff+ ' month'+(mdiff> 1? 's':'')); if(ddiff> 0) age.push(ddiff+ ' day'+(ddiff> 1? 's':'')); if(age.length>1) age.splice(age.length-1,0,' and '); console.log("==============================="); console.log("Subject age is = "+age.join('')); console.log(" age Day = "+ddiff); console.log(" age Month = "+mdiff); console.log(" age Year = "+ydiff); console.log("==============================="); var subjectAGE = age.join(''); }
peardox Thanks for the reply
-
How to compare two files to see the differences in the content?
How to compare two files (one word and a single pdf) to see if the files are identical without having read all 7 pages?
Thank you
You cannot compare files of different nature. If you convert the Word file to PDF, you can then compare the two files in Acrobat.
-
can anyone tell how to compare two documents with two controlled with the same mouse pointers
can anyone tell how to compare two documents with two controlled with the same mouse pointers?
Windows and OS X can only display a mouse pointer - it is created by the operating system, not the application.
-
How to compare two lines in PL/SQL?
Hi all
How to compare two lines in PL/SQL? Is there a method I can use to compare their column by column instead?
Any comments would be much appreciated.PhoenixBai wrote:
By lines I mean, two rows of the same table!Ah, finally, we get a bit more useful information
and I need to compare the column by column to see if there is a difference between these two rows.
Like this, you mean?
SQL> ed Wrote file afiedt.buf 1 with data as (select 1 as id, 'A' as dta, 'B' as dta2 from dual union all 2 select 2, 'A', 'B' from dual union all 3 select 3, 'B', 'C' from dual) 4 -- 5 ,chk as (select &id1 as id1, &id2 as id2 from dual) 6 -- 7 select case when ( 8 select count(*) 9 from ( 10 select dta, dta2 11 from data, chk 12 where id = id1 13 minus 14 select dta, dta2 15 from data, chk 16 where id = id2 17 ) 18 ) = 0 then 'No Difference' 19 else 'Difference' 20 end as check_result 21* from dual SQL> / Enter value for id1: 1 Enter value for id2: 2 old 5: ,chk as (select &id1 as id1, &id2 as id2 from dual) new 5: ,chk as (select 1 as id1, 2 as id2 from dual) CHECK_RESULT ------------- No Difference SQL> / Enter value for id1: 1 Enter value for id2: 3 old 5: ,chk as (select &id1 as id1, &id2 as id2 from dual) new 5: ,chk as (select 1 as id1, 3 as id2 from dual) CHECK_RESULT ------------- Difference SQL>
My only concern is the result of this sql. East - reliable? It can really be used to differentiate the two lines? I mean, the result would be the same, as I do with Java?
Not sure what you mean by "reliable"? SQL is not some kind of generator of random result (by derogation from the use of the DBMS_RANDOM package). If you ask him if 1 + 1 = 2, then it will always give you the right answer.
-
How to compare two different backgrounds
Can one tell me please how to compare two circles as DEVL test?
I don't know how to compare a project (like DEVL test) but I want to see all the changes in all the objects between two different backgrounds.
Please help me.
Thank you.use AppDesigner, navigate to tools / compare and report / database
The target DB access code,
Press Options
comparison of Goto tab options & select compare Type = database -
How to compare two users (2)
Hi all
11.2.0.1
AIX 6.1
I have two databases (dev & uat) on separate servers with equal facility.
On each database, I created a schema user "batchdba" and gave them same privilege "dba".
But when I import (impdp) the dumpfile output from other databases that encrypted table and with the same command, it runs successfully on DEV but not on the UAT.
How can I compare that privilege is missing from the UAT for the user "batchdba". Or how to compare the privileges granted to these two patterns?
Thank you very much
zxy
You can query the following views on the databases to compare the result
dba_tab_privs
dba_role_privs
dba_sys_privs
query these tables with the status RECIPIENT = "BATHCDBA."
-
How to compare two files in Windows 7 prof 64 bit
I have two files which has several files. I would like to compare the two files and see which folder has more files, and what are their names? How I do that in Windows 7 prof 64 bit? Is useful that I can download?
Hey dude-
Here's the right way to do without external downloads. It looks like a lot at first, but once you have done so, it is very easy. It works in all versions of Windows 7 to 95. For our example, let's assume you're to compare two directories named 'A' and 'B '.
1. run cmd.exe to get a command prompt. (In Windows 7, the powershell will not work for this, FYI.) Then do it again, so that you have two of them opened next to each other.
2. in each window go into the directories you want to compare. (With the help of the 'cd' command. If you're not comfortable with that, then you should probably go with the external utilities, except if you want to learn the tricks of the command prompt.)
3. type ' dir/b > A.txt' in one window and "dir/b > B.txt' in the other." Now you have two text files that list the contents of each directory. The flag/b means stripped, which removes the list down to only the names of files directories.
4. move is the same folder as A.txt B.txt.
5. Type "CF A.txt B.txt". The command "CF" means file to compare. It will spit out a list of the differences between the two files, with an additional line of text above and below each difference, so that you know where they are. For more options on the way in which the output is in the format, type ' fc /? "at the command prompt. You can also pipe the differences in another file using something like ' CF A.txt B.txt > differences.txt'.
Have fun.
-
How to compare two columns in Xl
I want to compare two columns in the file of Xl. column A contains phrases and column B contains the words
For example
Column A Column B Column C
I have an Apple and I'll eat every day Apple Apple
I have a banana and eat weekly banana papaya
Oranges are rich in nutritions cauliflowers Oranges
Papaya is good for health Grapes Papaya
Oranges
Lichi
Banana
I want to check each value of column B in each cell in column A, and if it matches then it should return the corresponding value in the result to me. Column C should Look Like as shown above.
Can someone point me in the right direction here of what formula to use for this Xl.
Thank you
This is a forum for Mac OS X technologies, so here's an Applescript solution:
- Copy-paste the script in the Script Editor
- Select the cells in columns A and B
- Command + c to copy to the Clipboard
- Click on the button "run" in the Script Editor
- Click once in the top cell in column C where you want the data
- Command + v to paste
Here are the results:
There is no verification error here. You must select and copy to the Clipboard before the race.
SG
the value LstOfLsts to makeListOfLists (the Clipboard as a 'class utf8 ')
the value theSentences to getCol1Vals (LstOfLsts)
the value collected in getCol2Vals (LstOfLsts)
game of theMatches to «»
Repeat with I in collected items
If theSentences contains I then ¬
the value of theMatches to theMatches & i & return
end Repeat
Set the Clipboard for theMatches
to getCol1Vals (LofL)
game of col1Vals to «»
Repeat with en LofL points
the value col1Vals to the col1Vals & "" & i point 1
end Repeat
end getCol1Vals
to getCol2Vals (LofL)
the value col2Vals to {}
Repeat with en LofL points
If i's point 2 is not "" then ¬
i copy point 2 to the end of col2Vals
end Repeat
return col2Vals
end getCol2Vals
at makeListOfLists (theTxt)
value was to theTxt paragraphs
the value text point of delimiters
the value theListOfLists to {}
Repeat with I from 1 to count was
the value theListOfLists to the theListOfLists & {the was point i text elements}
end Repeat
the value point text delimiters to «»
return theListOfLists
end makeListOfLists
-
How to compare two source codes?
Hello
I would like to know if there is a way to compare the codes from different sources (different .vi or different groups of the vi...) in LabView?
Our 2 production lines are similar, and I would like to know if there are differences in the 2... 2 production lines management programs because we have to make some changes.
Thanks for your help
Benedict
... Adding to the message of Putnam...
We compare two available "Screw" and "VI predetermined.
It will highlight the differences.
Ben
-
How to compare two different interfaces without creating different versions?
I know that if we create two different versions of the same interface, so we can compare the two versions. But is it possible to compare two similar interfaces to each other, created in different folders?
Hi 2782749,
Not sure if it works with 11g, but possible in 12 c. In the main menu, click on ODI-> browser Version.
Click on both interfaces, and then click Compare in the upper right corner of the browser Version.
You can also export and a tool of comparison on the xml files to highlight the differences. The result will be about the same.
Comparison tools:
Windows: Compare plugin for Notepad ++
UNIX: diff
It will be useful.
Kind regards
JeromeFr
[edited after realizing that a comparison even works with various items].
-
How to compare two dates and times in BPEL?
Hi all
I need to compare two dates and times in a switch activity, but could not find any function for her.
My switch like this activity:
case Date1 > date2:
do something;
otherwise:
do something;
He is not such a function in 'The functions of Date' and can not find this function to xpath.
IBE, there is no function for a period of time to make (less one date of another?...) If this return to the data compare question).
Thank you.Hello
Logic function as more/less function can be used to compare two dates so that same comapring two numbers.
Ex: If your variable reception contains two pieces of data such as date1 and date2, then you can use format in condition switch below.
XpathXpression (date1) > XpathXpression (date2)
hope this will help you.
-
How to compare two strings in PL/SQL
Hi all
I need to compare two strings, they are equal or not in PL/SQL. Y at - it a function to compare the strings.Yes, the sign =.
You're after something like:
IF v_string1 = v_string2 THEN ... ELSE ... END IF;
?
Published by: Boneist on August 27, 2009 11:41
-
How to compare two TABLES and different lines of list?
I have two structural equal paintings aaa and bbb
that (could) have different lines.
How can I compare the tables and display different lines?
PeterSomething like this->
SELECT aaa.*,'bbb' "Not present in" FROM aaa MINUS SELECT bbb.*,'bbb' "Not present in" FROM bbb UNION ALL ( SELECT bbb.*,'aaa' "Not present in" FROM bbb MINUS SELECT aaa.*,'aaa' "Not present in" FROM aaa )
Kind regards.
LOULOU.
-
How to combine two separate lists of bookmarks?
Under view-> sidebar-> bookmarks there are a list of L-O-N-G files and bookmarks for individual sites.
There is ONE ENTRY for "Bookmarks Menu" and following that are TWO independent lists a set of folders and individual bookmarks, and THEN a SECOND set of records is followed by another list of individual bookmarks. None of these sets entries are duplicates of each other.
How can I merge the two of them, while I have a set of RECORDS, followed by a set of INDIVIDUAL bookmarks - that I can sort the entire list in alphabetical order?
Currently, when I right click on the Menu "bookmarks" I show options that include choosing "sort by name". When I choose "Sort by name" * ONLY * the first set of RECORDS & INDIVIDUAL bookmark entries are sorted in alphabetical order.
Ideally, I would like to have the TWO lists be merged and sorted.
How it happened (the existence of two sets of RECORDS & INDIVIDUAL bookmark lists) I don't know.
Your help, anyone, help is greatly appreciated.
Thank you!
If you sort the folder Menu bookmarks, all the bookmarks below that will be sorted to the extent where a separator - a horizontal line. Remove the separators to fix everything.
Maybe you are looking for
-
New keyboard or shift button available in Serbia?
I am in Belgrade during the winter break and my Thinkpad has failed. My left shift key fell because pimples plastic on plastic (translucent/white) moving parts disappeared. This is the third mechanical failure on my current Thinkpad simply due to wea
-
Where buy a new keyboard for a HP Pavilion g6-1304sv laptop - Greek version?
One of the F keys - dropped this laptop (a HP Pavilion Notebook g6-1304sv).Where to buy a new keyboard for it - Greek version?Thank you
-
How can I get my way 'sleep' to work again, I miss a lot of this feature. ?
I have desktop computer, I had for six years, one day, for some reason, that he "sleep mode" just stopped working, itried to read as much as possible, but still no luck. I read a few times it get wiped off the hard drive, but I'm not skilled enough t
-
Change language windows repair installation possible?
I installed windows 7 Home Basic on a friends laptop with its windows OEM key, but my own image of windows 7 ultimate, set to ask for the version of windows before installation. but my windows is in English, and my friend would like to have his Germa
-
BlackBerry smartphones spontaneously begins to make phone calls
Yesterday my Blackberry started making phone calls to the last issue, I called. I rebooted and it always does.