Board index » delphi » Multiple Table Queries with Live Datasets..Please Help!!
kgr...@acxiom.com (Kelly)
![]() Delphi Developer |
Fri, 17 Jul 1998 03:00:00 GMT
|
kgr...@acxiom.com (Kelly)
![]() Delphi Developer |
Fri, 17 Jul 1998 03:00:00 GMT
Multiple Table Queries with Live Datasets..Please Help!!
Hello all, I am very stuck and need help desperately!! What I need to do in a
nutshell is this: I am trying to use a Tquery to fill a grid. The values to fill the grid are from table X and need to be filtered based on a value in table Y which is related to table X by the field Name. I had intended to use a nested Select which works fine if you don't plan to use the result as a Live Set. I need to use live data for posting, changing, etc. I am even trying to do this with InfoPower tools without success. There has got to be a way to do this (afterall, I am working with a 'relation database'). Our database is on a MS SQL server. Please help, alot of the things I had planned for my project are based on being able to access data in this manner. Any and ALL help greatly appreciated. TIA Kelly Grigg |
Matthew Vincen
![]() Delphi Developer |
Sat, 18 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!G'Day Kelly, The only way I got this going was to have TTables of the base tables, M@! QuoteKelly wrote: |
John
![]() Delphi Developer |
Sat, 18 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!Quotekgr...@acxiom.com (Kelly) wrote: build a form around the result. You don't need to filter the detail table as the result of the live query will do that for you! ttfn John |
Ebbe Jonss
![]() Delphi Developer |
Sat, 18 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!QuoteKelly (kgr...@acxiom.com) wrote: : nutshell is this: I am trying to use a Tquery to fill a grid. The values to Very few tools allow modifications to SELECTs over multiple tables. The -- |
Gabriel Beccar-Varel
![]() Delphi Developer |
Sun, 19 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!Quote
responses misunderstood the problem. It is not an issue of master-detail. It is an issue of multiple table queries when you want a live result. At least Interbase, and apparently MS SQL Server, open the secondary tables as read only and the BDE raises an exception. One solution I am exploring is to use InfoPower's TwwTables filtering the query through the OnFilter event. For example, if you have a two table query, you can open both tables and have an OnFilter event in the main table which would return TRUE if the record key is found in the second table (and maybe other conditions). The problem with this approach is that probably slows down the query considerably in addition to the fact that every single row must be passed through the filter thus undermining the built-in optimization of the SQL server. Let me know if you find another solution. Thank you. -- _____ |
PEZ
![]() Delphi Developer |
Sun, 19 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!QuoteGabriel Beccar-Varela <gabr...@emf.net> wrote: Quote
Sorry, but I must have missed some postings. I fail to see that the -- |
Brett McKenzi
![]() Delphi Developer |
Tue, 21 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!QuoteKelly Grigg wrote: queries is one of the biggest disappointments in Delphi V1.0. On a typical application that makes heavy use of a reasonably well normalised A few suggestions: 1) If you can, (as John Wilson suggested) use two (or more) single-table 2) Denormalise your database so that you can do a single table select. 3) Use a dedicated table as temporary storage. 4) Write a component derived from TQuery that is updateable, regardless 5) Battle on, and hope a later version of Delphi provides the required All the best, _________________________________________________________________ |
Gabriel Beccar-Varel
![]() Delphi Developer |
Wed, 22 Jul 1998 03:00:00 GMT
Re:Multiple Table Queries with Live Datasets..Please Help!!QuoteBrett McKenzie <mckenzie.brett...@bhp.com.au> wrote: table live query I get an error message "Table opened as read only" for table2, table3, etc. Quote
identify the dataset. Can you elaborate on this a little more? I can see the flag for updates, but not the other. Thank you. -- ---- |
1. please help me on MULTIPLE TABLE QUERIES
2. Interbase - Live datasets from QUERY with ORDER BY
3. Live Queries Not Working - Please Help!
4. Resubmission: Insert on Live datasets with SQL Server - Help
5. connecting a query to multiple datasets
6. I need a live query of 3 dBase tables
7. Live Queries on Paradox Tables with Secondary indexes only
8. Please Help: How to make a cross table query in a Oracle Database