Infinite opportunities?  Endless problems?  Limited resources?  Talk to us!
Operations
Consulting
Software
Consulting
Publishing and
Training
Applied
Solutions
Excel add-ins
and tutorials
Charts Excel and VBA
Case Studies
VBA
tutorials
PowerPoint
Add-Ins
Miscellenia
You are on the Home/Excel/Tutorials/RDBMS in Excel/Build Queries page

Building and using a relational database in Excel (with a little help from MS Query)

Building the queries

The common steps in building any query against a database involve establishing a connection to an external data source.  This source can be a 'formal' source such as a Access database, a dbase or a FoxPro database, or a SQL database such as MySQL, a Oracle SQL database, or a Microsoft SQL database.  More important for us is that the data source can be another Excel file!

To get the external data start with

Data | Get External Data New Database Query...

Specify the source as an Excel file and make sure that the 'Use the Query Wizard to create/edit queries' checkbox is unchecked.  The reason is that the Wizard does not know how to link different tables.:

 

About this site

What's new

Google
Web
This Site
 

 

At this point MS Query will display a dialog box asking for the workbook containing the data.  Find it on the hard disk and select it.

From this point the steps to create a query are query-specific.

Query 1 -- A simple table linking multiple tables in the relational database

 

For custom technology solutions, operations consulting, or training contact web-underscore-contact@tushar-hyphen-mehta-dot-cee-oh-em.
By accessing any page or link on this web site other than this page, you agree to the terms and conditions.

Ads from amazon.com

[Optional] Survey (current rating of site: 3.7 out of 4)  If you will take a moment to provide your comments, it will help improve the site both for you, and for other visitors.

On a scale of 4 (just what I need)
to zero (totally useless)

How do you rate the information

on this page?

  on this site?

[Optional]

Your name
Your email address
Other comments
 
Monitor page
for changes
    
   it's private  

by ChangeDetection
A comment selected at random:

 

 

Copyright © 2000-2008 Tushar Mehta.
Send comments and suggestions about the web site to webmaster@tushar-hyphen-mehta-dot-cee-oh-em
Last edited April 13, 2008