Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

bartleby

Concept explainers

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} |) .
х.
expand button
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
Check Mark
Knowledge Booster
Background pattern image
Computer Science
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
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education