Article View: comp.lang.pascal.delphi.databases
Article #202There must be a way..
From: Ian Jennings
Date: Tue, 15 Oct 2002 15:13
Date: Tue, 15 Oct 2002 15:13
67 lines
3059 bytes
3059 bytes
Hi all, I have two questions. I don't doubt that both have very simple answers but I'm blowed if I can see them. I reckon I've been staring at this damn screen too long. Question 1: I have three tables: TableA: AKey Integer AName String with values ((1, 'Name1'), (2, 'Name2')) TableB: BKey Integer BDate Date with values ((101, '1/2/2001'), (102, '2/3/2001'), (103, '9/8/2000)) TableC: AKey Integer BKey Integer CValue Float with values ((1, 101, 22.3), (2, 101, 44.1), (1, 102, 11.4), (1, 103, 18.5), (2, 103, 17.9)) What I'm trying to get is: (so long as I manage to get this typed in right <g>) '1/2/2001', 'Name1', 22.3 '1/2/2001', 'Name2', 44.1 '2/3/2001', 'Name1', 11.4 '2/3/2001', 'Name2', null or 0 or anything '9/8/2000', 'Name1', 18.5 '9/8/2000', 'Name2', 17.9 I *thought* that an outer join would do this (it says that it will put nulls in if there's no match) but I can't get this combination. Question 2: Using the above format I'm *trying* to, eventually, get a master/detail onto a single form with three, or more, tables involved and where TableB is master with TableC as detail in a TDBGrid. No big deal and I've done that. My problem is that when I fire off an INSERT from a navigator control I don't get to keep the 'Name1' and 'Name2' values in the grid. It all gets cleared. Now ISTR having this problem before and I *think* I worked around it by posting off INSERTS to the equivalents of TableB and TableC and then modifying them later. It feels a bit messy and I'm sure there's got to be an easier way. As ever, all help/advice/pointers greatfully received. TIA -- ************************************************************ Ian Jennings Microware Data Services Limited This post is made entirely from recycled ones and noughts ************************************************************
Technical Details
Message-ID:
<3DAC3097.114A2197@microwaredata.co.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!peer1.news.newnet.co.uk!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ffff5,f8a8d7f2f6085c7b,start X-Google-Attributes: gidffff5,public X-Google-Thread: fb0ea,f8a8d7f2f6085c7b,start X-Google-Attributes: gidfb0ea,public X-Google-ArrivalTime: 2002-10-15 08:12:57 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!peer1.news.newnet.co.uk!not-for-mail Message-ID: <3DAC3097.114A2197@microwaredata.co.uk> Date: Tue, 15 Oct 2002 16:13:27 +0100 From: Ian Jennings <ij@microwaredata.co.uk> Organization: Microware Data Services Ltd X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.pascal.delphi.databases,borland.public.delphi.vcl.components.using Subject: There must be a way.. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 67 NNTP-Posting-Date: 15 Oct 2002 16:11:22 BST X-Trace: DXC=<HQ1Of1?Ch[eSk2k1C:[lTLRVHVF@^OU]hQFj?h[^V4Q@Hmd?G14P9X39CCJ3gSK5\U7md^i?AE_S X-Complaints-To: news-abuse@newnet.co.uk (please include full headers)