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
monitta
4 years ago
13

Which of the following is a valid SQL statement? a. c.customer#, order#, orderdate, shipdate FROM customers c NATURAL JOIN order

s c; b. * FROM customers JOIN orders ON (customer#); c. c.customer#, order#, orderdate, shipdate FROM customers c, orders c WHERE c.customer# = o.customer#; d. both b and c
Computers and Technology
1 answer:
zhenek [66]4 years ago
7 0

Options A and C are valid SQL statements as JOIN is a JOIN clause that generate an implicit join based on the common columns in both tables.  

a. c.customer#, order#, orderdate, shipdate FROM customers c NATURAL JOIN orders c;

c. c.customer#, order#, orderdate, shipdate FROM customers c, orders c WHERE c.customer# = o.customer#;

<u>Explanation:</u>

In option A, there is an explicit join created between source table(customers) and the target table(orders) thus displaying the required data field names.

Option B is a JOIN clause with an ON clause. However, end-user can use the ON clause will have to be used only when there is more than one common column in both the tables.

Option C is the standard SQL statement using the WHERE clause based on the condition. Both A and C will return the same query output.

You might be interested in
Shift all elements by one to the right and move the last element into the first position. For example, 1 4 9 16 25 would become
guajiro [1.7K]

Answer:

i see you but i dobt see it

Explanation:

8 0
3 years ago
If you were at the front of a long line of people, stepped onto a chair and took a
WINSTONCH [101]
They are closer to the people and they work than a senior management
7 0
3 years ago
Which enables users to try an application before they commit to buying it?
adelina 88 [10]

Answer:

shareware

Explanation:

It is the shareware, which is available for free for a certain period, and after that, the actual fee is charged for continued usage. The public domain is free from copyright, patent or trademark laws, and is the public property. The open-source is the free code of software that is available with code for the whole developer community. And it is shared among all the developers. And the developer can be anybody. The freeware is the software that is provided free of cost by the publisher. And there is no set of rights, licenses or EULA that governs its distribution, and each publisher frames his own set of rules for the usage of the freeware.

8 0
3 years ago
Read 2 more answers
Which feature is commonly found in a Website management editor?
likoan [24]

give the task to team members

hope this help

7 0
3 years ago
You wrote a program to allow the user to guess a number. Complete the code to give the user feedback.
geniusboy [140]

Answer:

The complete program is:

import random

keepGoing = True

num = random.randint(0,9)  

guess = int(input("Your guess: "))

while keepGoing == True:

   if num == guess:

       print("You were correct!")

       keepGoing = False

   else:

       print("You were wrong.")

       guess = int(input("Your guess: "))

       keepGoing = True

Explanation:

<em>To answer this program, I let the computer generate a random number, then let the user make a guess.</em>

<em></em>

This imports the random module

import random

This initializes a Boolean variable keepGoing to True

keepGoing = True

Generate a random number

num = random.randint(0,9)  

Let the user take a guess

guess = int(input("Your guess: "))

The loop is repeated until the user guesses right

while keepGoing == True:

Compare user input to the random number

   if num == guess:

If they are the same, then the user guessed right

       print("You were correct!")

Update keepGoing to False

       keepGoing = False

If otherwise,

   else:

then the user guessed wrong

       print("You were wrong.")

Prompt the user for another number

       guess = int(input("Your guess: "))

Update keepGoing to True

       keepGoing = True

8 0
3 years ago
Read 2 more answers
Other questions:
  • ​ A wire service is also known as a ____.
    7·1 answer
  • When saving a document or drawing, you determine the destination folder in which the file will be saved by?
    6·1 answer
  • What common objects you think will benefit from embedded computers?
    15·1 answer
  • What is a sluggish beta signal detection theory?
    15·1 answer
  • How can you best protect yourself when using social media?
    14·2 answers
  • What is a goal?
    13·1 answer
  • Lord Strawberry, a nobleman, collected birds. He had the finest aviary in Europe, so large that eagles did not find it uncomfort
    9·1 answer
  • 11. You tried to turn on your desktop computer, but your desktop computer would not even turn on. You pressed the power button,
    8·1 answer
  • HELPPP I cand find my sound card/driver on my computer, and I cant hear anything, I have tried to update the audio driver, but w
    7·1 answer
  • The Freeze Panes feature would be most helpful for which situation?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!