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

  Problem 1given n courses along with their course strength

problem 1given n courses along with their course strength and m examination halls along with their capacity assign the

  Determine if a string s is a palindrome

What data structure is most suitable to determine if a string s is a palindrome, that is, it is equal to its reverse.

  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.

  Describe the need for complex data structures

Describe the need for complex data structures and how they are used. Describe the design and application of arrays and how the array simplifies program development.

  Explain method for combining two trees-heap-order property

Assume two binary trees, T 1 and T 2 , hold entries satisfying heap-order property. Explain method for combining T 1 and T 2 into a tree T whose internal nodes hold union of entries

  Portfolio website containing thumbnail imagery

Explain in general terms what you think the role of good design is. Next, recognize 3-characteristics of an effective gallery website. Then find an example of a portfolio website containing thumbnail imagery.

  Create a shell script to locate executable files

Create a shell script to locate executable documents? The script takes a list of document names from the command line and determines which would be executed had these names been given as commands.

  Possible external-memory map implementation

Another possible external-memory map implementation is to use a skip list, but to collect consecutive groups of  O ( B ) nodes, in individual blocks, on any level in the skip list

  Creating dataflow diagram

Think about the level of detail involved with creating a dataflow diagram, why should the narrative be prepared? Explain why do we need the questionnaire?

  Write algorithm using pseudocode to recognize substrings

Write the algorithm, using pseudocode, to do the following task, Given the string of numbers, recognize all the substrings which form numbers which are divisible by 3.

  Create a simple hierarchy for items

Assume you have to write software to be used by a university library. There are three types of item that can be borrowed from the library - DVDs, books and journals. These are all a type of Media.

  Treat the problem as a directed graph with n nodes

Two distinct words can be joined if one, two or three of the letters at the end of the first word are the same as the letters at the beginning of the second word, and only if the letter/letters are in the same order.

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