Database nested queries

Assignment Help Data Structure & Algorithms
Reference no: EM13764616

DATABASE NESTED QUERIES

1) Display the book title and the number of books sold where the profit from the book is more the 70%. The resulting list should display highest quantity of books title sold first in the list. Profit for a book is calculated as (retail - cost) / cost.

2) Display the publisher name, category and average price for books which belong to the either a category of ‘COMPUTER' or "CHILDREN' and where the average retail cost for the category is more than 50 dollars. Rename the calculated field ‘AVERAGE_CAT_PRICE' and format with a leading ‘

symbol and rounded to two decimal places.

3) Display the categories and the count of number of books in those categories where the category has the most books then the minimum number of books for all the categories. Sort the resulting set in category order ascending.

4) Display book title, ISBN number and cost for all books which belong to the category with the least number of books in the category. Format the cost field as dollars ‘ with two decimal places. Rename the new formatted cost field to ‘COST' (complex query)

5) Display all the categories and the total amount of profit for each category. Rename the calculated field as ‘CATEGORY_PROFIT'. Category profit is calculated as number of books sold times profit (retail - cost) in that category. Round the profit calculation to the nearest full value. Order the result set in the descending order of highest calculated profit.

Reference no: EM13764616

Questions Cloud

Compare different software development methods : Define and explain, in your own words, the primary challenge(s) of software development projects. Compare and contrast at least three (3) different software development methods.
Identify the types of stress unique to law enforcement : Identify the types of stress unique to law enforcement. What are some of the psychological reactions possibly caused by stress
How might it apply the law differently to the facts of case : The court ruled that remaining for 2 years was a "condition precedent" necessary for them to receive the $15,000 payment. What do you think? Is this a fair result? If the court wanted to find in favor of the employees, how might it apply the law..
Traditional methods for evaluating the capital investments : Suggest a methodology to supplement the traditional methods for evaluating the capital investments of Johnson Controls in the emerging markets to reduce risk providing a rationale of how risk will be reduced.
Database nested queries : Display the book title and the number of books sold where the profit from the book is more the 70%. The resulting list should display highest quantity of books title sold first in the list. Profit for a book is calculated as (retail - cost) / c..
Biotechnology applications issues : Provide at least three real-world examples of current or future applications of biotechnology in either of these fields. Present a minimum of three reliable references.
Assignment- fourth fifth and sixth amendment rights : Assignment: Fourth, Fifth and Sixth Amendment Rights, The Fourth Amendment to the U.S. Constitution protects citizens against police officers making unreasonable searches and seizures of personal property
Evaluate the strategy that led to the merger or acquisition : Merged with another company, or been acquired by another company, evaluate the strategy that led to the merger or acquisition to determine whether or not this merger or acquisition was a wise choice. Justify your opinion.
Chart of accounts of moore : Mr. Moore has hired you as his accountant.  The two of you discuss the business and decide upon the following chart of accounts.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Create a loop structure to display all integer values

Determine if the first number is larger than, smaller than, or equal to the second number.

  Calculate the total weights and values of each subset

Use the decrease-by-one technique to generate the power set and calculate the total weights and values of each subset, then find the largest value that fits into the knapsack and output that value.

  Data structure using an array

Objective will be to construct your first list data structure using an array.

  Show how the following values would be stored by machines

Show how the following values would be stored by machines with 32-bit words, using little endian and big endian format. Assume each value starts at address 016. Draw a diagram of memory for each, placing the appropriate values in the correct (and ..

  What do you mean by query tree what is meant by the

question 1 how does a query tree represent a relational algebra expression?question 2 what is query tree? what is meant

  Decision tree learninga describe the main steps in the

decision tree learninga describe the main steps in the basic decision tree learning algorithm. the table below contains

  Explain feasibility analysis for jobs of lrt algorithm

Study feasibility analysis for jobs of LRT algorithm when preemption is allowed. Which scheduling algorithm is best suited for high speed networks and why? Distinguish between static and dynamic systems.

  Using pseudocode, design an algorithm

BuzzButtons is a novelty item company manufacturing personalized lapel buttons. The owner is promoting his buttons by offering them at 99 cents each. He wants you to design a program asking the user for his or her name for the button, an e-mail addre..

  Prepare a japplet with a jbutton

Prepare a JApplet with a JButton labeled Who is number one and when the user clicks on button, display your favorite sports team. Save the document as JNumberOne.java.

  Determine the edge connectivity of an undirected multigraph

Give a polynomial-time algorithm for this decision problem - determine the edge connectivity of an undirected multigraph

  Sort scheduling algorithms according to high throughput

Sort the scheduling algorithms (FCFS, SPF, RR, MLFB) according to each of High throughput (if we take averages of time intervals smaller than the sum of all processes' time)

  Write algorithm to calculate the median using queries

Calculate the median using as few queries as possible. Provide an algorithm which determines the median value using at most O(lg n) queries.

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