Consider the following relational schema (the primary keys are in bold): client (taxPayerID, name, address) stock (sTick

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Consider the following relational schema (the primary keys are in bold): client (taxPayerID, name, address) stock (sTick

Post by answerhappygod »

Consider the following relational schema (the primary keys are
in bold):
client (taxPayerID, name, address)
stock (sTicker, sName, rating, prinBus, sHigh,
sLow, sCurrent, ret1Yr, ret5Yr)
mutualFund (mTicker, mName, prinObj, mHigh,
mLow, mCurrent, yield, familyID)
fundFamily (familyID, company,
cAddress)
stockPortfolio (taxPayerID, sTicker,
sNumShares)
mutualFundPortfolio (taxPayerID, mTicker,
mNumShares)
Write the following queries in Relational Algebra and
SQL.
1. Which clients have not invested in both stocks whose
principal business is 'Healthcare' and mutual funds whose principal
objective is 'Stability'?
2. Which clients have not invested in any of the mutual funds
within the 'American fund family'?
3. Which clients have invested in both stocks and mutual
funds?
4. Which clients have invested in mutual funds whose principal
objective is 'I' (i.e., Income)?
*I will not upvote if I do not have both relational algebra and
SQL. Thank you
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply