Connecting Tech Pros Worldwide Help | Site Map

SQL Query for Dummies

  #1  
Old July 17th, 2008, 09:05 PM
Ty
Guest
 
Posts: n/a
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?

1 solution given for MS Access:

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.

Thanks..

  #2  
Old July 17th, 2008, 09:45 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: SQL Query for Dummies


Ty (tyrone_bak@yahoo.com) writes:
Quote:
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?
Now you've mention Access and DB2, but where does MS SQL Server come
into the picture? This newsgroup is about MS SQL Server, and you should
always ask SQL questions in a forum for the product you are using, as
there are substantial differences between the SQL dialects in different
products.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gallery Pagination Result Problem ste answers 11 May 11th, 2006 02:15 AM
Complex sql query? jardar.maatje@gmail.com answers 9 March 9th, 2006 06:55 PM
Resources for intermediate user? Martin Lacoste answers 3 November 13th, 2005 01:55 AM
Query syntax Will Honea answers 3 November 12th, 2005 10:52 AM