Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

College of Engineering
Computer Engineering Department
2nd Semester A.Y.: 2022-2023

CPE 222L – SOFTWARE DESIGN

FT Coverage

“SQL DATABASING AND


Engr. Jameson C. Buhayang INTEGRATING WITH
Part-Time Faculty WINDOWS FORM ”
College of Engineering
Department of Computer Engineering

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

FINAL COVERAGE
SQL DATABASING AND INTEGRATING WITH WINDOWS FORM

Name: __________________________________________ Score: _______


Course, Yr. & Sec.: ______________________ Date Performed: __________________
Date Submitted: __________________
Instructor: ENGR. JAMESON C. BUHAYANG

EXPERIMENT # 5
(DATABASE MANIPULATION)

Overview:
In this experiment, you will be able to learn on how to write codes using structured
query language (SQL). From your previous experiments, you might as well connect your created
GUI design to your formulated database.

SQL is a standard language for storing, manipulating and retrieving data in databases.

What is SQL?
SQL stands for Structured Query Language
SQL lets you access and manipulate databases
SQL became a standard of the American National Standards Institute (ANSI) in 1986, and of the
International Organization for Standardization (ISO) in 1987.
What Can SQL do?
SQL can execute queries against a database
SQL can retrieve data from a database
SQL can insert records in a database
SQL can update records in a database
SQL can delete records from a database
SQL can create new databases
SQL can create new tables in a database
SQL can create stored procedures in a database
SQL can create views in a database
SQL can set permissions on tables, procedures, and views

Objectives:
➢ To write a code in SQL language.
➢ To connect GUI design to your database.

Programming Language:
Visual Basic / VB.Net , SQL

Procedure
➢ Click Tools
➢ Choose SQL Server then select New Query.

Laboratory Materials/ Equipment/ Software:


➢ Computers Unit/ Laptop
➢ Visual Basic for PC
Assessments:

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

BUILD PROGRAM

TASK #1 Create a DATABASE using structure query language. (Total: 100 pts)

1. Create Database (use LASTNAMEDB) as your database name.


2. Create two tables “StudentDetails” and “ClassSchedule” and supply the given data as provided
below (Student Number, Code, Course Number should be in primary key).
Table 1: Student Details

Table 2: Class Schedule

3. Update your Birth place by adding the name of your barangay.


4. Create a query that will view all the records where teacher is “Buhayang, J”.
5. Create a query that will view the records where Course Number is “EE 212” and teacher is
“Ancheta, A”.
6. Create a query that will view the records where Course Number is “CPE 222” or teacher is “Casili,
C”.
7. Select all the records where the value of the column "Course Title" starts with an “A”.
8. Select all the records with a Course Title starting with any characters, followed by "Appreciation".
9. Selects all the records with a Course Number starting with "C", followed by any character, followed
by "E", followed by any special character and number, followed by "2L".
10. Write a SQL statement that selects all records that has a Course Number of “CPE”. Display only the
Course Number and Course Title.
11. Create a query that will view the first 2 (top 2) records.
12. Delete the column name “Schedule”.
13. Add two (2) columns – “Room” and “Day and Time” and supply the columns with the data from
the deleted column “Schedule” respectively.
14. Add again another two (2) columns – “DateTime_Encoded” and “Grade” respectively and supply
the columns as follows:

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

DateTime_Encoded = Current DATETIME of PC (apply to all records).


GRADE: GE-SS 202 = 88.976
IC-FL-202 = 90.488
CPE 221 = 93.018
CPE 222 = 86.342
CPE 222L = 93.543
EE 212 = 98.879
EE 212L = 82.456
CPE 223 = 86.456
CPE 224 = 89.543
CPE 224L = 91.678
PE 224 = 92.436
View all the records.

Note: If you are not a regular student, just use the data/ enrolled subjects under your account.
DateTime Format = mon dd yyyy hh:mi:ss:mmm AM (or PM).

15. Write a SQL statement to find and display the average grade having a column name as “AVERAGE
GRADE”.
16. Write a SQL statement to find and display the total Units having a column name as
“TOTAL UNITS”.
17. View all the records under the ‘Teacher’ column into uppercase having a column name as
“TEACHER NAME IN UPPERCASE”.
18. View all the records under the ‘Code’ column into lowercase having a column name as “CODE
NAME IN LOWERCASE”.
19. Write a SQL function to view the length of the ‘Course Number’ text field having a column name as
“NUMBER OF CHARACTERS”.
20. Round off all the grades into the nearest hundredths.

Rubrics for Programming( Using SQL Command)

Criteria Points Description


Outstanding 100 pts The program meets all the requirements in the task specification.
The code is syntactically and logically correct for all cases.
Implementation of the program follows the indicated guidelines
and does not violate indicated restrictions. The implementation
also exhibits appropriate use of programming construction.
Above Average 80-90 pts The code works for typical input, but fails for minor special cases;
the major requirements are met, though some minor ones are not.
Some implementation on of the program violates indicated
restrictions.
Average 50-70 pts The code sometimes fails or typical input. Many parts of the
program implementation violate indicated restrictions and some
parts of the solution are not implemented using appropriate
programming construction.
Unsatisfactory 30-40 pts The code often fails, even for typical input. Most indicated
restrictions were violated.

Failing 0-20 pts Program that does not run and /or implemented incorrectly (based
on specifications and restrictions) automatically gets 0 for this
course output

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

REQUIREMENTS ON ANSWERING:

*Date of Submission:

The deadline will on MENTION during the meeting.

Note: Late submission will be deducted accordingly.

1 meeting – 10pts
2-3 meetings – 25 pts
4 meetings & more – 40 pts

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.
CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN CPE222L-SOFTWARE DESIGN

Disclaimer: This module is strictly confidential communication to and solely for the use of the recipient (All BSCpE 2nd Year Student) and may not be reproduce or
circulated without prior consent. If you are not the intended recipient, you may not disclose or use the information in this module in any way. This module is for
DEPARTMENT OF COMPUTER ENGINEERING informational purposes only with knowledge derived from study, experience, or instruction. All concepts and references belong to its rightful owners. No copyright
BACHELOR OF SCIENCE IN COMPUTER ENGINEERING infringement intended.

You might also like