The message comes from the db engine, not the tool.
This is a plain ugly query - use the SQL92 JOIN syntax:
FROM PATIENT JOIN STAFF ON (STAFF.col = PATIENT.col)
And better alias your columns if you plan to use multiple tables in the
resultset.
--
With regards,
Martijn Tonies
InterBase Workbench - the developer tool for InterBase & Firebird
Firebird Workbench - the developer tool for Firebird
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
--
Martijn
> I got used to using this syntax from working with MS Query. There is no
> problem at all when using IBConsole.
> When I use the recommended syntax like this:
>
> SELECT STAFF_INITIALS GP , COUNT(PATIENT.PATIENT_ID) NUMBER
> FROM PATIENT INNER JOIN STAFF ON (STAFF.STAFF_ID = PATIENT.REGISTERED_GP)
> WHERE PATIENT.MAIN_REG_TYPE = 1
> GROUP BY STAFF_INITIALS
>
> I get exactly the same problem. So, it doesn't seem the problem is with the
> syntax.
>
>
> RBS
>
> "Martijn Tonies" <m.tonies@upscene_remove.com> wrote in message
> news:3e35...@newsgroups.borland.com...
RB Smissaert offered this gem...
> Presume you mean the MetaData tab of the table in IBConsole. I am not sure
> if it is allowed to put this on the newsgroup, but I can e-mail it to you
> personally if that is ok.
What about your *_META_* data is there that has to be so secret?
I can readily understand that you don't wish to disclose patient ids and
names, but the meta data is just the structure of the tables with no
actual patient data.
Paul...
> RBS
I've tried the tables - no problems with IB7...
--
With regards,
Martijn Tonies
InterBase Workbench - the developer tool for InterBase & Firebird
Firebird Workbench - the developer tool for Firebird
Upscene Productions
http://www.upscene.com
"This is an object-oriented system.
If we change anything, the users object."
> Here the complete DDL of the 2 tables:
>
> create table patient(
>
> PATIENT_ID integer not null,
>
> USUALLY_SEEN_GP integer,
>
> ADDED_BY integer,
>
> UPDATED_BY integer,
>
> FHSA_ID integer,
>
> DHA_ID integer,
>
> REGISTERED_GP integer,
>
> ROUTE_MARKER_TYPE smallint,
>
> MAIN_REG_TYPE smallint,
>
> GENDER_TYPE smallint,
>
> SURGERY_ID integer,
>
> ACCEPTANCE_TYPE integer,
>
> RESIDENTIAL_INSTITUTE integer,
>
> QUALIFIER_REG_TYPE smallint,
>
> CHI_NUMBER varchar(16),
>
> DATE_OF_BIRTH integer,
>