Querying data using SQL statements in Excel (ii)

Source: Internet
Author: User
Tags ole

Last Post we use OLE DB when importing external data (refer to the previous post) we share today how to import external data using Microsoft Query. There are questions about how OLE DB and microsoftquery connect external data, and I just say they are two different standards. Specific differences have the opportunity to explain again.

The following steps are appreciated,

First, look at the data source. (Sheet1 in Employee.xlsx)

650) this.width=650; "style=" Float:none; "title=" 1.JPG "src=" http://s3.51cto.com/wyfs02/M02/6C/A1/ Wkiom1vol0-jmzh3aakq0ho5ysq366.jpg "alt=" Wkiom1vol0-jmzh3aakq0ho5ysq366.jpg "/>

We choose where to display the imported data (for example, I show the imported data in Employee.xlsx's Sheet2) and select Data menu from the other sources----from Microsoft Query

650) this.width=650; "style=" Float:none; "title=" 2.JPG "src=" http://s3.51cto.com/wyfs02/M00/6C/9C/ Wkiol1vommbcinq1aahwem8lktc623.jpg "alt=" Wkiol1vommbcinq1aahwem8lktc623.jpg "/>

The Select Data Source dialog box appears. We select the Excel file type. Click OK

650) this.width=650; "style=" Float:none; "title=" 3.JPG "src=" http://s3.51cto.com/wyfs02/M00/6C/A1/wKiom1VOl0_ Xndzwaaehcjpmbby803.jpg "alt=" Wkiom1vol0_xndzwaaehcjpmbby803.jpg "/>

Select the location of the data source, where we use the employee.xlsx Sheet1 as the data source.

650) this.width=650; "style=" Float:none; "title=" 4.JPG "src=" http://s3.51cto.com/wyfs02/M01/6C/9C/ Wkiol1vommba7pzsaadzkj_bkoa397.jpg "alt=" Wkiol1vommba7pzsaadzkj_bkoa397.jpg "/>

Use all columns of Sheet1 as query objects

650) this.width=650; "style=" Float:none; "title=" 5.JPG "src=" http://s3.51cto.com/wyfs02/M01/6C/A1/wKiom1VOl0_ Y1a3zaaeh16rgeba253.jpg "alt=" Wkiom1vol0_y1a3zaaeh16rgeba253.jpg "/>

Here is the key, please choose to view the data in the editor, or return the data directly to the location you want to display

650) this.width=650; "style=" Float:none; "title=" 6.JPG "src=" http://s3.51cto.com/wyfs02/M02/6C/9C/ Wkiol1vommbcnhjfaadptsom5am558.jpg "alt=" Wkiol1vommbcnhjfaadptsom5am558.jpg "/>

Go to the editor, double-click * asterisk, Show all data sources, then click the SQL button to bring up the AQL statement editor

650) this.width=650; "style=" Float:none; "title=" 7.JPG "src=" http://s3.51cto.com/wyfs02/M02/6C/A1/ Wkiom1vol0-amvvcaajbdeeszqg259.jpg "alt=" Wkiom1vol0-amvvcaajbdeeszqg259.jpg "/>

OK, here's a look at how familiar you are with SQL statements.

650) this.width=650; "style=" Float:none; "title=" 8.JPG "src=" http://s3.51cto.com/wyfs02/M00/6C/9C/ Wkiol1vommehmz6zaah9yet4wcs242.jpg "alt=" Wkiol1vommehmz6zaah9yet4wcs242.jpg "/>

This article is from the "Guo Yong Technology blog" blog, make sure to keep this source http://guoyong.blog.51cto.com/408495/1649934

Querying data using SQL statements in Excel (ii)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.