1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Alex73 [517]
1 year ago
10

Write an SQL statement to display for every restaurant the name of the restaurant (where the name of the restaurant consists of

more than 10 characters) and for every category of menu item its description (catdesc). Furthermore, display the average; cheapest or lowest; and highest or most expensive price of all menu items in that category at that restaurant. Use single row functions to format all the prices. The average price must be padded; the cheapest price must be rounded; but the highest price must not be rounded. Display only those menu items of which the average item price is more than R40. Sort your results according to the restaurant names and for every restaurant from the most expensive average menu item to the cheapest average menu item. Display your results exactly as listed below.
Computers and Technology
1 answer:
Rainbow [258]1 year ago
4 0

Using the knowledge in computational language in SQL it is possible to write the code that display for every restaurant the name of the restaurant  and for every category of menu item its description.

<h3>Writting the code:</h3>

<em>INSERT INTO Dish </em><em>Values</em><em>(13, 'Spring Rolls', 'ap');</em>

<em>INSERT INTO Dish Values(15, 'Pad Thai', 'en'); </em>

<em>INSERT INTO Dish Values(16, 'Pot Stickers', 'ap');    </em>

<em>INSERT INTO Dish Values(22, 'Masaman Curry', 'en');   </em>

<em>INSERT INTO Dish Values(10, 'Custard', 'ds');   </em>

<em>INSERT INTO Dish Values(12, 'Garlic Bread', 'ap');    </em>

<em>INSERT INTO Dish Values(44, 'Salad', 'ap');    </em>

<em>INSERT INTO Dish Values(07, 'Cheese Pizza', 'en');   </em>

<em>INSERT INTO Dish Values(19, 'Pepperoni Pizza', 'en');    </em>

<em>INSERT INTO Dish Values(77, 'Veggie Supreme Pizza', 'en');</em>

<em />

<em>INSERT </em><em>INTO MenuItem Values(0, 0, 13, 8.00);</em>

<em>INSERT INTO </em><em>MenuItem </em><em>Values(1, 0, 16, 9.00);</em>

<em>INSERT INTO MenuItem Values(2, 0, 44, 10.00);</em>

<em>INSERT INTO MenuItem Values(3, 0, 15, 19.00);</em>

<em>INSERT INTO MenuItem Values(4, 0, 22, 19.00);</em>

<em>INSERT INTO MenuItem Values(5, 3, 44, 6.25);</em>

<em>INSERT INTO MenuItem Values(6, 3, 12, 5.50);</em>

<em>INSERT INTO MenuItem Values(7, 3, 07, 12.50);</em>

<em>INSERT INTO MenuItem Values(8, 3, 19, 13.50);</em>

<em>INSERT INTO MenuItem Values(9, 5, 13, 6.00);</em>

<em>INSERT INTO MenuItem Values(10, 5, 15, 15.00);</em>

<em>INSERT INTO MenuItem Values(11, 5, 22, 14.00);</em>

See more about SQL atbrainly.com/question/13068613

#SPJ1

You might be interested in
Which one of the following will not be considered as a microcomputer?
coldgirl [10]
Technically a notebook, a microcomputer is something like an electronic that has a microprocessor.

Your answer is:
B. Notebook

Hope this helped :) 
6 0
4 years ago
Read 2 more answers
A(n)___ is divided into rows and columns.<br> What goes in the blank?
Ber [7]
A spreadsheet consists of rows and colums
8 0
3 years ago
Python
gtnhenbr [62]

Answer:

d?t;./Wr.E

Explanation:

7 0
3 years ago
Bruno took the computer that he uses at work, and Pauline sits on the beach with her laptop computer, which she connects to the
Anika [276]

Answer:

Mobile Hotspot

Explanation:

using Mobile Hotspot you can connect to the internet using mobile data.

For this to work you should turn off the Wi-Fi in your mobile if any. We can connect more than one device using mobile hotspot

4 0
3 years ago
Thad found a website for his research about the U.S. Constitution. Which of the following is a clue that the source may not be r
vazorg [7]
<span>D. The information comes from the Library of Congress since its a official page </span>
8 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program that prompts the user for the shift value (e.g. 3) and then a plain-text message to encode. Encrypt the message
    5·1 answer
  • Why isn't there a Psychology section on this app?
    5·1 answer
  • In GIMP, the ( ) displays the image that the user is currently working on
    12·1 answer
  • If the individual accessing the system for disaster recovery purposes were not familiar with the IT system and required system a
    5·1 answer
  • A team is in the process of developing a motion picture. Currently, they are creating ideas for advertisements to make people in
    6·1 answer
  • What section of the outline is represented by "A. Africa?"
    11·2 answers
  • A school’s administration stores the following data for each student in an online system: name, class, and five electives. Selec
    12·1 answer
  • High speed printer that produce higher quality printouts but are more expensive is
    15·1 answer
  • What is your favorite photograph in the presentation? Why?
    12·1 answer
  • What chage command should you use to set the password for jsmith to expire after 60 days and give a warning 10 days before it ex
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!