Write a Structured Query Language (SQL) statement based on the following statements: i) List all items...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Structured Query Language (SQL) statement based on the following statements: i) List all items that have the word 'Food' in the category name. ii) List all items with prices below RM10.00 iii) List all items with quantities between 20 and 100 iv) Find the maximum price. v) Find the minimum price. vi) Find the average price. item_id | item_name 200 Baby wipes 201 Bottle 202 Ice lemon tea 500ml 203 Crispy Nugget 204 Baked beans 205 Marina Sardine. 206 Chicken Frankfurter 207 Pepsi 1L | item_category | item_price | item_qty | Baby Baby Beverage Frozen Food Canned Food Canned Food | Frozen Food Beverage 11.9 19.9 | 1.9 | 14.9 | 3.9 5.9 4.9 3.9 | 32 12 192 32 | 40 60 | 92 55 Write a Structured Query Language (SQL) statement based on the following statements: i) List all items that have the word 'Food' in the category name. ii) List all items with prices below RM10.00 iii) List all items with quantities between 20 and 100 iv) Find the maximum price. v) Find the minimum price. vi) Find the average price. item_id | item_name 200 Baby wipes 201 Bottle 202 Ice lemon tea 500ml 203 Crispy Nugget 204 Baked beans 205 Marina Sardine. 206 Chicken Frankfurter 207 Pepsi 1L | item_category | item_price | item_qty | Baby Baby Beverage Frozen Food Canned Food Canned Food | Frozen Food Beverage 11.9 19.9 | 1.9 | 14.9 | 3.9 5.9 4.9 3.9 | 32 12 192 32 | 40 60 | 92 55
Expert Answer:
Answer rating: 100% (QA)
SQL statements for each part i To list all items with the word Food in the category name you can use ... View the full answer
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date:
Students also viewed these databases questions
-
How do Methodological approaches adapt to the evolving nature of research paradigms and technological advancements, and what implications do these adaptations have for the validity and reliability of...
-
The Crazy Eddie fraud may appear smaller and gentler than the massive billion-dollar frauds exposed in recent times, such as Bernie Madoffs Ponzi scheme, frauds in the subprime mortgage market, the...
-
Do some amendment and enhance the given research paper: Table of Content Abstract..3 Action Research.4 Research Methodology and Design...5 Literature Review: NoSQL Database7 Proposal.7 Iteration 1..8...
-
Why do we need Normalization? How many forms of Normalization exist? What is the minimum normal form required? Describe each normal form List Normalization conversion process
-
According to the Corporate Productivity Institute, companies whose leaders participated in a leadership development program experienced better customer satisfaction, more revenue growth, and reduced...
-
Your supervisor has asked you to research the following situation concerning Owen and Lisa Cordoncillo. Owen and Lisa are brother and sister. In May 2012, Owen and Lisa exchange business pickup...
-
Presented below is cash flow information for two competitorsThe Longo Corporation and The Davis Company (amounts in thousands): Describe the cash management strategy of each company by identifying...
-
Suzanne had a summer job working in the business office of Blast-It TV and Stereo, a local chain of home electronics stores. When Michael Jacobssen, the owner of the chain, heard she had completed...
-
Cotton On Ltd. currently has the following capital structure: Debt: $3,500,000 par value of outstanding bond that pays annually 10% coupon rate with an annual before-tax yield to maturity of 12%. The...
-
The COVID-19 pandemic affected companies in the food industry in unique ways, particularly during 2020. Ruth's Hospitality Group (Ticker: RUTH) develops and operates fine dining restaurants under the...
-
Describe an algorithm in pseudocode that returns last location of the largest even integer that occurs in a finite list of integers, possibly not distinct [meaning some can have the same value]. If...
-
1. Discovery - Recall a time when you participated in a powerful learning/class experience - a time when you felt inspired, energized, challenged, included, and excited, where you and others seemed...
-
During 2021, Bramble Corporation spent $146,880 in research and development costs. As a result, a new product called the New Age Piano was patented. The patent was obtained on October 1, 2021, and...
-
You are given two strings S and T, each n characters long. You have to establish whether one of them is a right cyclic shift of the other. For example, PLEA is a right cyclic shift of LEAP, and vice...
-
City Wok Inc. paid $ 5,600 for property taxes in the 2020 calendar year. In 2021, City\ Wok Inc. receives its property tax bill on May 1 for $ 6,200 which is payable on June 30,\ 2021.\ Instructions\...
-
Suppose you want to find the k-th smallest element from a collection of n given elements for a given k. (If k=1, then we want the smallest; if k=n; we want the largest, etc.). The elements are given...
-
Financial data for Jay's shipping is below for 2023. Calculate the multifactor productivity for Jay rounded to two decimal places. Revenue 959741 Capital 86,500 Fuel 188,600 Labour 365,000.
-
Chao, Louis, and Mari, unrelated individuals, own all of the shares of Cerise Corporation. All three shareholders have been active in the management of Cerise since its inception. In the current...
-
What does it mean when a data warehouse is nonvolatile?
-
List the changes you would need to make in your answer to Question 7 if you must store the year and the semester in which a student took a course and received a grade.
-
When do you use OLAP?
-
On January 1, 2015, Drummond Oil and Gas Company was about to embark on a 50-well exploration program in Texas and Louisiana. The CEO estimated that the average cost to drill a well would run...
-
Equipment costing \($29,000\), with a scrap value of \($5,000\) was purchased on January 1, by Global Communications, Inc. The estimated useful life of the equipment was four years and it was...
-
Dean Foods Company, a food and beverage company headquartered in Dallas, Texas, is one of the nations largest processors and direct-to-store distributors of fluid milk. Consistent with U.S. GAAP,...
Study smarter with the SolutionInn App