18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using <strong>Microsoft</strong> Query with<br />

External Database Files<br />

Excel has some great analysis and presentation tools, but these tools require<br />

data. In many cases, the data that you need is available in an external<br />

database. For example, your company may have a database that contains<br />

customer information, sales data, and so on. This chapter is an introduction to<br />

retrieving data from external database files for use in Excel.<br />

Understanding External<br />

Database Files<br />

IN THIS CHAPTER<br />

Understanding external database<br />

files<br />

Getting started using <strong>Microsoft</strong><br />

Query<br />

Working with external data<br />

When you work with an Excel workbook, the entire workbook must be loaded<br />

into memory before you can begin working. Although loading all the data provides<br />

you with immediate access to the entire file and all the data it contains, it<br />

also means that you can’t work with extremely large amounts of data. Although<br />

Excel 2007 supports more than a million rows, actually using that many rows<br />

can slow your system to a crawl — even if your system has plenty of memory.<br />

When you access an external database file using Excel, you can perform a query<br />

to load just a subset of the data into your workbook.<br />

Accessing external database files from Excel is useful in the following situations:<br />

n<br />

n<br />

n<br />

n<br />

You need to work with a subset of a very large database.<br />

You share the database with others; that is, other users have access to<br />

the database and may need to work with the data at the same time.<br />

The database is in a format that Excel can’t import, or the database may<br />

be too large to import.<br />

The database contains multiple tables with relationships between those<br />

tables.<br />

575

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!