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
How did voyager 1 and voyager 2 made outer space exploration and easier
Anna007 [38]
They made it easier because they mapped out some of the galaxy and hazardous things like Astroid belts or rogue planets
5 0
2 years ago
¿Cómo es la onda percibida por un osciloscopio cuando hablamos de sonido? ¿Qué parámetros podemos observar en ella?
frozen [14]

Answer:

Las ondas de sonido, que es una onda longitudinal, son producidas por la vibración de un objeto de tal manera que (la onda de sonido requiere un medio de viaje, líquido sólido o gas) la dirección del sonido es la misma que la dirección de la vibración y como la el ancho de la vibración (hacia adelante y hacia atrás) aumenta, la amplitud de la vibración aumenta y el sonido es más fuerte

Un micrófono conectado al osciloscopio recoge el medio de aire vibrante de la onda de sonido de la energía de la onda de sonido y lo convierte (produce) señales eléctricas y electrónicas. El osciloscopio, que está diseñado para mostrar señales electrónicas, muestra las señales electrónicas transmitidas por el micrófono en la pantalla con los mismos valores de amplitud y frecuencia que el volumen y el tono de la onda de sonido, respectivamente.

Las características observables son;

1) El volumen o el volumen de la onda de sonido que se muestra como la amplitud) en el cátodo, con una amplitud más alta que representa un sonido más fuerte

2) El tono de la onda de sonido se muestra como el espaciado de onda en el osciloscopio, el sonido de tono más alto se muestra por las ondas que se acercan en la pantalla

Explanation:

7 0
3 years ago
Which of the following would you not see on a windows 10 start menu?
mixas84 [53]
Task view is the option that you would not see on a Windows 10 Start menu, whereas if you click the Windows button, you can see tiles with different applications, all of your apps in the form of tiles you can distribute according to your own taste, and power button where you can choose whether you want to shut down your computer, put it to sleep, or log out.
4 0
2 years ago
LAB: Formatted output: Hello World! Write a program that outputs "Hello World!" For ALL labs, end with newline (unless otherwise
maxonik [38]

Answer:

public class LabProgram {

  public static void main(String[] args) {

     System.out.println("Hello World!");    }  }

Explanation:

In this statement: System.out.println

System is a class in JAVA language package

out is a member of class System

println() is a functionT to print or display message to a console or file

So the message to print here is Hello World!

Now this statement   System.out.println prints the message "Hello World!" passed in the argument.

Hence this statement as a whole displays the message Hello World! on the output screen.

6 0
3 years ago
Safety glasses should be worn in which of the following situations?
N76 [4]
When any substance is being heated. Safety glasses
8 0
2 years ago
Other questions:
  • An _________ is a phrase formed from the first letters of words in a set phrase or series of words a. Acronymic sentence c. Basi
    7·2 answers
  • What type of topology gives you a direct connection between two routers so that there is one communication path?
    14·1 answer
  • What feature new to Windows Server 2012 provides the ability to find identical sets of data on a SAN based storage array and red
    14·1 answer
  • . The toasting cycle of an automatic toaster is started by A. pushing the bread rack down. B. pushing the start button. C. turni
    14·2 answers
  • How many data bits are sent in a single psk31 character?
    15·1 answer
  • Which scenario is invalid for execution by unit Tests? A. Executing test scenarios for negative test scenarios.B. Executing meth
    5·1 answer
  • What is 450 g of flour a measure of?
    11·1 answer
  • The __________ assumption necessary for a linear programming model to be appropriate means that the contribution to the objectiv
    6·1 answer
  • Write an application that determines whether the first two files are located in the same folder as the third one. The program sh
    6·1 answer
  • Enterprise storage systems typically use fast Fibre Channel or ____ connections and are scalable so more hard drives can be adde
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!