474,015 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two Issues in One Questions / Please help!

72 New Member
Ok, I have a couple of quirky things going on with my database.

The first is my Rank formula.
For some reason I have to have two Rank fields in order for at lest one to be correct.

**I have attached the sample database if you want to view that also**

The second one is when I’m trying to make a master join query from all my tables.

This one I’ve been having trouble with all day!
I’ve tried different joins, different queries, PLEASE HELP!

In Plain English is would sound like this:

From Wholesale query, show all records and take fields
OMNI_Number,
branch,branch_n ame,
Wholesale_Rank> ,
Wholesale_Star_ Rating

Then from Table query, show only the records the are in the Table query and fields blank that done have data for that omni number

The same for the other two tables

What I’m hoping to get for my final outcome
OMNI_Number,
branch,
branch_name,
Wholesale_Rank> ,
CUSB_Rank>,
Purchase_Rank1,
Table_Rank>,
Wholesale_Star_ Rating,
CUSB_Star_Ratin g,
Purchase_Star_R ating,
Table_Star_Rati ng,

[sql] SELECT Wholesale_Rank_ qry_2.OMNI_Numb er, Wholesale_Rank_ qry_2.branch, Wholesale_Rank_ qry_2.branch_na me, Wholesale_Rank_ qry_2.[Wholesale_Rank>], CUSB_Rank_qry_2 .[CUSB_Rank>], Purchase_Rank_q ry_2.Purchase_R ank1, Table_Rank_qry_ 2.[Table_Rank>], Wholesale_Rank_ qry_2.Wholesale _Star_Rating, CUSB_Rank_qry_2 .CUSB_Star_Rati ng, Purchase_Rank_q ry_2.Purchase_S tar_Rating, Table_Rank_qry_ 2.Table_Star_Ra ting
FROM ((Wholesale_Ran k_qry_2 LEFT JOIN CUSB_Rank_qry_2 ON Wholesale_Rank_ qry_2.OMNI_Numb er = CUSB_Rank_qry_2 .OMNI_Number) LEFT JOIN Purchase_Rank_q ry_2 ON Wholesale_Rank_ qry_2.OMNI_Numb er = Purchase_Rank_q ry_2.OMNI_Numbe r) RIGHT JOIN Table_Rank_qry_ 2 ON Wholesale_Rank_ qry_2.OMNI_Numb er = Table_Rank_qry_ 2.OMNI_Number;[/sql]

Thanks for taking the time to help me.
Attached Files
File Type: zip Rank_Database_2011-01-05.zip (572.0 KB, 73 views)
Jan 5 '11 #1
1 1170
Rabbit
12,516 Recognized Expert Moderator MVP
Why is the last join a right join and not a left join?
Jan 5 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
1501
by: PyPK | last post by:
I was testing this piece of code and it takes about 24-30 seconds to do a look up on a list(m) of size 1000x1000 m -> list of size 1000x1000 import time print time.ctime() box = {} for r,row in enumerate(m): for c,e in enumerate(row): if box.has_key(e): params = box
2
1099
by: Skip | last post by:
Hi, I have a class with some functions that I want to be available via COM interop. I declared the interface, which the class is based on, like this: public interface IA { string Test();
2
2576
by: Chris Marsh | last post by:
Hello, We have been using the "webctrl_client controls" for a while now in a variety of applications. And, at this one a client site where via "localhost" the treeview displays perfectly yet when we try to display the treeview from the ourside world it fails. Just click on the link and you will see exactly what I mean: http://216.70.227.3/demofood/Department.aspx?Department=Menu&Group=&DisplayInventory=true As you can see the tree...
9
3245
by: quyvle | last post by:
I can't seem to get this function to work correctly. I'm wondering if anyone could help me out with this. So I'm using the fscanf function to read the input stream and store each string in the appropriate variables. Here's what I'm reading from another file: "# Number of power catergories: 9"
4
2331
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a dummy console application that creates a file in Program Files directory, this one will succeed and will create the file b/c of the virtualization. But, if I do the following call in a console window (a.exe contains just
5
1280
by: =?Utf-8?B?c2hhaV9ndXlqYW1h?= | last post by:
is it true that Visual Basic 5.0 is already shareware? I heard rumors of it circulating around here in the Philippines that it is. If it is, can you please direct me to a site specifying such, and if not, please bash this rumor once and for all. thank you.
5
2704
by: loveshack | last post by:
Can anyone help me please (i am quite a novice, but having fun learning). Im not sure if this is an ASP problem, a javascript problem or a browser problem. Firstly, everything i have written works fine in IE7 and beta IE8. My pages do not work however in Safari or Firefox, and please dont beat me, but i use Frontpage to write my site, and i use iframes as ive not discovered how to do this any differently! So the issue is this, i have a...
3
1059
djsjm
by: djsjm | last post by:
hi guys.... i just went to fill out a contact form on someone's webpage and got this error message at the top of the page: *** We are sorry but spam from your ip address: xx.xx.xxx.xxx is not allowed! *** (obviously, i replaced my address with x's). what does this mean???? is my computer at risk... or has something already happened?
3
1704
by: compscidummy | last post by:
Hi! Could someone please help me with the following binary search questions? (explain please!) Thanks. A binary serach will be performed on the following list: 4, 7, 9, 11, 20, 24, 30, 41 1. To find the key value 27, the search interval after the first pass through the loop will be? 2. How many iterations will be required to determine that 27 is not on the list?
0
10463
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
10282
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
11840
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
11054
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
10220
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...
0
6572
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6732
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
5316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4869
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.