A database of application of wholesaler can be modelled by means of the relations price, in_stock and supplies. Price is a relation over products  1…30, which models the association between prices and stock items. In_stock is a relation over products  N, which models the association between stock items and the current number in stock of product. Supplies is a relation over suppliers  products which models the relation between a supplier and the product that is delivered by that supplier. If the current value of these relations are following: price = {(nut, 5), (bolt, 13), (screw, 3), (board, 25), (fastener, 23)}, in_stock = {(nut, 700), (bolt, 2200), (screw, 55), (board, 0), (fastener, 600)}, supplies = {(Thomas, nut), (Thomas, bolt), (Wilks, bolt), (Wilks, screw), (Wilks, board), (Wilks, fastener), (Rogers, board), (Rogers, fastener)}, then what is the value of the following expressions? i. {nut, bolt} price ii. dom(price 1…15). iii. rng(price 1…10). iv. dom(supplies; (in_stock {0})). v. price  {(hanger, 5 ) , (screw, 7 ) } vi. dom(supplies;(price 5 … 2 5)). vii. supplies |{ | Rogers, Wilson} )( . viii. ((supplies; price) 1 … 1 5 ) | | Robinson, Rogers )( . ix. {Thomas } supplies. x. (in_stock {0} ) ( | |nut, bolt ) .

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

A database of application of wholesaler can be modelled by means of the relations price, in_stock and
supplies. Price is a relation over products

1…30, which models the association between prices and
stock items. In_stock is a relation over products

N, which models the association between stock items
and the current number in stock of product. Supplies is a relation over suppliers

products which
models the relation between a supplier and the product that is delivered by that supplier. If the current
value of these relations are following:
price = {(nut, 5), (bolt, 13), (screw, 3), (board, 25), (fastener, 23)},
in_stock = {(nut, 700), (bolt, 2200), (screw, 55), (board, 0), (fastener, 600)},
supplies = {(Thomas, nut), (Thomas, bolt), (Wilks, bolt), (Wilks, screw), (Wilks, board), (Wilks,
fastener), (Rogers, board), (Rogers, fastener)},
then what is the value of the following expressions?
i. {nut, bolt} price
ii. dom(price 1…15).
iii. rng(price 1…10).
iv. dom(supplies; (in_stock {0})).

v. price

{(hanger,
5
)
, (screw,
7
)
}
vi. dom(supplies;(price
5

2
5)).
vii. supplies |{ | Rogers, Wilson} )(
.
viii. ((supplies; price)
1

1
5
)
| | Robinson, Rogers )(
.
ix.
{Thomas
} supplies.
x. (in_stock {0}
)
( | |nut, bolt
) .

Question 1:
[Marks: =20]
A database of application of wholesaler can be modelled by means of the relations price, in_stock and
supplies. Price is a relation over products ×1...30, which models the association between prices and
stock items. In_stock is a relation over products ×N, which models the association between stock items
and the current number in stock of product. Supplies is a relation over suppliers xproducts which
models the relation between a supplier and the product that is delivered by that supplier. If the current
value of these relations are following:
price = {(nut, 5), (bolt, 13), (screw, 3), (board, 25), (fastener, 23)},
in_stock = {(nut, 700), (bolt, 2200), (screw, 55), (board, 0), (fastener, 600)},
supplies = {(Thomas, nut), (Thomas, bolt), (Wilks, bolt), (Wilks, screw), (Wilks, board), (Wilks,
fastener), (Rogers, board), (Rogers, fastener)},
then what is the value of the following expressions?
{nut, bolt} 4 price
ii. dom(price > 1...15).
iii. ng(price > 1...10).
i.
iv. dom(supplies; (in_stock > {0})).
price e {(hanger,5), (screw, 7)}
vi. dom(supplies:(price> 5...25)).
vii. supplies (| {Rogers, Wilson} |).
V.
viii.
((supplies; price) > 1..15) ({Robinson, Rogers} |).
ix.
{Thomas} < supplies.
(in_stock> {0}) ({nut, bolt} |) .
х.
Transcribed Image Text:Question 1: [Marks: =20] A database of application of wholesaler can be modelled by means of the relations price, in_stock and supplies. Price is a relation over products ×1...30, which models the association between prices and stock items. In_stock is a relation over products ×N, which models the association between stock items and the current number in stock of product. Supplies is a relation over suppliers xproducts which models the relation between a supplier and the product that is delivered by that supplier. If the current value of these relations are following: price = {(nut, 5), (bolt, 13), (screw, 3), (board, 25), (fastener, 23)}, in_stock = {(nut, 700), (bolt, 2200), (screw, 55), (board, 0), (fastener, 600)}, supplies = {(Thomas, nut), (Thomas, bolt), (Wilks, bolt), (Wilks, screw), (Wilks, board), (Wilks, fastener), (Rogers, board), (Rogers, fastener)}, then what is the value of the following expressions? {nut, bolt} 4 price ii. dom(price > 1...15). iii. ng(price > 1...10). i. iv. dom(supplies; (in_stock > {0})). price e {(hanger,5), (screw, 7)} vi. dom(supplies:(price> 5...25)). vii. supplies (| {Rogers, Wilson} |). V. viii. ((supplies; price) > 1..15) ({Robinson, Rogers} |). ix. {Thomas} < supplies. (in_stock> {0}) ({nut, bolt} |) . х.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Research
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education