Chabot College Fall 2002 Removed Fall 2006

advertisement
Chabot College
Fall 2002
Removed Fall 2006
Course Outline for Computer Science 47C
TRANSACT-SQL IN THE SQL SERVER DATABASE
Catalog Description:
47C - Transact-SQL in the SQL Server Database
2 units
Introduction to the use of Transact-SQL in the SQL Server database. Topics include SQL
Server architecture, data modeling, data definition and retrieval, action queries, triggers
and data replication. Includes a review of basic Structured Query Language (SQL).
Prerequisite: Computer Science 47A and Computer Science 10 or Computer Science 11
(all completed with a grade with a grade of C or higher). 1.5 hours lecture, 1.5 hours
laboratory.
Prerequisite Skills:
Before entering the course the student should be able to:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
construct related data tables using primary/foreign key relational integrity rules;
produce data entry forms that ensure data integrity;
construct queries by QBE (query by example) and directly in SQL;
produce reports that present data results in a meaningful and usable manner;
link Access to the SQL Server database;
recognize basic computer terms;
identify personal computer system components and computer operating systems;
navigate in the Windows environment;
specify and design the user interface for a program using Visual Basic controls;
develop algorithms for the solution of programming problems;
write Visual Basic code using structured programming constructs, arrays,
subroutines, functions and sequential text files;
enter, edit, test and debug Visual Basic programs;
produce well documented, user-friendly, easy-to-read programs with well-designed
output;
recognize and identify the specific elements of Visual Basic Windows environment;
state the properties of controls and be able to create controls in a program;
describe the properties of dialog boxes and be able to create programs which contain
dialog boxes;
define, recognize and use variables of various Visual Basic data types;
write Visual Basic code which sets and retrieves properties, uses control structures,
and is modular;
create introductory Windows applications with elementary controls, menus and dialog
boxes;
write Windows applications involving mathematical calculations, text processing and
list processing;
use Visual Basic system debugging features to find and correct errors in a program.
Expected Outcome for Students:
Upon completion of the course the student should be able to:
1.
2.
3.
4.
describe the structure of the SQL Server database;
demonstrate familiarity with the methods of data modeling;
code data definition and retrieval statements;
create action queries to modify data;
Chabot College
Course Outline for Computer Science 47 C
Fall 2002
Page 2
Expected Outcome for Students: continued
5. demonstrate familiarity with the use of indexes and triggers;
6. demonstrate familiarity with the process of data replication.
Course Content:
1. SQL Server database structure
a. ISQL/w and the Enterprise Manager
b. System databases and tables
2. Data modeling
a. Entity-Relationship diagrams
b. Enforcing data integrity
c. Data normalization
3. SQL coding
a. Data definition
b. Data retrieval
c. Aggregate functions
4. Transact-SQL
a. Action queries to modify data
b. Indexes
c. Views
d. Control-of-flow statements
e. Triggers
5. Data replication
Methods of Presentation:
1. Lecture, discussion and classroom demonstrations
2. Student use of Access database software in computer laboratory
Assignments and Methods of Evaluating Student Progress:
1. Typical Assignments
a. Resolve two database tables having a many-to-many relationship into three
database tables with one-to-many relationships. Construct the new third table
from the appropriate fields taken from the original two tables. Give the join
conditions that will now connect the three tables in any SQL query.
b. Construct and test an anonymous Transact SQL code block. Then convert the
code block to a stored procedure and store it in the SQL Server database. Write
a new anonymous T-SQL code block to call and execute the stored procedure.
c. Write a trigger and store it in the SQL Server database. Write an anonymous
SQL update block that will cause the trigger to fire. Show the contents of the
appropriate db table before and after the trigger has executed.
2. Methods of Evaluating Student Progress
a. Exams which may include quizzes, midterms and a required final examination.
b. Writing and implementation of various and multiple assigned programs and other
assignments that utilize all topics included above in the course of study.
Chabot College
Course Outline for Computer Science 47 C
Fall 2002
Textbooks(s) (typical):
SQL Server 6.5 Database Design; Kevin Hough, Sybex Press, 1999
Special Student Materials:
Computer lab fee
Diskettes
Optional zip disk
A. Oliver
E:/CS/CS46B.Jan00
Renamed: Conway Fall 2002
CS 47C Outline Fall 2002
Page 3
Download