Jump to content
We've recently updated our Privacy Statement, available here ×

WHERE clause not handled properly in iR 3.7.4


rlesmoore

Recommended Posts

The following SQL code results in error "ENROLL_STUDENT_KEY: Invalid Identifier". Moving the WHERE statements around indicates that the WHERE clause is not allowed at all. This makes iReports rather unusable for most reporting.

Any help is appreciated.

 

Les

Code:
SELECT     DTBL_STUDENT."DISTRICT_CODE" AS STU_DISTRICT_CODE,     DTBL_STUDENT."STUDENT_KEY" AS STU_STUDENT_KEY,     FTBL_ENROLLMENTS."STUDENT_KEY" AS ENROLL_STUDENT_KEYFROM     "K12INTEL_DW"."DTBL_STUDENTS" DTBL_STUDENT,     "K12INTEL_DW"."FTBL_ENROLLMENTS" FTBL_ENROLLMENTSWHERE    STU_DISTRICT_CODE='2082'    AND STU_STUDENT_KEY=ENROLL_STUDENT_KEY
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Hi,

try this:

SELECT     DTBL_STUDENT."DISTRICT_CODE" AS STU_DISTRICT_CODE,     DTBL_STUDENT."STUDENT_KEY" AS STU_STUDENT_KEY,     FTBL_ENROLLMENTS."STUDENT_KEY" AS ENROLL_STUDENT_KEYFROM     "K12INTEL_DW"."DTBL_STUDENTS" DTBL_STUDENT,     "K12INTEL_DW"."FTBL_ENROLLMENTS" FTBL_ENROLLMENTSWHERE    DTBL_STUDENT."DISTRICT_CODE"='2082'    AND DTBL_STUDENT."STUDENT_KEY" = FTBL_ENROLLMENTS."STUDENT_KEY"

HTH

Christina

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...