UNION ALL type query

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
jconnelly
Posts: 15
Joined: Tue Oct 10, 2017 12:44 pm

UNION ALL type query

Post by jconnelly » Wed May 10, 2006 3:41 pm

Is there any way to reproduce something similar to a UNION query with RR11? ____We have a table with two date fields. The users want to see the record on the report twice if the dates don^t match. For example, if record one has an Order date of 4/28/06 and a ship date of 05/01/06 they would like the report to show the record under the April activity section AND the May activity section. Only one table but using two different fields and want the record twice in the result set.____In SQL, I can get the records I want with something like this: __SELECT ordernbr, orderdate FROM orders UNION ALL SELECT ordernbr,shipdate FROM orders____Can this be done in RR11?____Thanks,__Jill

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: UNION ALL type query

Post by kfleming » Thu May 11, 2006 7:31 am

You need to create a New User SQL report where you write the SELECT statement for this type of query.____Kathleen__R&R Support

jconnelly
Posts: 15
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: UNION ALL type query

Post by jconnelly » Thu May 11, 2006 10:02 am

What is a New User SQL report and how do I do that? We are using RR11 Xbase against FoxPro tables.____Thanks,__Jill____

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: UNION ALL type query

Post by kfleming » Tue May 16, 2006 8:40 am

A user SQL is only for the SQL version. In Xbase you would build two scan relations to the related table and manually change the alias name for the second scan.____Kathleen__R&R Support

Post Reply