473,473 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

append a table onto the end of another

I have two tables, appointments and backupappointments.
I also have a
function getAppointments(theDate DATE) RETURN RECORDSET
(which has not been written yet).
What I want the function to do is take a date, and return a table of
appointments on that date. My problem has two parts:

1) How do I append the table backupappointments to the table
appointments so that I can do a simple SELECT on the date of this new
table?

2) How do I return the filtered table?

Any help would be greatly appriciated

Jagdip Singh Ajimal
Jul 19 '05 #1
3 8251

"Jagdip Singh Ajimal" <js*****@hotmail.com> wrote in message
news:c8**************************@posting.google.c om...
| I have two tables, appointments and backupappointments.
| I also have a
| function getAppointments(theDate DATE) RETURN RECORDSET
| (which has not been written yet).
| What I want the function to do is take a date, and return a table of
| appointments on that date. My problem has two parts:
|
| 1) How do I append the table backupappointments to the table
| appointments so that I can do a simple SELECT on the date of this new
| table?
|
| 2) How do I return the filtered table?
|
| Any help would be greatly appriciated
|
| Jagdip Singh Ajimal
lookup UNION (SQL) and REF CURSOR or pipeline functions or TABLE(CAST
(see my posts on 'example: PIPELINED function' and 'Input array string')

-- mcs

Jul 19 '05 #2
js*****@hotmail.com (Jagdip Singh Ajimal) wrote in message news:<c8**************************@posting.google. com>...
I have two tables, appointments and backupappointments.
I also have a
function getAppointments(theDate DATE) RETURN RECORDSET
(which has not been written yet).
What I want the function to do is take a date, and return a table of
appointments on that date. My problem has two parts:

1) How do I append the table backupappointments to the table
appointments so that I can do a simple SELECT on the date of this new
table?

2) How do I return the filtered table?

Any help would be greatly appriciated

Jagdip Singh Ajimal


If you can write a select to get the records from each table then you
can add a UNION to combine the two selects into one SQL statement,
perhaps a view. You could then query the view/UNION statement to get
your result set.

You have many options on how you return the record set depending on
what you want to do with it.

See the Concepts manual for an explantion of Views and the SQL manual
for CREATE VIEW and UNION.

HTH -- Mark D Powell --
Jul 19 '05 #3
js*****@hotmail.com (Jagdip Singh Ajimal) wrote in message news:<c8**************************@posting.google. com>...
I have two tables, appointments and backupappointments.
I also have a
function getAppointments(theDate DATE) RETURN RECORDSET
(which has not been written yet).
What I want the function to do is take a date, and return a table of
appointments on that date. My problem has two parts:

1) How do I append the table backupappointments to the table
appointments so that I can do a simple SELECT on the date of this new
table?

2) How do I return the filtered table?

Any help would be greatly appriciated

Jagdip Singh Ajimal

1) Create a view usin the UNION of both tables
2) return a "REF CURSOR"

details left as an exercise for the reader.
Jul 19 '05 #4

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

Similar topics

2
by: JMCN | last post by:
hi i need some advice on whether if it would be better to use an append query or an update query. here is the situation, i have linked another database table to my current database. then i...
2
by: Danny | last post by:
I want to extract a subset of fields from one table into another the master table has many fields the subset has about half, but still many. Is there a way I can just append the master into the...
1
by: David Barger | last post by:
Greetings, It appears that an Append Query I run in Access XP is randomly failing to append a field. I have payroll data being entered into a payroll database. This data is exported daily to...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
3
by: Dixie | last post by:
I know how to append records from one table to another in the same database, but I need to be able to append the records from all the tables in one database into new empty tables in another...
22
by: RayPower | last post by:
I'm having problem with using DAO recordset to append record into a table and subsequent code to update other tables in a transaction. The MDB is Access 2000 with the latest service pack of JET 4....
2
by: RichardP via AccessMonster.com | last post by:
Hi there, I have a query running against Oracle which returns approx. 140,000 records. I need to store all this data locally in my BE database. Conventionally I would set up a table to contain...
3
by: wvmbark | last post by:
First time poster... I just found this forum and it appears there's plenty of people here that could make short work of problem that's been driving me absolutely bonkers for months. Every day we...
3
by: Jagdip Singh Ajimal | last post by:
I have two tables, appointments and backupappointments. I also have a function getAppointments(theDate DATE) RETURN RECORDSET (which has not been written yet). What I want the function to do is...
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
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
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
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,...
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: 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 ...
0
muto222
php
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.