473,888 Members | 1,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Newbie on SQL & Excel

Ty
I'm new to SQL but not Excel

I was given a Excel spreadsheet with Employee names. I have a large
database with a Personal Table with Employee names and a whole list of
other tables that I'm used to running queries. I'm still new to
queries.

I can run queries using the Pers_Table with employees and other
tables. How can I import the Excel sheet and use it as the Pers table
with only the names of the 10 employees listed in the Mainframe export
of Employees.

My files:
Mainframe.xls for 10 mainframe users.

My tables:
Auth_id for user id's
CostCtr for Cost center codes

I'm attempting to do the above in MS Access.

Is there a way to do the above via SQuirreL SQL(an open-source Java
SQL Client program) on a DB2 database?

Thanks..

Jul 16 '08 #1
5 2411
Ty wrote:
I'm new to SQL but not Excel

I was given a Excel spreadsheet with Employee names. I have a large
database with a Personal Table with Employee names and a whole list of
other tables that I'm used to running queries. I'm still new to
queries.

I can run queries using the Pers_Table with employees and other
tables. How can I import the Excel sheet and use it as the Pers table
with only the names of the 10 employees listed in the Mainframe export
of Employees.

My files:
Mainframe.xls for 10 mainframe users.

My tables:
Auth_id for user id's
CostCtr for Cost center codes

I'm attempting to do the above in MS Access.

Is there a way to do the above via SQuirreL SQL(an open-source Java
SQL Client program) on a DB2 database?

Thanks..
I'm not clear on what you are trying to accomplish, but you can query
most major SQL databases (including DB2) directly from Excel using a
little VBA and ADO. I can posts links to examples if you desire.

-Philip
Jul 17 '08 #2
Ty
On Jul 17, 9:04*am, Philip Wright <pvws...@bellso uth.netwrote:
Ty wrote:
I'm new to SQL but not Excel
I was given a Excel spreadsheet with Employee names. *I have a large
database with a Personal Table with Employee names and a whole list of
other tables that I'm used to running queries. *I'm still new to
queries.
I can run queries using the Pers_Table with employees and other
tables. *How can I import the Excel sheet and use it as the Pers table
with only the names of the 10 employees listed in the Mainframe export
of Employees.
My files:
Mainframe.xls for 10 mainframe users.
My tables:
Auth_id for user id's
CostCtr for Cost center codes
I'm attempting to do the above in MS Access.
Is there a way to do the above via SQuirreL SQL(an open-source Java
SQL Client program) on a DB2 database?
Thanks..

I'm not clear on what you are trying to accomplish, but you can query
most major SQL databases (including DB2) directly from Excel using a
little VBA and ADO. I can posts links to examples if you desire.

-Philip- Hide quoted text -

- Show quoted text -
I'm trying to restrict my query to the list of names in the Excel s/
s(spreadsheet).
Here are some steps given to me. I will attempt to do this:

Drag a common field (perhaps EmployeeID) from the Excel table to the
Pers_Table.
This operation is called "creating an inner join". Run the query. It
will now restrict the query to the list in the Excel file.
Jul 17 '08 #3
Ty wrote:
>
I'm trying to restrict my query to the list of names in the Excel s/
s(spreadsheet).
Here are some steps given to me. I will attempt to do this:

Drag a common field (perhaps EmployeeID) from the Excel table to the
Pers_Table.
This operation is called "creating an inner join". Run the query. It
will now restrict the query to the list in the Excel file.
Now I understand. Unfortunately I have never used SQuirreL, but I
just looked at their website and looks like the kind of thing that
SQuirreL should be able to accomplish. I still think that it would
be less coding to use ADO and have the join returned as an ADO resultset.

-Philip
Jul 17 '08 #4
Ty
On Jul 17, 6:46*pm, Philip Wright <pvws...@bellso uth.netwrote:
Ty wrote:
I'm trying to restrict my query to the list of names in the Excel s/
s(spreadsheet).
Here are some steps given to me. *I will attempt to do this:
Drag a common field (perhaps EmployeeID) from the Excel table to the
Pers_Table.
This operation is called "creating an inner join". Run the query. It
will now restrict the query to the list in the Excel file.

Now I understand. Unfortunately I have never used SQuirreL, but I
just looked at their website and looks like the kind of thing that
SQuirreL should be able to accomplish. I still think that it would
be less coding to use ADO and have the join returned as an ADO resultset.

-Philip
OK.. I might try that. What examples do you have?
Jul 18 '08 #5
Ty wrote:
>
OK.. I might try that. What examples do you have?

I have a good O'Reilly book called "ADO: ActiveX Data Objects"
by Jason T. Roff ISBN: 1-56592-415-0

There are also good examples at Microsoft and IBM:

http://support.microsoft.com/kb/247412/EN-US/
http://support.microsoft.com/kb/278973/EN-US/
http://www.ibm.com/developerworks/db...0302hasin.html

There a couple of good ADO newsgroups too:
microsoft.publi c.data.ado
microsoft.publi c.vb.database.a do

-Philip

Jul 18 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2146
by: David Alliet | last post by:
Hello, I'm having a bit of a problem with ASP and Excel. A client has developed his own program, which calculates alot of financial stuff, in excel. I'm doing his websites and he has requested the ability to do the same thing his program does, but through the website. Because his excel program is a dozen worksheets (all packed with endless rows of formulas) long, i thought it'd use excel as backbone of the webprogram (don't worry, the...
0
1322
by: Oded | last post by:
Hi, I'm trying to export an ASP based report to Excel while preserving its display properties. I've added: Response.ContentType="application/vnd.ms-excel", and it works fine for several clients. For other clients it displays an emptry excel sheet. I'm not sure, but i think it has something to do with the excel version installed on clients - empty sheets were displayed for Excel 2000 clients while clients running Excel 2002 displayed the...
3
1727
by: Mike Caputo | last post by:
I'm setting up an auto e-mailer in VB.NET to send daily reports to clients. I have the main part of that all set, but there are a couple of things I'm not quite sure on: 1) I'll be sending about 10-20 reports, and am not quite sure how to queue them. The reports are anywhere from 500K to 3MB, so I imagine this is fairly important. Does the SMTPMail object handle this automatically, or do I need to implement something to wait for each...
1
2332
by: ciruliz ciruliz | last post by:
In Excel there is one greate feature - I can create table with ole object field type & put excel document in it, then in table view when double-clicking on that field , excel document opens in excel window how can i do this in VB.NET ? I've found in Ms Access macros , I can do this with ole container object, launching external excel from it automatically. but there is no ole support in VB.NET. Any ideas?
2
1224
by: Ivan Lozada | last post by:
Hi there, I developed a simple VB executable, i.e. x.exe, that manipulates an Excel File. I have the full Microsoft Office set in my development PC. My question is: can this program x.exe run in a PC that does not have Excel installed? Is there a re-distributable that can be included in a Setup Program?, or you must have Excel in every PC where I would like this program to run? Thanks to anybody who takes the time to provide any...
6
2411
by: Mark Rae | last post by:
Hi, My client has asked me to provide a "quick and dirty" way to export the contents of a DataGrid to both Excel for analysis and Word for editing and printing, so I'm investigating client-side automation. N.B. the environment is a totally enclosed intranet, all the client machines have WinXP, IE6 and Office Pro 2003 with all the latest SPs, and the IE security settings are sufficient to allow the Local Intranet Zone to instantiate...
0
1763
by: dt | last post by:
I downloaded Microsoft Office 2003 Reference Schemas from: http://www.microsoft.com/downloads/details.aspx?familyid=fe118952-354... Then I tried to use JAXB on them, specifically excel.xsd and excelss.xsd. The first one passes OK, but doesn't contain Worksheet element, which is the root element for Excel 2003 documents saved as XML. The other schema, excelss.xsd, contains the definition of this element, but doesn't pass through JAXB....
0
1517
by: AlexNunley | last post by:
I am trying to dump data from an access query into excel so I can pretify it. I found sample code from an old access 97 book (The version of access in use)and tinkered it into working. Well sort of. The error I get is usually a "Object Required" error, and it highlights the bolded section below. I have been through this thing backwards and forth and cannot figure it out. I am new to this whole thing, so be easy on me. Thanks! Alex ...
4
4406
by: Suzette | last post by:
I have an excel file that automatically updates when opened, pulling information from an Access database into into various pivot tables. I created a macro in Access to perform various necessary functions with the data. I want to be able to open an Access form that I created, and then hit a button that will run the macros and that will open the excel database. The only problem that I am having is that when the excel file opens and tries...
0
9961
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
11180
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...
0
10778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10439
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9597
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
7990
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
7148
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();...
0
6014
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3252
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.