473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

connecting and comparing two databases

3
HI

A school table is there in old and new data base,
if i give school key as 001 (which is the column of school table) i need to compare old database school table "001 key" and new database school table
"001 key" and if it is not matched it should be displayed.
Please give me detailed dicription with example.and
how to go and check two database if u give some data like schoolkey which is already present in the databases.

thanks
sravani
Apr 16 '07 #1
2 1506
deepu1
3
hi

how can i compare two tables which are in two diff databases
.
supose 1 st table t1 contains
uprn description blocknumber
12 GF 1
13 gf 2

2nd table t2
uprn description blocknumber
12 GF 12
13 gf 2


table one(t1) is in school.mdb first database and

table two(t2) is in school2.mdb database

if i want to compare these two tables on "uprn" number and i want result of unmatched rows.
so please tel me how can i join these tables which r in two different data bases and compare.please give me detailed discription.


thanks
Apr 16 '07 #2
MMcCarthy
14,534 Expert Mod 8TB
Firstly, I have merged both questions together. Please don't double post questions as it leads to a lot of confusion.

To compare the tables you need them both in the same database. From one of the databases you need to create a link to the table in the other database. This will allow you to query both tables. If table2 contains all the records and you need to see whats missing from table1 then ...

Expand|Select|Wrap|Line Numbers
  1. SELECT Table2.*
  2. FROM Table2 LEFT JOIN Table1
  3. ON Table2.uprn = Table1.uprn
  4. WHERE Table1.uprn Is Null
Mary
Apr 16 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kong Li | last post by:
Follow up to this thread, the latest Oracle 9i release 2 patchset (9.2.0.5) fixed the handle count leak problem. The problem is in Oracle client component. Thanks. Kong ----- From: Kong...
5
by: Matt | last post by:
I know it is possible to establish a connection to an SQL Server over the Internet via Enterprise Manager. My question is, how secure is this connection? Is there a best practices document for this...
0
by: Rupe | last post by:
I have a web site on a remote, shared host with a bunch of individual Access databases. I want to switch my databases from Access to MS SQL and have some questions. I update some of my Access...
1
by: Steven | last post by:
This is complicated so I will try to be specific. Server: W2K DB2 V8.1 fixpack 4 Instances: DB2 databases TOOLSDB, DBDC DEV databases SURVEY, QUALDEV, DBDCDEV STAGE databases WSWSTAGE, TEMP I am...
3
by: Chris | last post by:
Don't know if there is a simple solution for this one or not. When running SQL server on a machine with 2000 loaded and the complete SQL package I don't have any issues. Now I'm trying to login...
1
by: Laurence | last post by:
Hi there, The force application command will terminate the connections specified, but it does not stop new applications from connecting to the databases. Is there anyway to stop new...
5
by: Odd Bjørn Andersen | last post by:
I have installed DB2 9 Enterprise Edition on my laptop and created the sample database. Now I'm having truble connecting to the database from Command Editor. If I connect from Command Window it's...
4
by: ByB | last post by:
Hello, I would like to make a comparison between two databases in SQL server, to find differences between tables, procedures and so on. I have searched the web and found several softwares able...
6
by: bill ramsay | last post by:
Hi I have successfully connected to SQL2000 and MSDEE databases in the past, however I have to move to SQL2005 and SQLEXPRESS databases now. I've tried the following but with no luck Conn...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.