Hi there!!!
I am a kind of newbie in programming. My environment is Apache, MySQL and PHP. I have created the following tables in MySQL:
Table1-INSTITUTIONS //Table that holds information about an institution
id(Field, Primary Key) //Unique ID for an institution(ex:100251)
name(Field) //Name of the Institution(ex:Harvard University)
city(Field) //City of the Institution(ex:Cambridge)
state(Field) //State of the Institution(ex:MA)
Table2-DEGREES (lookup table)
insid(Field) //Unique ID for an institution(ex:100251)
cipcode(Field) //CIP Code of the Degree(ex: 11.0101)
awalevel(Field) //Degree Level (ex:3, which corresponds to Associates)
Table3-CIPCODE
id(Field, Primary Key) //Unique ID for a Degree(ex:11.0101)
cipfamily(Field) //CIP Family of the Degree(ex: 11)
label(Field) //Description of the Degree (ex: Computer and Information Sciences, General)
Table4-AWALEVEL
id(Field, Primary key) //Unique ID for a Degree Level (ex:3)
label(Field) //Label of the Degree Level (ex: Associates)
description(Field) // Description fot he Degree Level
Table5-CIPFAMILY
id(Field, Primary Key) //Unique ID for CIPFamily (ex:11)
label(Field) //Lable of the CipFamily (Ex: Computer and Information Sciences and Support Services)
Here is my question (query): If I want to find out the name, city and state of all the institutions that offer Computer and Information Sciences, General at the Associates Level, what would be my query? I am a bit familiar with retreiving information between two tables, but here as there are more than two tables, I am not familiar with the code. Any help would be appreciated...








Bookmarks