Skip to content

Commit

Permalink
add sqlperformancetest.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
albertleecn committed Mar 29, 2019
1 parent ecbcf11 commit 15fcb22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions labs/sqlperformancetest.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
insert into section(course_id,sec_id,semester,year,building,room_number,time_slot_id)
select course_id,sec_id,'Spring',2019,building,room_number,time_slot_id
from section as s
where s.year<2018 and s.course_id>=300

insert into section(course_id,sec_id,semester,year,building,room_number,time_slot_id)
select course_id,sec_id,'Fall',2018,building,room_number,time_slot_id
from section as s
where s.year<2018 and s.course_id>=300

commit

0 comments on commit 15fcb22

Please sign in to comment.