INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Retrieval Problems

Retrieval Problems

(OP)
I am working on my first report in InfoMaker attempting to create a customized roster using the back-end database to a class registration client at the community college I work for.  I've got the query written out with all of the indexes I'll need selected (spanning some 20 different tables).  The only retrieval argument I've set (SectionNo) is a string to allow users to select an individual class's mixed-character ID - referred to in our system as a Section Number.  However, when I attempt to retrieve the data using a valid section number, I am not returning any results.  The full query looks like this:

  SELECT ntm_sectionroster.seatgroupid,   
         ntm_sectionroster.studentid,   
         ntm_sectionroster.seatreservationid,   
         ntm_sectionroster.oca,   
         ntm_student.studentid,   
         ntm_student.personid,   
         ntm_person.personid,   
         ntm_person.preferredname,   
         ntm_person.nickname,   
         ntm_person.sortname,   
         ntm_person.gendertypeid,   
         ntm_person.birthday,   
         ntm_person.oca,   
         ntm_person.formattedname,   
         ntm_persontelephone.personid,   
         ntm_persontelephone.telephonenumber,   
         ntm_persontelephone.sortposition,   
         ntm_persontelephone.oca,   
         ntm_persontelephone.telephonestring,   
         ntm_personaddress.personid,   
         ntm_personaddress.locality,   
         ntm_personaddress.postalcode,   
         ntm_personaddress.countrycodeid,   
         ntm_personaddress.sortposition,   
         ntm_personaddress.oca,   
         ntm_personaddress.addressstring,   
         ntm_personaddress.addressline1,   
         ntm_personaddress.addressline2,   
         ntm_personaddress.addressline3,   
         ntm_personemail.personid,   
         ntm_personemail.emailaddress,   
         ntm_personemail.sortposition,   
         ntm_personemail.oca,   
         ntm_personnamepart.namepartid,   
         ntm_personnamepart.personid,   
         ntm_personnamepart.nameparttypeid,   
         ntm_personnamepart.name,   
         ntm_personnamepart.sortposition,   
         ntm_personnamepart.oca,   
         ref_gendertype.id,   
         ref_gendertype.name,   
         ref_gendertype.description,   
         ref_gendertype.oca,   
         ntm_seatgroup.seatgroupid,   
         ntm_seatgroup.sectionid,   
         ntm_section.sectionid,   
         ntm_section.offeringid,   
         ntm_section.sectionnumber,   
         ntm_meeting.scheduleid,   
         ntm_meeting.sectionid,   
         ntm_meeting.meetingtypeid,   
         ntm_meeting.oca,   
         ntm_schedule.name,   
         ntm_schedule.startdate,   
         ntm_schedule.enddate,   
         ntm_schedule.location,   
         ntm_schedulesite.scheduleid,   
         ntm_schedulesite.siteid,   
         ntm_schedulebuilding.scheduleid,   
         ntm_schedulebuilding.buildingid,   
         ntm_scheduleroom.scheduleid,   
         ntm_scheduleroom.roomid,   
         ntm_site.siteid,   
         ntm_site.sitecode,   
         ntm_site.name,   
         ntm_site.oca,   
         ntm_building.buildingid,   
         ntm_building.name,   
         ntm_building.buildingnumber,   
         ntm_building.oca,   
         ntm_building.siteid,   
         ntm_room.roomid,   
         ntm_room.roomnumber,   
         ntm_room.buildingid,   
         ntm_room.oca,   
         ntm_sectionfaculty.sectionid,   
         ntm_sectionfaculty.facultyid,   
         ntm_sectionfaculty.sectionroletypeid,   
         ntm_sectionfaculty.oca,   
         ntm_faculty.facultyid,   
         ntm_faculty.personid,   
         ntm_faculty.oca,   
         ntm_offering.offeringid,   
         ntm_offering.offeringcode,   
         ntm_offering.name,   
         ntm_offering.oca,   
         ntm_offering.courseid  
    FROM ntm_sectionroster,   
         ntm_student,   
         ntm_person,   
         ntm_persontelephone,   
         ntm_personaddress,   
         ntm_personemail,   
         ntm_personnamepart,   
         ref_gendertype,   
         ntm_seatgroup,   
         ntm_section,   
         ntm_meeting,   
         ntm_schedule,   
         ntm_schedulesite,   
         ntm_schedulebuilding,   
         ntm_scheduleroom,   
         ntm_site,   
         ntm_building,   
         ntm_room,   
         ntm_sectionfaculty,   
         ntm_faculty,   
         ntm_offering  
   WHERE ( ntm_sectionroster.studentid = ntm_student.studentid ) and  
         ( ntm_student.personid = ntm_person.personid ) and  
         ( ntm_person.personid = ntm_persontelephone.personid ) and  
         ( ntm_person.personid = ntm_personaddress.personid ) and  
         ( ntm_person.personid = ntm_personemail.personid ) and  
         ( ntm_person.personid = ntm_personnamepart.personid ) and  
         ( ntm_person.gendertypeid = ref_gendertype.id ) and  
         ( ntm_sectionroster.seatgroupid = ntm_seatgroup.seatgroupid ) and  
         ( ntm_seatgroup.sectionid = ntm_section.sectionid ) and  
         ( ntm_section.sectionid = ntm_meeting.sectionid ) and  
         ( ntm_meeting.scheduleid = ntm_schedule.scheduleid ) and  
         ( ntm_schedule.scheduleid = ntm_schedulesite.scheduleid ) and  
         ( ntm_schedule.scheduleid = ntm_schedulebuilding.scheduleid ) and  
         ( ntm_schedule.scheduleid = ntm_scheduleroom.scheduleid ) and  
         ( ntm_schedulesite.siteid = ntm_site.siteid ) and  
         ( ntm_schedulebuilding.buildingid = ntm_building.buildingid ) and  
         ( ntm_scheduleroom.roomid = ntm_room.roomid ) and  
         ( ntm_section.sectionid = ntm_sectionfaculty.sectionid ) and  
         ( ntm_sectionfaculty.facultyid = ntm_faculty.facultyid ) and  
         ( ntm_section.offeringid = ntm_offering.offeringid ) and  
         ( ( ntm_section.sectionnumber = :SectionNo ) )   
ORDER BY ntm_person.sortname ASC   

Any thoughts as to why no results are being retrieved would be greatly appreciated - thanks!

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close