473,408 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Help Query, two table, look for figure between start and end Version: Any Version

Hi,
I don't think my mind in good shape on this today, really need your
expert on this

I got two simple tables without key
Table A has 2 fields, Date and volume, e.g. 1/May/05 and the actual
weight is 500kg

Table B has 3 fields, Period Start date, Period End date, and predict
volume
e.g. Period Start at 1/Apr, Period End at 1/July, predict volume is
1000kg

Now I need to create report to put this two table togther
1st Field - date - 1/May/05
2nd Fileld - actual weight - 500kg
3rd field ( which I don't know how to do it ) - predict volume - 1000kg
( because the date fall between the period start date and period end
date )

I just don't know how to make it works, please help.

Nov 13 '05 #1
1 1116

si*******@gmail.com wrote:
Hi,
I don't think my mind in good shape on this today, really need your
expert on this

I got two simple tables without key
Table A has 2 fields, Date and volume, e.g. 1/May/05 and the actual
weight is 500kg

Table B has 3 fields, Period Start date, Period End date, and predict
volume
e.g. Period Start at 1/Apr, Period End at 1/July, predict volume is
1000kg

Now I need to create report to put this two table togther
1st Field - date - 1/May/05
2nd Fileld - actual weight - 500kg
3rd field ( which I don't know how to do it ) - predict volume - 1000kg
( because the date fall between the period start date and period end
date )

You need to join table A and table B, using a non-equijoin. What this
means is,
since there's no way to say A.date = B.date, you have to find a way to
express
that A.date lies in a period characterised by B.Period_start and
B.Period_end.

It is very straightforward, really. Don't use INNER JOIN. Try
SELECT something_from A, something_from B
WHERE A.date_some_comparison_expression_involving_B.star t_and_B.end

Nov 13 '05 #2

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

Similar topics

3
by: Roamer | last post by:
Can someone please help with table positioning on this page http://rmhh.co.uk/occup/Test3.html It parses fine for me and nearly all my users, but some, using IE6 and NS7.1 report row...
6
by: dummie_q | last post by:
Hey, I am having some confusion about how to formulate this particular query. I have 2 tables. Table A has 4 columns say a1,a2,a3,a4 with the columns a1,a2,a4 forming the primary key. Table B...
6
by: seansan | last post by:
Hi, Does anyone know how to read the full access version number in visual basic? I need to know if the current program instance is SR-1 or SP-3, etc... I currently use: DB_DAO =...
1
by: Randy | last post by:
Access= 2002 I'm NOT a Programmer, but I have used VB in the past to do some things ( Spaghetti Code King) so I have some understanding of Coding I need to replace a text field (teacher) in...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
5
by: sansann | last post by:
Hello there! i need help on loading data from my Access database query table name combine into my MSFlexgrid select by batchno category. when i runn below coding the error said "Selected collating...
1
osward
by: osward | last post by:
Hi everyone, Background 1. I have a table that consits 400+ rows of data and is growing by day. The table already has paging links at the bottom but I restricted to display rows of data only >=...
2
rustaferd
by: rustaferd | last post by:
I have created VBA code that will automatically generate Table and Figure captions in a Word document, but when I run the code that should automatically generate Table and Figure references, I get a...
3
by: jambonjamasb | last post by:
Hi I have two tables: email_tbl Data_table Data table is is used to create a Form Data_form
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...
0
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...
0
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,...
0
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...

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.