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
MAVERICK [17]
4 years ago
5

The following SQL statement uses a(n) _____. SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME FROM PRODUCT, VENDOR WHERE PRODUCT.V_COD

E = VENDOR.V_CODE; a. set operator b. natural join c. “old-style” join d. procedural statement
Computers and Technology
1 answer:
Trava [24]4 years ago
5 0

Answer:

The answer is c. “old-style” join.

Explanation:

SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME

FROM PRODUCT, VENDOR

WHERE PRODUCT.V_CODE = VENDOR.V_CODE;

The SELECT clause represents all the columns to be displayed.

The FROM clause represents the tables which are used to extract the columns.

The WHERE clause shows the common column that exists in both the tables. This represents the old-style join when JOIN keyword was not used.

The tables are joined in two ways.

1. Using JOIN keyword

The syntax for this is given as

SELECT column1, column2

FROM table1 JOIN table2

ON table1.column3 = table2.column3;

This returns all rows from two tables having the same value of common column.

Two tables are taken at a time when JOIN keyword is used.

If more tables are to be used, they are mentioned as follows.

SELECT column1, column2

FROM table1 JOIN table2

ON table1.column3 = table2.column3

JOIN table3

ON table3.column4 = table1.column4

( ON table3.column5 = table2.column5 )  

The part in italics shows that the third table can either share the same column with table1 or table2.

The given query can be re-written using JOIN as shown.

SELECT P_CODE, P_DESCRIPT, P_PRICE, V_NAME

FROM PRODUCT JOIN VENDOR

ON PRODUCT.V_CODE = VENDOR.V_CODE;

2. Equating common column in WHERE clause

SELECT column1, column2

FROM table1, table2

WHERE table1.column3 = table2.column3;

This returns all rows from two tables having the same value of the common column.

Here, no keyword is used except the general syntax of the query. ON keyword as shown in the above example is replaced with WHERE.

Tables to be used are mentioned in FROM clause separated by commas.

Tables are joined based on the same column having same values.

Multiple tables can be joined using this style as follows.

SELECT column1, column2

FROM table1, table2, table3, table4

WHERE table1.column3 = table2.column3

AND table3.column5=table1.column5

AND table3.column4 = table2.column4;

You might be interested in
What is the main function of a CD-RW.​
otez555 [7]

Answer:

A CD-RW (which stands for Compact Disc ReWritable) is a Compact disc that can be recorded and erased multiple times. It can hold data or music. Most of the time it will hold data, since many CD players can not play CD-RWs. During its development, the format was known as CD-E, which stands for Compact Disc Erasable.

5 0
3 years ago
In C language
devlian [24]

Answer:

The program in C is as follows:

#include <stdio.h>

#include <stdlib.h>

#include <time.h>

int main(){

   int dice [1000];

   int count [6]={0};

   srand(time(0));

   for (int i = 0; i < 1000; i++) {

       dice[i] = (rand() %(6)) + 1;

       count[dice[i]-1]++;

   }

   for (int i = 0; i < 6; i++) {

       printf("%d %s %d %s",(i+1)," occurs ",count[i]," times");

       printf("\n");

   }

   return 0;

}

Explanation:

This declares an array that hold each outcome

   int dice [1000];

This declares an array that holds the count of each outcome

   int count [6]={0};

This lets the program generate different random numbers

   srand(time(0));

This loop is repeated 1000 times

   for (int i = 0; i < 1000; i++) {

This generates an outcome between 1 and 6 (inclusive)

       dice[i] = (rand() %(6)) + 1;

This counts the occurrence of each outcome

       count[dice[i]-1]++;    }

The following prints the occurrence of each outcome

   for (int i = 0; i < 6; i++) {

       printf("%d %s %d %s",(i+1)," occurs ",count[i]," times");

       printf("\n");    }

8 0
4 years ago
Consider the following code using the posix pthreads api:
Lubov Fominskaja [6]

The thing which the given program accomplishes is that it creates a method, declares variables, and executes commands if they meet the conditions in the code.

<h3>What is a Conditional Statement?</h3>

This is a type of statement that executes a line of code if a condition is not met.

Some types of conditional statements are:

  • IF statement
  • IF-ELSE statement
  • Nested If-else statement.
  • If-Else If ladder.
  • Switch statement.

No, that is not the desired output because the integer should be less than 20.

Read more about conditional statements here:

brainly.com/question/11073037

#SPJ1

8 0
2 years ago
Nominal data: are ranked according to some relationship to one another. have constant differences between observations. are sort
WINSTONCH [101]

COMPLETE QUESTION:

Nominal data:

A) are ranked according to some relationship to one another.

B) have constant differences between observations.

C) are sorted into categories according to specified characteristics.

D) are continuous and have a natural zero.

Answer:

C) Are sorted into categories according to specified characteristics.

Explanation:

Nominal data is defined in statistics as that data that are 'named' or 'labelled'. Data values therefore belong to different groups with unique labels with each group associated with specified characteristics.

6 0
3 years ago
2+2<br>in excel cell body formula
never [62]

Answer:

Use the "Power" function to specify an exponent using the format "Power(number,power)." When used by itself, you need to add an "=" sign at the beginning. As an example, "=Power(10,2)" raises 10 to the second power.

4 0
3 years ago
Other questions:
  • Jill edited James's document using Track Changes. James agrees with all of the edits and wants to incorporate them into his text
    6·1 answer
  • Simple mail transfer protocol (smtp) uses the well-known port number ______________ by default.
    14·2 answers
  • You can use the windows ________ to check on a nonresponsive program
    12·1 answer
  • Which software is used for cover letters and resumes
    9·2 answers
  • Implement the RC4 stream cipher in C++. User should be able to enter any key that is 5 bytes to 32 bytes long. Be sure to discar
    7·1 answer
  • Why does dew form on grass overnight
    7·1 answer
  • When are bar charts most commonly used
    10·1 answer
  • Consider a system that contains 32K bytes. Assume we are using byte addressing, that is assume that each byte will need to have
    10·1 answer
  • You are the system administrator for Precision Accounting Services, which employs 20 accountants and 25 accounting assistants. T
    13·1 answer
  • (Synchronized threads) Write a program that launches 1000 threads. Each thread adds a random integer (ranging from 1 to 3, inclu
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!