Creating a new attribute in Oracle database from two other attributes
问题 I have a Classes table which is as follows: Classes(classid, dept_code, course#, sect#, year, semester, limit, class_size, room, TA_B#) The qeustion is: Find the classid, dept_code and course# of each undergraduate class (i.e., course# < 500) that was offered in Spring 2017. For each such class, also list the number of seats available (computed by limit – class_size) under the header “seats_available”. I tried this simple approach: select classes.classid, classes.dept_code, classes.course#,