Lesson 1 Listing Capabilities of SQL SELECT Statements
Lesson 1 Listing Capabilities of SQL SELECT Statements
Attendance check
CHAPTER
RETRIEVING DATA USING THE 1
SQL SELECT STATEMENT
output STORAGE
ORIGINATION
THIS IS THE FIRST STEP IN THE DATA
PROCESSING CYCLE. IN THIS STEP,
ALL SOURCE DOCUMENTS ARE
GATHERD SO THAT THESE CAN BE
USED FOR THE NEXT STEP.
INPUT
AFTER ALL OF THE SOURCE DOCUMENTS
GATHERED, THE INFORMATION OF THE
SOURCE DOCUMENT WILL BE INTRODUCED
INTO THE DATA PROCESSING SYSTEM. THIS
INFORMATION IS CREATED BY MEANS OF ANY
INPUT DEVICE SUCH AS KEYBOARD, MOUSE,
ETC.
PROCESSING
WHEN THE PIECE OF INFORMATION ARE
INPUTTED, PROCESSING WILL NOW TAKE PLACE.
SOURCE DOCUMENT WILL BE ALTERED TO
PRODUCE MEANINGFUL RESULTS. CLSSIFYING,
SORTING, CALCULATING, RECORDING, AND
SUMMARIZING ARE SOME EXAMPLES OF
FUNCTIONS THAT CAN BE DONE TO THE SOURCE
DOCUMENT.
OUTPUT
AFTER THE INFORMATION HAS BEEN
PROCESSED, THE RESULT, CALLED
THE OUTPUT, IS ACHIEVED.
STORAGE
ONCE THE OUTPUT HAS BEEN
CREATED, THIS OUTPUT CAN EITHER
BE STORED TEMPORARILY OR
PERMANENTLY SO THAT EVERYTIME A
USER WANTS TO USE THIS OUTPUT,
IT CAN BE RETRIEVED.
DATA PROCESSING METHODS
FOR THE SOURCE DOCUMENT TO BE
PROCESSED DIFFERENT METHODS ARE USED:
1. MANUAL METHOD – IN THIS METHOD SOURCED DOCUMENTS ARE
PREPARED BY USING TOOLS SUCH AS PENS, PENCILS, LEDGERS,
FILES, AND FOLDERS, AMONG OTHERS.
2. Mechanical Method – in this method, source documents are
manually prepared using mechanical equipment such as typewriter
and calculators.
3. Electronic method – in this method, source documents are
electronically prepared by the system. Batch processing and on-line
processing are the two modes in electronic method
Data processing modes
a. Row
b. Column
c. table
d. field
2. In this method, source documents are manually prepared
using equipment such as typewriter and calculator
a. Manual Method
b. Mechanical Method
c. Electrical Method
d. Electromechanical Method
3. In this method, source documents are prepared using tools
such as pens, pencils, ledgers, files, and folders, among others.
a. Manual Method
b. Mechanical Method
c. Electrical Method
d. Electromechanical Method
4. This is the vertical entity in a table that constrains all
information related to a specific field in a table.
a. row
b. column
c. table
d. field
5. In this operation, a certain column or field from a
table is selected
a. Selection
b. Projection
c. Joining
d. User authentication
6. It is a well-formed string containing variables,
constants, operators, or functions.
a. Constants
b. operators
c. Variable
d. expression
7. It is considered to be a group of database objects such as tables, views,
clusters, procedures, and package
a. User
b. Schema
c. Database security
d. user authentication
8. In this operation, a subset of rows or records in a table is
retrieved once it satisfies a selection condition.
a. Selection
b. Projection
c. Joining
d. User authentication
9. It controls the actions of users who are accessing the
database
a. User
b. Schema
c. Database security
d. user authentication
10. In this operation, data are combined from two or more tables
based on one or more common column values.
a. Selection
b. Projection
c. Joining
d. User authentication
BRAND MODEL CAMERA BATTERY PROCESSOR
Table Creation Created all of the tables defined Created most of the tables Partially created some of the
in project requirements defined in project requirements tables defined in project
Named tables appropriately in Table name was a little unclear requirements
regard to their data elements in regard to its data elements Table name did not correlate to
its data elements
Relations and Cardinalities Correctly interpreted all the Correctly Interpreted most Incorrectly Interpreted the
Business Rules and created all Business Rules and created Business Rules, few relations
necessary relations with clear most of the necessary relations were created and few
indication to the cardinalities with some indication to indications to Cardinalities and
and observing the three cardinalities and observing at Normal forms
normalizations forms. least two normal forms.
Keys and Entities Correctly choose all primary and Correctly choose most of the Incorrectly choose most of the
foreign keys respecting the primary and foreign keys primary and foreign Keys, and
naming convention respecting the naming somehow respected the naming
convention convention
Implementation Completely populated tables Populated tables with majority Populated tables with minimal
with correct data elements of data elements outlined in the data elements defined in project
reflecting the ERD design ERD design the ERD design
Mechanics Accurately entered data Entered data elements into Multiple keypunch errors when
elements into tables with no tables with minimal keypunch entering data elements into
keypunch errors errors tables
No spelling or grammar errors in Some minor spelling or Numerous errors.
database documentation grammar errors evident in
documentation
Reports Created all of the reports Created some of the reports Created minimal reports needed
needed for the as defined in needed for the company as for the company as defined in