SQL Select From Query -
doing revision , cannot work out past examination question.
complete following sql statement finds date of oldest painting shown in either exhibition no. e3500 or e5500:
select . . . . . these tables
sponsor (sponsor_no, sponsor_name, sponsor_address, telephone_no, . . .) exhibition (exhibition_no, location, curator, . . .) visitor (visitor_no, visitor_name, visitor_address . . .) visit (visit_no, visitor_no, exhibition_no, date, entry-time, exit_time . . .) painting (painting_no, description, date_of_painting, exhibition_no . . .)
select min(date_of_painting) painting exhibition_no in ('e3500', 'e5500')
Comments
Post a Comment