Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
6 views
4 pages
TABLEEEEE
Table
Uploaded by
Geramier Apostol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download
Save
Save TABLEEEEE For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
6 views
4 pages
TABLEEEEE
Table
Uploaded by
Geramier Apostol
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save TABLEEEEE For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save TABLEEEEE For Later
You are on page 1
/ 4
Search
Fullscreen
CREATE TABLE Items (
ItemNumber INT PRIMARY KEY,
ItemDescription VARCHAR2(100) NOT NULL,
ItemPrice NUMBER(10, 2) CHECK (ItemPrice >= 0),
ItemQuantity INT CHECK (ItemQuantity >= 0),
ItemCategory VARCHAR2(50) CHECK (ItemCategory IN ('Canned Goods',
'Beverages', 'Snacks', 'Noodles', 'Frozen Goods'))
);
-- Inserting 50 items, 10 for each category
INSERT INTO Items (ItemNumber, ItemDescription, ItemPrice, ItemQuantity,
ItemCategory) VALUES
(1, 'Canned Tuna', 25.50, 50, 'Canned Goods'),
(2, 'Corned Beef', 35.75, 30, 'Canned Goods'),
(3, 'Sardines', 18.00, 70, 'Canned Goods'),
(4, 'Canned Pork', 40.00, 20, 'Canned Goods'),
(5, 'Canned Beans', 22.50, 50, 'Canned Goods'),
(6, 'Canned Peaches', 45.00, 15, 'Canned Goods'),
(7, 'Canned Pineapple', 30.00, 25, 'Canned Goods'),
(8, 'Canned Soup', 38.00, 40, 'Canned Goods'),
(9, 'Canned Mushrooms', 48.50, 20, 'Canned Goods'),
(10, 'Canned Tomatoes', 32.00, 10, 'Canned Goods'),
(11, 'Orange Juice', 45.00, 40, 'Beverages'),
(12, 'Apple Juice', 55.00, 30, 'Beverages'),
(13, 'Mango Juice', 60.00, 20, 'Beverages'),
(14, 'Iced Tea', 35.00, 50, 'Beverages'),
(15, 'Cola', 25.00, 70, 'Beverages'),
(16, 'Lemonade', 28.00, 60, 'Beverages'),
(17, 'Coffee', 150.00, 10, 'Beverages'),
(18, 'Milk', 80.00, 25, 'Beverages'),
(19, 'Water', 10.00, 100, 'Beverages'),
(20, 'Chocolate Milk', 90.00, 35, 'Beverages'),
(21, 'Potato Chips', 25.00, 100, 'Snacks'),
(22, 'Chocolate Bar', 50.00, 40, 'Snacks'),
(23, 'Granola Bar', 35.00, 60, 'Snacks'),
(24, 'Peanuts', 20.00, 90, 'Snacks'),
(25, 'Popcorn', 15.00, 50, 'Snacks'),
(26, 'Cookies', 45.00, 40, 'Snacks'),
(27, 'Pretzels', 30.00, 70, 'Snacks'),
(28, 'Nachos', 28.00, 60, 'Snacks'),
(29, 'Candy', 12.00, 200, 'Snacks'),
(30, 'Gummy Bears', 10.00, 150, 'Snacks'),
(31, 'Instant Noodles', 12.00, 200, 'Noodles'),
(32, 'Ramen', 25.00, 100, 'Noodles'),
(33, 'Pasta', 35.00, 60, 'Noodles'),
(34, 'Soba Noodles', 40.00, 80, 'Noodles'),
(35, 'Udon Noodles', 45.00, 50, 'Noodles'),
(36, 'Rice Noodles', 30.00, 120, 'Noodles'),
(37, 'Cup Noodles', 20.00, 180, 'Noodles'),
(38, 'Egg Noodles', 38.00, 70, 'Noodles'),
(39, 'Mung Bean Noodles', 22.00, 90, 'Noodles'),
(40, 'Glass Noodles', 28.00, 50, 'Noodles'),
(41, 'Frozen Pizza', 120.00, 30, 'Frozen Goods'),
(42, 'Frozen Chicken Nuggets', 150.00, 25, 'Frozen Goods'),
(43, 'Frozen Fries', 80.00, 50, 'Frozen Goods'),
(44, 'Frozen Fish Fillet', 200.00, 20, 'Frozen Goods'),
(45, 'Frozen Vegetables', 90.00, 40, 'Frozen Goods'),
(46, 'Frozen Dumplings', 125.00, 35, 'Frozen Goods'),
(47, 'Frozen Meatballs', 130.00, 45, 'Frozen Goods'),
(48, 'Frozen Ice Cream', 250.00, 15, 'Frozen Goods'),
(49, 'Frozen Bacon', 180.00, 20, 'Frozen Goods'),
(50, 'Frozen Sausages', 160.00, 30, 'Frozen Goods');
-- 1. Update prices lower than 500 and add 10%
UPDATE Items
SET ItemPrice = ItemPrice * 1.10
WHERE ItemPrice < 500;
-- 2. Update quantity if it's considered critical stock per category
UPDATE Items
SET ItemQuantity = ItemQuantity + (ItemQuantity / 2)
WHERE (ItemCategory = 'Canned Goods' AND ItemQuantity < 300)
OR (ItemCategory = 'Beverages' AND ItemQuantity < 200)
OR (ItemCategory = 'Snacks' AND ItemQuantity < 100)
OR (ItemCategory = 'Noodles' AND ItemQuantity < 50)
OR (ItemCategory = 'Frozen Goods' AND ItemQuantity < 500);
-- 3. Search for items categorized as Frozen Goods and update them as N/A
UPDATE Items
SET ItemDescription = 'N/A'
WHERE ItemCategory = 'Frozen Goods';
You might also like
Order Form
PDF
No ratings yet
Order Form
1 page
NorthWind Sample Database
PDF
No ratings yet
NorthWind Sample Database
26 pages
Restaurant DB
PDF
No ratings yet
Restaurant DB
12 pages
Online Fruit Shop Management System
PDF
No ratings yet
Online Fruit Shop Management System
19 pages
DBMS Practical Practice
PDF
No ratings yet
DBMS Practical Practice
34 pages
Normalization
PDF
No ratings yet
Normalization
11 pages
House of Blue Light
PDF
No ratings yet
House of Blue Light
2 pages
DBMS Alloperators
PDF
No ratings yet
DBMS Alloperators
6 pages
SQL
PDF
No ratings yet
SQL
41 pages
K. Shreya
PDF
No ratings yet
K. Shreya
9 pages
Code
PDF
No ratings yet
Code
17 pages
CREATE TABLE Starbuck1
PDF
No ratings yet
CREATE TABLE Starbuck1
10 pages
Queries Thippa
PDF
No ratings yet
Queries Thippa
6 pages
KEY - ĐỀ 2 THI THỬ VÀO 10 CHUYÊN ANH (fixed)
PDF
No ratings yet
KEY - ĐỀ 2 THI THỬ VÀO 10 CHUYÊN ANH (fixed)
13 pages
Script SQL
PDF
No ratings yet
Script SQL
8 pages
Keep It REAL! - Level 2 - TEACHER'S RESOURCES - Test - Unit 2 - Consolidation
PDF
No ratings yet
Keep It REAL! - Level 2 - TEACHER'S RESOURCES - Test - Unit 2 - Consolidation
3 pages
Ms 7
PDF
No ratings yet
Ms 7
3 pages
Odd Queries
PDF
No ratings yet
Odd Queries
19 pages
Boruto X Tsunade
PDF
50% (2)
Boruto X Tsunade
20 pages
Insert Data
PDF
No ratings yet
Insert Data
2 pages
SQL Codes
PDF
No ratings yet
SQL Codes
3 pages
7-12 Merged
PDF
No ratings yet
7-12 Merged
19 pages
SQLLLLL
PDF
No ratings yet
SQLLLLL
1 page
Ex 3 For Understanding
PDF
No ratings yet
Ex 3 For Understanding
2 pages
SM Gift Pass
PDF
No ratings yet
SM Gift Pass
2 pages
Erd - WMS
PDF
No ratings yet
Erd - WMS
1 page
SQL Commands
PDF
No ratings yet
SQL Commands
10 pages
Northwind
PDF
No ratings yet
Northwind
21 pages
Sales and Cost Tables
PDF
No ratings yet
Sales and Cost Tables
4 pages
SQL Queries
PDF
No ratings yet
SQL Queries
2 pages
Itech 1103
PDF
No ratings yet
Itech 1103
207 pages
Mod5 SQL
PDF
No ratings yet
Mod5 SQL
8 pages
Table Items
PDF
No ratings yet
Table Items
2 pages
TVL Fos Q2m5week8 Ok 1
PDF
No ratings yet
TVL Fos Q2m5week8 Ok 1
14 pages
Create DB Inventory
PDF
No ratings yet
Create DB Inventory
1 page
A Project Report For
PDF
No ratings yet
A Project Report For
20 pages
Out New
PDF
No ratings yet
Out New
4 pages
Dbms Grocery Billing System
PDF
No ratings yet
Dbms Grocery Billing System
3 pages
Futuresource InterDigital Spotlight On HEVC Dec2023
PDF
No ratings yet
Futuresource InterDigital Spotlight On HEVC Dec2023
20 pages
DX Log
PDF
No ratings yet
DX Log
29 pages
Grocery SQL
PDF
No ratings yet
Grocery SQL
3 pages
Scripts
PDF
No ratings yet
Scripts
9 pages
Create DB Store
PDF
No ratings yet
Create DB Store
3 pages
2018 Bandquet Pressbook
PDF
No ratings yet
2018 Bandquet Pressbook
50 pages
Upc Math
PDF
No ratings yet
Upc Math
2 pages
QB Evaluation Form
PDF
100% (2)
QB Evaluation Form
2 pages
Dsa (Reviewer)
PDF
No ratings yet
Dsa (Reviewer)
1 page
Day2 (Prefinal)
PDF
No ratings yet
Day2 (Prefinal)
1 page
Schema Creation
PDF
No ratings yet
Schema Creation
3 pages
Quuzzzzzz
PDF
No ratings yet
Quuzzzzzz
2 pages
Karthi Kun
PDF
No ratings yet
Karthi Kun
24 pages
Grocery Billing Store Mysql Queries
PDF
No ratings yet
Grocery Billing Store Mysql Queries
2 pages
Seinfeld This Is The One
PDF
100% (1)
Seinfeld This Is The One
74 pages
Inventory Management
PDF
No ratings yet
Inventory Management
20 pages
Led Lighting Catalogue 16
PDF
No ratings yet
Led Lighting Catalogue 16
3 pages
Database Examples Northwind MySQL
PDF
No ratings yet
Database Examples Northwind MySQL
25 pages
Lec 32 Create Table
PDF
No ratings yet
Lec 32 Create Table
1 page
01 TRFC & Revn Report April 19 (DPR)
PDF
No ratings yet
01 TRFC & Revn Report April 19 (DPR)
20 pages
Application Letter
PDF
No ratings yet
Application Letter
1 page
Cambio de Precio de Botas Codigo
PDF
No ratings yet
Cambio de Precio de Botas Codigo
1 page
Speed Kun
PDF
No ratings yet
Speed Kun
25 pages
DROOP Char Sheet
PDF
0% (1)
DROOP Char Sheet
1 page
Karthi Kun
PDF
No ratings yet
Karthi Kun
24 pages
Appb Dbcreate
PDF
0% (1)
Appb Dbcreate
9 pages
SQL1 Merged
PDF
No ratings yet
SQL1 Merged
78 pages
Dbdiagram Io
PDF
No ratings yet
Dbdiagram Io
3 pages
Data Analysis (Reviewer)
PDF
No ratings yet
Data Analysis (Reviewer)
7 pages
'Joe' 'Blue' 'Boe' 'Blue' 'Coe' 'Blue' 'Doe' 'Blue' 'Eoe' 'Blue' 'Foe' 'Blue' 'Aoe' 'Blue'
PDF
No ratings yet
'Joe' 'Blue' 'Boe' 'Blue' 'Coe' 'Blue' 'Doe' 'Blue' 'Eoe' 'Blue' 'Foe' 'Blue' 'Aoe' 'Blue'
2 pages
SQL Queries: S.no Pname Sname Qty Price City
PDF
No ratings yet
SQL Queries: S.no Pname Sname Qty Price City
2 pages
Speed Kun
PDF
No ratings yet
Speed Kun
30 pages
Dha Development of Dha City Karachi. Dha Development of Dha City Karachi
PDF
No ratings yet
Dha Development of Dha City Karachi. Dha Development of Dha City Karachi
4 pages
Dbms Lab
PDF
No ratings yet
Dbms Lab
15 pages
Dbms Lab Work
PDF
No ratings yet
Dbms Lab Work
10 pages
Instant Pot: Top 1001 Instant Pot Recipes For You
From Everand
Instant Pot: Top 1001 Instant Pot Recipes For You
Diane Stewart
4.5/5 (2)
1 Eje
PDF
No ratings yet
1 Eje
3 pages
Insert Into Values (&, ,, ,) : '&distributor - Name' '&contact - Person' '&contact - Phone' '&contact - Email'
PDF
No ratings yet
Insert Into Values (&, ,, ,) : '&distributor - Name' '&contact - Person' '&contact - Phone' '&contact - Email'
12 pages
Whiteley, Sheila - Sexing The Groove - Popular Music and Gender-Taylor and Francis (2013)
PDF
100% (1)
Whiteley, Sheila - Sexing The Groove - Popular Music and Gender-Taylor and Francis (2013)
393 pages
Online Food Ordering System: Team Members
PDF
No ratings yet
Online Food Ordering System: Team Members
5 pages
SQL Assignment
PDF
No ratings yet
SQL Assignment
6 pages
Mabuni Kenzo - Curriculum
PDF
No ratings yet
Mabuni Kenzo - Curriculum
4 pages
Create Database TOKO
PDF
No ratings yet
Create Database TOKO
1 page
Ocr C1 08
PDF
No ratings yet
Ocr C1 08
1 page
The Basics of CD Technology
PDF
No ratings yet
The Basics of CD Technology
2 pages
Hospitality-1 Assignments Written
PDF
No ratings yet
Hospitality-1 Assignments Written
8 pages
B D Ventas Sequence
PDF
No ratings yet
B D Ventas Sequence
8 pages
Music Workshop 101
PDF
100% (1)
Music Workshop 101
88 pages
Aimbot DLC 95
PDF
100% (3)
Aimbot DLC 95
6 pages
Beatrice Gebert Need Tpic 9x
PDF
No ratings yet
Beatrice Gebert Need Tpic 9x
6 pages
PostgreSQL Dummy Database - Pizza Import (TXT File) (/i)
PDF
No ratings yet
PostgreSQL Dummy Database - Pizza Import (TXT File) (/i)
3 pages
English Literature
PDF
0% (1)
English Literature
106 pages
80 Beatles
PDF
No ratings yet
80 Beatles
5 pages
Bobby McFerrin - Don't Worry Be Happy - YouTube
PDF
No ratings yet
Bobby McFerrin - Don't Worry Be Happy - YouTube
5 pages
Bauer PilecoParts Book D46
PDF
No ratings yet
Bauer PilecoParts Book D46
32 pages
Test 1 - MS Thao 0905917335
PDF
No ratings yet
Test 1 - MS Thao 0905917335
6 pages
Artheo Reviewer
PDF
No ratings yet
Artheo Reviewer
7 pages
RSK200117 Acoustic 2019 G7 DIGITAL 08dec2021
PDF
100% (4)
RSK200117 Acoustic 2019 G7 DIGITAL 08dec2021
73 pages