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
inn [45]
4 years ago
4

Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of c

haracters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically.
Computers and Technology
1 answer:
Minchanka [31]4 years ago
4 0

Answer:

If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically.

  • CDE 3
  • LMNO 4

Explanation has given below.

Explanation:

Lets us consider and focused on the problem

Suppose that the City has Latitude_N for northern latitude and Long_W for western longitude.

Where LAT_N is the northern latitude, and LONG_W is the western longitude.

Lets Input

Let us say that the CITY only has four entries: XYZ, CDE, LMNO, and WXY

then the output will be

CITY names are CDE, LMNO, WXY, XYZ with lengths such as 3, 4, 3, and 3. In the given CITY, the most extended City is LMNO. However, three options are available for the shortest length. So we choose the CITY of alphabetically, So CDE choose.

Query for two cities in STATION will be as follow:

{

Select CITY,

char_length(CITY) as len_city

from STATION

where length(CITY)=(select length(CITY)

from STATION

order by length(CITY) LIMIT 1)

Order by CITY LIMIT 1)

(select CITY,

length(CITY) as length_city

from STATION

where length(CITY)=(select length(CITY)

from STATION

order by length(CITY) DESC LIMIT 1)

Order by CITY DESC LIMIT 1)

ORDER BY length(CITY);

Such as

SELECT city, LENGTH(city) FROM station

WHERE LENGTH(city)=(SELECT LONGS(LENGTH(city)) FROM station)

SELECT city, LENGTH(city)

FROM STATION

WHERE LENGTH(city)=(SELECT SHORTEST(LENGTH(city)) FROM STATION)

ORDER BY CITY;

You might be interested in
(please help) What do you do if Brainly keeps saying your blocked?
kolezko [41]
You could probably make a new account if it’s just the account blocked
6 0
2 years ago
A host is on the 192.168.146.0 network that has a subnet mask of 255.255.255.0. The binary value of the host portion is 11010101
QveST [7]

Answer:

213

Explanation:

The given parameters are;

The network on which the host is on = 192.168.146.0

The subnet mast = 255.255.255.0

The binary value of the host portion = 11010101

To convert the binary value to decimal value, we proceed by multiplying each of the digits of the binary value by the corresponding power of 2, from the left to right, starting from a power of 0, and sum the result, as follows;

(11010101)₂ = (1×2⁷ + 1×2⁶ + 0×2⁵ + 1×2⁴ + 0×2³ + 1×2² + 0×2¹ + 1×2⁰)₁₀

1×2⁷+1×2⁶+0×2⁵+1×2⁴+0×2³+1×2²+0×2¹+1×2⁰= 128+64+0+16+4+1 = 213

∴ (11010101)₂ = (213)₁₀

The decimal value of 11010101 is 213.

8 0
4 years ago
Choose the parts of the browser window.
8_murik_8 [283]

Answer:

The answer is "Title bar".

Explanation:

The title bar is located on top of the screen, its color blue, which is used in browsers. It has the function, that shows the title of the web page, that you currently viewing, and other choices were wrong, which can be described as follows:

  • Enter bar is the wrong option because it is not a part of the browser.
  • The back button is also known as a backspace key which is used to delete so thing, which is written by keyboard, that's why it is wrong.
  • The forward bar is used in pipe in a module that's why it's incorrect.

4 0
3 years ago
How do you type multiple lines of code into IDLE? My Python environment does not look like the one projected in the lectures. I
natulia [17]
<span> The OSX IDLE provides the functionality of typing multiple lines of the code.  You can find the IDLE environment easily over the internet. </span><span />
5 0
4 years ago
Interactive television with video-on-demand capabilities changes how people watch television and how consumers access the Intern
Alex787 [66]

Answer:

High learning

Explanation:

High Learning means that a product require significant customer education before customers understand how the product functions and that may make the product stay longer in the introduction stage whilst the customers are being familiarize with it. Examples are microwave ovens.

6 0
3 years ago
Other questions:
  • Purpose of this project is to increase your understanding of data, address, memory contents, and strings. You will be expected t
    14·1 answer
  • Fromwhich object do you ask for DatabaseMetaData?ConnectionResultSetDriverManagerDriver
    8·1 answer
  • The appropriate length for an e-mail is about half the amount of text that will fit on an 8 1/2' by 11' page.
    11·2 answers
  • "explain why professional software is not just the programs that are developed for a customer"
    7·1 answer
  • Consider the following code segment:
    13·1 answer
  • All phones must have a way of making and then terminating a connection to the phone network; however the exact procedure for doi
    12·1 answer
  • Computers connected across large distances form a local area network. true or false
    6·1 answer
  • if a network security professional wants to connect some computers in the same building without it using a router what type of n
    8·2 answers
  • Define the following:-<br><br>1) cryptography<br><br>2) Quantum Cryptography​
    10·2 answers
  • Ali has created a small program in Python, but he wants to store his data in a multi-dimensional array. He would like to use adv
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!