List all customers that live in Massachusetts or California. Show the first and last names together in the same column, then city, then state. There will be three (3) columns in your report with data looking like this: Tom Yates Dallas TX
Hi really need help with this assigment
Oracle 12c: SQL Chapter 8
Q2 List all customers that live in Massachusetts or California. Show the first and last names together in the same column, then city, then state. There will be three (3) columns in your report with data looking like this:
Tom Yates Dallas TX
Sort the results in ascending order by the last name within the state. Use appropriate column aliases for the headings.
Q3 List the titles, retail price, and discount for all books that contain the word “cook” in the title. Sort by cost.
Q4 Report all books published after Jan. 1st, 2015, as well as all books published in 2014 that have retail price of $50 or less. Show the title, publisher's number, retail price, and date published. The list should sort the data first by publisher number, then by retail price within each publisher. So you will have two sets of data in the report: all books published after January 1st, 2015 as well as those books published in 2014 that have retail price of $50 or less.
Q5 List titles, cost, retail and profit margin for all books that have a profit margin under 55%. Make sure to assign a descriptive column name for the calculated field. Profit margin is calculating by the following formula:
((retail – cost) / cost) *100
Q6. List the title and publish date of any computer book published in 2005. Perform the task of searching for the publish date by using three different methods: a) a range operator b a logical operator, and c) a search pattern operation. Submit three different queries.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps