Schema of a database storing information

Assignment Help Business Management
Reference no: EM131447959

Question:

Devise relational algebra queries for the following schema of a database storing information about daily stock prices and basic transactions made by a trading rm. You should dene domains so as to make the schema complete.

STOCK (ticker, exchange) ticker: the stock's ticker symbol; e.g. GOOG, AAPL, GE exchange: the exchange where the ticker is listed; e.g. NYSE, NASDAQ PRICE (ticker, date, close) ticker: the stock's ticker symbol date: the date of the price information close: the closing price of the stock BUYnSELL (buy or sell,ticker, date, timestamp, value, num of shares) buy or sell: 'BUY' or 'SELL' ticker: the stock's ticker symbol date: the date of the price information timestamp: time of the transaction price: the price of a single share num of shares: number of shares (bought or sold)
Express the following except from (v) as relational algebra expressions.

i. Find the tickers and closing prices of all stocks exchanged in 2017 (careful with this question).

ii. Find the tickers whose closing price is both higher than 'IBM' on '3/20/2017' and no higher than 'GOOG' on the same date.

iii. Find the tickers of all stocks that closed at the highest price on '3/20/2017'. (we are asking for all stocks" since there may be more than one with the same highest price")

iv. Find the tickers of all stocks in 'NYSE' whose closing price on '3/20/2017' was either strictly below $20 or above $100

v. Find the tickers of the stocks whose closing price showed the highest increase between '3/20/2016' and '3/21/2016' in 'NYSE' and whose closing price was above $100 for the entire 2017 (we are asking for all stocks" since there may be more than one with the same increase)

Reference no: EM131447959

Questions Cloud

Collective healthcare needs and capabilities : How can the dimensions of diversity, such as age, race, ethnicity, gender, sexual orientation, and religion affect individual or collective healthcare needs and capabilities?
How are minerals extracted from the earth and processed : How are minerals extracted from the Earth and processed? What are the different ways minerals can be mined? Provide a brief description of at least three types of mining. What effect does extracting minerals have on the environment
What were the effects on patients and on the community : In the 1960s, mental health treatment shifted to a community-based orientation. Name two factors responsible for this shift? What were the effects on patients and on the community?
Create an awareness in employees : Create an awareness in employees and their families of the impact of substance abuse and administer programs that consider employee rights, are positive in their intent and are within legal boundaries.
Schema of a database storing information : Devise relational algebra queries for the following schema of a database storing information about daily stock prices and basic transactions made by a trading rm. You should dene domains so as to make the schema complete.
Briefly describe the negative impact : Briefly describe the organization in which non-compliance with technology had a negative impact. Then describe the risk that was ignored, based on the standards (ITIL and COBIT5).
Explain why you think the interest in the person is greate : More than ever before, celebrities and sports figures have become part of our daily existence. Magazines, television, and social media outlets highlight and describe their every move, and society still wants more.Provide an example of a celebrity..
Explain your approach in terms of word choice : In a paragraph following the letter, explain your approach in terms of word choice, audience focus, addressing potential opposition to your product, and your appeals.
Fundamental building blocks of source programs : Why are characters the fundamental building blocks of source programs? Provide an example to illustrate this concept.

Reviews

Write a Review

Business Management Questions & Answers

  Determining the sarbanes-oxley act

Through previous classes I have seen that many students have had some practical experience with the Sarbanes-Oxley Act through their work, so I think this will be an interesting discussion for most of you.

  Why do businesspeople keep making the same mistake

Explain what happened to Nortel is similar to what happened to WorldCom and Enron in the early 2000s, and to Lehman Brothers,

  Communication issue in multicultural working

communication issue in multicultural working environment.explain how can we communicate effectively with customers or

  Calculate the amount of profit

Explain how this leader in your firm can speculate on the belief that the euro will be $1.41 in 12 months. Calculate the amount of profit (ignoring exchange rate fees) that can be earned and the percentage return achieved.

  Evaluate the potential generic strategies being considered

Report the most recent financial results including annual revenues, annual after tax earnings, and year end stock prices.

  What role played by new economic tools in financial planning

How future scenario of unpredictability was built into Shell planning for business investment with real options in financial evaluation while considering various factors beyond company's control demand.

  Contrast the state of human resource management

The article "Why We Hate HR" was written in Fast Company magazine a number of years ago as a challenge to the value that HR brings to the table. Contrast the state of Human Resource Management as referenced in the Fast Company article with how it..

  Costco performing from a strategic perspective

How fine is Costco performing from a strategic perspective? Does Costco enjoy a competitive advantage over Sam's Club? Over BJ's Wholesale? If thus what is the nature of its competitive advantage

  Process of acquiring yahoo

Verizon appears to be in the process of acquiring yahoo. May be Google would be interested in acquiring yahoo. Prepare a paper making the case for Google acquiring yahoo

  Prepare an excel spreadsheet and 875 words in a memothe

prepare an excel spreadsheet and 875 words in a memothe president of eec recently called a meeting to announce that one

  Which of the following best characterizes the purchasing fun

Which of the following best characterizes the purchasing function of franchisees of a multi-unit food and beverage company?a. Franchisees may purchase products such as fresh produce and bakery items locally, but must buy all other items from the fran..

  Discuss whether perry will prevail in given case

David resisted on the ground that Perry had suffered no damage because Alice had been given no discretion and the sale was made on the exact basis authorized by Perry. Discuss whether Perry will prevail.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd