Stonefield Query
 
Stonefield Site Map
Stonefield Support

  Overview
  Submit Support Ticket
  Forums
  Online Help Files
  Services
  Pre-Sales Support
Online Webinars
Video Demonstrations
Feature Requests
  Software Maintenance
  Support Testimonials
  FAQ's
Quick Links
Buy Now!
Download Free Trial
Watch a Video
Contact Us

 
 You are here: Support * Support Forums   Search

 Stonefield Query Support Forum

Welcome to the Stonefield Query Support Forum. Please note that in order to participate in the support forums, registration at our site is required. If you are already a member of our site, please sign-in.

 

Subject: Duplicate Table Alias in SQL Statement

You are not authorized to post a reply.   

Author Messages
SaipanJill
Posts:9

07/15/2008 12:59 AM Alert 

I am getting the following error when attempting to run a report:

Error #:2111 Message: There is a duplicate table alias 'MasterIndividual' in the FROM clause.

Sure enough, there is.  Here is the SQL statement:

select MasterIndividual.MAS_PK,MasterIndividual.MAS_DOB,MasterIndividual.MAS_DOBDOCUMENTED,MasterIndividual.MAS_EMPLOYERID,WageMasterIndividual.WGM_DATELASTFILED from WageMASTER MasterIndividual inner join MASTER MasterIndividual on WageMasterIndividual.WGM_WEMASTERFK=MasterIndividual.MAS_PK where MasterIndividual.mas_institutionFK = 0 and MasterIndividual.mas_PK > 0

MasterIndividual is a sub-table of Master.dbf

WageMasterIndividual is a sub-table of WageMaster

They are related via WageMasterIndividual.wgm_WEMasterFK = MasterIndividual.mas_PK.

Why is the statement being generated this way? Help!

Thanks!

Chris Wolf
Posts:217

07/15/2008 8:50 AM Alert 

In order to investigate this issue I will need to see your Stonefield Query project files and a sample database if possible.

The project files consist of:

SFQuery.INI
SFConfig.DBF, FPT, and CDX
SFScript.DBF, FPT, and CDX
RepMeta.DBF, FPT, and CDX

Please zip these files up and send them to support@stonefieldquery.com along with a sample database.

If data security is a concern then you can send me an empty copy of the database.


- Chris Wolf
Stonefield Software Inc.
You are not authorized to post a reply.
Forums > Stonefield Query SDK > General Support > Duplicate Table Alias in SQL Statement



ActiveForums 3.6

 
 
   Privacy Statement  |  Terms Of Use
© 1996-2008 Stonefield Software Inc. All rights reserved.