rem
rem CSC 365. Lab 2. Test script for STUDENTS dataset
rem 
rem Alex Dekhtyar (dekhtyar@csc.calpoly.edu)
rem

spool lab2-STUDENTS-output.txt


rem Create tables

host echo '***********************************************'
host echo ' Creating tables  '
host echo '***********************************************'

host cat STUDENTS-setup.sql

start STUDENTS-setup.sql

rem Populate tables

host echo '***********************************************'
host echo ' Populating tables  '
host echo '***********************************************'

start STUDENTS-build-list.sql
start STUDENTS-build-teachers.sql

rem test tables

host echo '***********************************************'
host echo ' Testing tables  '
host echo '***********************************************'


host cat STUDENTS-test.sql
start STUDENTS-test.sql

rem formatted output

host echo '***********************************************'
host echo ' Testing SQL*plus formatting  '
host echo '***********************************************'

clear columns
clear breaks
 

host cat STUDENTS-formatted.sql
start STUDENTS-formatted.sql

clear columns
clear breaks


rem  modify tables

host echo '***********************************************'
host echo ' Modifying tables  '
host echo '***********************************************'

host cat STUDENTS-modify.sql
start STUDENTS-modify.sql


rem drop tables

host echo '***********************************************'
host echo ' Populating tables  '
host echo '***********************************************'

host cat STUDENTS-cleanup.sql
start STUDENTS-cleanup.sql

rem test that the tables no longer exist

start STUDENTS-test.sql


host echo '***********************************************'
host echo ' That is All, folks!  '
host echo '***********************************************'

spool off
