General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 8th, 2005, 08:49 AM
flatty flatty is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 flatty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 16 sec
Reputation Power: 0
Unhappy SQL JOIN - 3 tables

Hi,
MS access / VB6/data report
I have 3 tables
t1 = products
t2 = purchases (related to t1(1 to many))
t3 = sales (related to t1(1 to many))
t2 & t3 are not related to each other
basically I want to build a profit report using SQL by products
and sums of t2 and t3
I have managed to get a satisfactory view using Right Outer Joins on both sales and purchases, however I am unable to bring them together so I get IE
prods sales purchases
prod1 300.00 250.00

I have tried but the resultant view multiples up sales and/or costs making the figures unacceptable

Any help would be appreciated

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > SQL JOIN - 3 tables


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 1 hosted by Hostway
Stay green...Green IT