473,804 Members | 3,018 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

connecting and comparing two databases

3 New Member
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 1519
deepu1
3 New Member
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 Recognized Expert Moderator MVP
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
1386
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 Li (likong@email.com)
5
3661
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 type of connection? Here is my scenario: We are looking to outsource our web hosting. Currently, we upload client sensitive data to our SQL Server databases within our internal network. If we outsource, the SQL server will be on a different
0
1826
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 databases through web-based content management systems. Other databases I update locally (through a bunch of Access forms) and FTP them periodically to my web site. I want to be able to switch my databases over to SQL, store them on a remote...
1
5068
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 having a problem I created the development box and things have been going well. I started to use Federation and things have gone south. I enabled federation on the DEV and DB2 instances to do some tests. I then needed to create a new database...
3
2637
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 using my XP machine with MSSQL developer edition, and I can not connect to my remote servers via TCP/IP. It can see the server, and it establishes a connection, but I can't access my files, and the connection seems incredibly slow. I have checked my...
1
1527
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 applicaitons from connecting to the databases for database maintenance? Thanks in advance
5
2487
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 no problem connecting to sample (or any other databases - local or remote), but if I try to connect from Command Editor I'm not able to do that. There is no error message, the Progress dialog just run and run without anything happening. Is this...
4
1853
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 to perform the task, but none able to compare a database with a backup otained from a SQL Server database, or between two backups. Is this possible ? Is there a software able to perform such comparison
6
3087
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 = Dispatch('ADODB.Connection') Conn.ConnectionString = "Provider=SQLNCLI;Server=10.1.1.2; Database=csrctest;Uid=bill;Pwd=bill"
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10578
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.