At 09:25 AM 2/10/2000 -0800, Chris Lovejoy wrote:
Is there a way in BusObj to perform queries based on data sets from two or more previous queries? I need to do a complex join, based on two attributes, from data sets that are retrieved via separate queries from the same universe.
Chris, you may want to try creating a new table that joins data from “existing Data Providers”, i.e., the results of your two (or more) previous queries. I think it’s a shame that the documentation doesn’t address this feature. If you query the archives of this list, however, you’ll see previous discussions on “Linking Data Providers”. Just to get you started, here are the first steps:
1.) Do your first query. BusObj automatically creates a report tab with a table.
2.) To do your second query, nsert a new table on the same, or on a new report tab. (From the main menu: Insert – Table and then draw out where you want the table inserted)
The New Table Wizard gives you the following choices:
. Use existing data from the document (the default) . Build a new query on the universe current in use . Access new data in a different way - you’d use this one if you
needed to run the query on a different universe, on a personal data source, etc.
So, you’d build your second query by selecting the radio button beside either option two or three above.
3.) I usually prefer to put the joined results together on a whole new tab. So,
a.) From the main menu: Insert – Report b.) Now insert a new table on that tab: Insert – Table When the New Table Wizard comes up this time, choose:
Use existing data from the document.
c.) The next screen will allow you to choose the variables to include in the new table. You will see the results columns from both queries. d.) If each of your queries has identical columns, you can choose them all to effectively get a full join of the two results sets. If you want a different kind of join, you’ll need to research the archives for all of the different questions and considerations thta have been discussed in the past.
Hope this helps you to at least get started. When I was new to BusObj 4, and I saw discussions on this mailing list regarding “Linking Data Providers”, I couldn’t figure out quite how to get started, because the manual had no information on the topic at all! We only hit onto it by
accident during experimenting with the product.
Regards,
Anita Craig
Stanford University
Listserv Archives (BOB member since 2002-06-25)