public String getCourseCode(int courseId) throws SQLException {
		NoteDatabaseManager dm = new NoteDatabaseManager();
		String s_courseId = Integer.toString(courseId);
		String sql = "select course_code from course where course_id = "
				+ s_courseId + ";";
		ResultSet rs = dm.sqlQuery(sql);
		String courseCode = null;

		while (rs.next()) {
			courseCode = rs.getString("course_code");
		}
		return courseCode;
	}