100% found this document useful (1 vote)
209 views

Online Education Laboratory Exercise

This document provides directions and a table for a laboratory exercise on writing SELECT statements in PL/SQL. It instructs the user to use the Parts table from a previous lab and write PL/SQL code to return the printed output for 15 numbered questions without using IN conditions. The Parts table structure and sample data is provided to reference for the questions. An advantage of using logical conditions is mentioned - it allows adding conditions to a SELECT statement to get a desired report/view.

Uploaded by

Jolex Acid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
209 views

Online Education Laboratory Exercise

This document provides directions and a table for a laboratory exercise on writing SELECT statements in PL/SQL. It instructs the user to use the Parts table from a previous lab and write PL/SQL code to return the printed output for 15 numbered questions without using IN conditions. The Parts table structure and sample data is provided to reference for the questions. An advantage of using logical conditions is mentioned - it allows adding conditions to a SELECT statement to get a desired report/view.

Uploaded by

Jolex Acid
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Course Code Type Course Code Here

Database Management System


Description
1
College / Department:
LabExer No. 004
Online Education
Laboratory Exercise Page 1 of 1

Direction:
 Use the Parts table in LabExer003 (previous week)
 This activity covers all SELECT statement discussed starting week 5-7.
 Based on the given table: PARTS as shown below, write the PL/SQL in order to get the printed output
per number. Write your answer in a short bond paper.
 Do not used IN condition.
 Copy and paste the PL/SQL code on the space provided after each questions.
Table Name: PARTS
PARTNUM DESCRIPTION ONHAND CLASS WAREHOUSE PRICE
AT94 IRON 50 HW 3 2495
BVO6 HOME GYM 45 SG 2 79495
CD52 MICROWAVE OVEN 32 AP 1 165
DL71 CORDLESS DRILL 21 HW 3 12995
DR93 GAS RANGE 21 AP 2 495
DW11 WASHER 12 AP 3 399
FD21 STAND MIXER 22 HW 3 159
KL62 DRYER 12 AP 1 349
KT03 DISHWASHER 8 AP 3 595
KV29 TREADMILL 9 SG 2 1390

PARTS structure
COLUMN NAME DATA TYPE/SIZE KEY NULL
PARTNUM CHAR – 4 PRIMARY NOT NULL
DESCRIPTION VARCHAR – 20 NOT NULL
ONHAND NUMBER – 6
CLASS CHAR – 5
WAREHOUSE NUMBER – 6
PRICE NUMBER – 6

1.

2.

3.

4.

5.
6.

7.

8.

9.

10.

11.
12.

13.

14.

15. What is the advantage of using Logical Condition?

Logical condition is very helpful whenever you’re creating a SELECT statement as it allows you to
add condition to the statement and get your desired report/view.

You might also like