MS Access
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsDatabasesMS Access

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old January 10th, 2008, 11:51 PM
richard.ker richard.ker is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 richard.ker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 12 m 10 sec
Reputation Power: 0
Query from Multiple Tables [newbie]

I created a simple inventory database but I guess it was not thought through.

Currently I have separate tables for computers, printers, monitors etc. These tables share a common field which is the room no.

I need to make a query to display all equipment by room no. I made a few attempts but it did not display the query result correctly.

How do I do this? Any help is appreciated. Thanks!

Reply With Quote
  #2  
Old January 11th, 2008, 01:37 AM
richard.ker richard.ker is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 richard.ker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 12 m 10 sec
Reputation Power: 0
This is the SQL view:

SELECT CPU.RoomNo, CPU.Brand, CPU.Model, CPU.ServiceTag, Printer.Brand, Printer.Model, Printer.[Service Tag]
FROM CPU INNER JOIN Printer ON CPU.RoomNo = Printer.RoomNo
WHERE (((CPU.RoomNo)=[Room?]));

In room 3114 for example, there are 4 CPU's and 3 printers.

When this query runs, it shows 12 rows of results, each item repeating 4 times.

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesMS Access > Query from Multiple Tables [newbie]


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT