the into statement in a query

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The following query gives me an error- Invalid Argument

SELECT john_table.JJ_ID, john_analysis_table.[Circuit ID],
tom_analysis_table.BASELINE_ANNUAL, john_analysis_table.ACTIVATION_DATE
into peter
FROM john_analysis_table INNER JOIN tom_analysis_table ON
john_analysis_table.ATT_ID = tom_analysis_table.ID
ORDER BY john_analysis_table.[Circuit ID];

The problem is with the into statement. When I remove it, the query works
fine.

Thanks for your help.

jj
 
JJ said:
The following query gives me an error- Invalid Argument

SELECT john_table.JJ_ID, john_analysis_table.[Circuit ID],
tom_analysis_table.BASELINE_ANNUAL, john_analysis_table.ACTIVATION_DATE
into peter
FROM john_analysis_table INNER JOIN tom_analysis_table ON
john_analysis_table.ATT_ID = tom_analysis_table.ID
ORDER BY john_analysis_table.[Circuit ID];

The problem is with the into statement. When I remove it, the query works
fine.

Thanks for your help.

jj

sounds like either your mapping is wrong or you're violating
referential integrity constraints in the insert.
 
Thank you.

I have not been able locate the error.

Wondering if the code I pasted would help some one to provide me with a
suggestion.

I was able to get the "into" statement to work with a single table
projection query. I seem to be running into this problem when I join tables.
Not sure if this is useful.

Thanks again for your help.

jj

The following query gives me an error- Invalid Argument

SELECT john_table.JJ_ID, john_analysis_table.[Circuit ID],
tom_analysis_table.BASELINE_ANNUAL, john_analysis_table.ACTIVATION_DATE
into peter
FROM john_analysis_table INNER JOIN tom_analysis_table ON
john_analysis_table.ATT_ID = tom_analysis_table.ID
ORDER BY john_analysis_table.[Circuit ID];

The problem is with the into statement. When I remove it, the query works
fine.

Thanks for your help.

jj

sounds like either your mapping is wrong or you're violating
referential integrity constraints in the insert.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top