473,473 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Query that will add the same sequence of Records...

24 New Member
Hello,

As I am improving my Access skills recently, I have now another challenge...

I have couple of tables:
Region (IDRegion, IDCountry, CountryName, Region),
GDP (IDGDP, IDCountry, Country, Var, Unit, GDPgrowth, Source,Scenario),
Scenario (IDScenario, Scenario)
Source (IDSource, Source)

GDP is the main table here. There are data about every country from 1970 till 2005 about their GPD growth. It is for all countries, so lots of record... :)
(200 countries... so 200 records for 1970, 200 records for 1971 etc.)

These IDCountry is in relation with Region.IDRegion. IDScenario with GDP.Scenerio, IDSource with GDP.Source... all relation are one to many.

What I want to do is to add more years for the future for different scenarios in this table GDP.
Lets say:
I want to add years from 2006 till 2010. When I add year, i want to add every country for that year. if i add 2006, i want to add record with Afganistan 2006, France 2006 etc... so again adding many records. It would be for scenario A.
Then here i will assume some % for growth...

Then I want to add again in this 2006 till 2010 but now for scenario B.

I dont know how to do it properly. I would have it in one table (GDP) but if its neccesary i can split historical data with future. I tried with append query but i dont know how to add many records in the way i described above...

Do anyone have some ideas?

Greets
Greg
Nov 27 '07 #1
3 1261
Rabbit
12,516 Recognized Expert Moderator MVP
If you select two tables without joining them, it matches all records from one table to all the records in the other table. You already have a country table, you just need a table with the years you want to add.
Nov 27 '07 #2
dillneus
24 New Member
If you select two tables without joining them, it matches all records from one table to all the records in the other table. You already have a country table, you just need a table with the years you want to add.

ok thx it should work :)
Nov 28 '07 #3
Rabbit
12,516 Recognized Expert Moderator MVP
Good luck.
Nov 28 '07 #4

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

Similar topics

4
by: Orion | last post by:
Hi, This is kind of last minute, I have a day and a half left to figure this out. I'm working on a project using ms-sqlserver. We are creating a ticket sales system, as part of the system, I...
1
by: turtle | last post by:
I have created a database to track a work breakdown structure here at my work and am getting in way over my head trying to create the query. I need to show actuals vs budget for each work order and...
2
by: turtle | last post by:
I need to make a union query that returns the results of 2 queries without combining any fields. Let me give you an example Query1 Job WorkOrder Sequence Budget Actuals ...
12
by: Joe Stanton | last post by:
Hello Group I have a query that works in Oracle and SQL Server, but fails in Microsoft Access. The query is: SELECT data fromTABLE1 WHERE data>='A&' AND data<'A''' Here is my sample data:
6
by: Martin Lacoste | last post by:
Ok, before I headbutt the computer... don't know why when I add criteria in a query, I get an 'invalid procedure call'. I also don't know why after searching the help in access, the various access...
5
by: Lyn | last post by:
This one is difficult to explain, so I will cut it down to the basics. I have a major table 'tblA' which has an autonum field 'ID-A' as primary key (of no significance to users). 'tblA' contains...
1
by: lorirobn | last post by:
Hi, I have a query that I have been using as a record source for a form with no problems. I just created a new "addnew" form, and added 20 records to the table with this form. The problem I...
0
by: saraths007 | last post by:
I am using oracle 10g database...i have two oracle instances(SID)...I want to migrate data from one instance to the other...There is one problem while importing a particular table....say Table 'ABC'...
5
by: Sam | last post by:
Hi, I have one table like : MyTable {field1, field2, startdate, enddate} I want to have the count of field1 between startdate and enddate, and the count of field2 where field2 = 1 between...
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
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
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...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.