hi,
I just can't find how to retrieve some column values from a single row in one table and, at the same time, some column values from a single row in a second non-related table. I could send two select statements, but that increases wlan traffic and time. Can i do it in one select?
guido
multiple singletons in one select?
Moderators: gto, cipto_kh, EgonHugeist
-
- Senior Boarder
- Posts: 93
- Joined: 01.07.2009, 16:07
-
- Expert Boarder
- Posts: 164
- Joined: 18.03.2008, 13:03
- Contact:
-
- Senior Boarder
- Posts: 93
- Joined: 01.07.2009, 16:07
-
- Senior Boarder
- Posts: 93
- Joined: 01.07.2009, 16:07
Ok, Mark, sorry for being off topic. Yet I have another question :mdaems wrote:Guido,
Sorry, but we can't elaborate on pure sql issues. That's mainly the job of your database server manufacturer.
Mark
For a query that returns just a few fields (like the one above), would it be better to use IZConnection, IZStatement and IZResultSet in stead off TZQuery, as in the example DbcDemoMain.pas in the zeos665\examples\dbc\ folder? As I connect over internet, I want to be as ergonomic as possible.
Guido
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Guido,
Using dbc or component layer is actually a matter of personal choice and the needs of your client program.
The network traffic should be identical when you retrieve all results of the query as the components actually just use the dbc layer internally.
In case you want to use db aware components on your forms you'll have to use components. If you're just handling the results using code both solutionw will do, but dbc has less client-side overhead. Network traffic is equal.
Mark
Using dbc or component layer is actually a matter of personal choice and the needs of your client program.
The network traffic should be identical when you retrieve all results of the query as the components actually just use the dbc layer internally.
In case you want to use db aware components on your forms you'll have to use components. If you're just handling the results using code both solutionw will do, but dbc has less client-side overhead. Network traffic is equal.
Mark