473,396 Members | 1,914 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,396 software developers and data experts.

How to get value in query if you have these condition

215 128KB
I have 2 table join on ID field.
to be ez to understand, that ID only have 1 item 1
and I won't show it on table

how to get Listprice value after calculate pricechange as I need on this image:



is it possible to get value of item ID 1 between the date given with condition like image ?
Attached Images
File Type: jpg P_20151008_122425.jpg (49.4 KB, 157 views)
Oct 8 '15 #1
2 874
Seth Schrock
2,965 Expert 2GB
I can't figure out what you are asking and the picture doesn't make anything any clearer as I don't see a condition in your image. You can join two tables using two fields such as
Expand|Select|Wrap|Line Numbers
  1. FROM Table2 INNER JOIN Table1
  2. ON Table2.Date >= Table1.From And Table2.Date <=Table1.To
Does this help?
Oct 10 '15 #2
hvsummer
215 128KB
Thank Seth, I've posted too much post and forgot to mention that I resolve this by 2 join like your answer, and group by sum since that's Many-to-many relationship.
Oct 11 '15 #3

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

Similar topics

1
by: gudia | last post by:
Two tables: T1 (c1 int, TestVal numeric(18,2), ResultFactor numeric(18,2))--c1 is the primary key. T2 (x1 int, FromVal numeric(18,2), ToVal numeric(18,2), Factor numeric(18,2))--x1 is the...
4
by: Alexandre Jaquet | last post by:
Hi, I'm looking for the shortest way to write : if (form.interface_template.options.length > 0) { template = form.interface_template.options.value } else { template = ''
2
by: JMCN | last post by:
hi i have a general question regarding append queries in access 97. each week i need to update my table(tblonlinereg) with new or modified records. firstly, i import the text file into my...
3
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c)...
1
by: son | last post by:
i need some help with my database i'v got a qyery with a field orderdate from a table orders with a condition date, when a user opens a rapport from this query a popupbox is asking for the date of...
3
by: vstolmech513 | last post by:
Here goes nothing... I'm trying to make a report that shows what guys work on what crew, ie. day crew or night crew. For this selection I've got a form with a combo box with either a "D" or "N"...
4
natalie99
by: natalie99 | last post by:
Hi All :) I am trying to stipulate rules for the return of a pricing value in Access. I know this should be very easy, I simply cannot seem to make my expressions work! The two tables have...
2
by: de_ja | last post by:
Hi, If, for example an access database that concerns insurance claim investigations. The database comprises only one table containing data - investigation reference number, referral date,...
3
by: lakshmikant | last post by:
I have a file ------------------------------------------------------------------ Port Speed Duplex Flow Ctrl Link Name ---- ----- -------- --TX-----RX-- ------ ------ 1 10000 full no no down 1 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...

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.