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
anyanavicka [17]
2 years ago
7

Given the tables PRODUCT (ProductID. Description. Cost) SUPPLIER (Supplier D. ContactName, Phone Number) as shown in the figure

below, which of the following would represent the correct placement of foreign keys? PRODUCT SUPPLIER ProductD Supplier Description Contact Name Cost Phone Number PRODUCT (ProductiD. Description. Cost) SUPPLIER (Supplier D. ContactName PhoneNumber, Productio) PRODUCT (ProductID. Description, Cost ContactName) SUPPLIER (Supplier D. ContactName, PhoneNumber) PRODUCT (ProductID. Description. Cost) SUPPLIER (Supplier D. ContactName, PhoneNumber) PRODUCT (Product Description, CostSupplier) SUPPLIER (Supplieri. ContactName, Phone Number, ProductID) PRODUCT (ProductID. Description Cost Supplieri) SUPPLIER (Supplierib. ContactName, PhoneNumber)

Computers and Technology
1 answer:
Anon25 [30]2 years ago
6 0

CREATE PROCEDURE sp_Q1

"at"country1 NVARCHAR(15),

"at"country2 NVARCHAR(15)

SELECT SupplierID, CompanyName, Phone, Country FROM suppliers where Country in ("at"country1,"at"country2)

 SELECT ProductID, ProductName, UnitPrice, SupplierID FROM Product

     where SupplierID in(

 SELECT SupplierID FROM suppliers

where Country in ("at"country1,"at"country2)) ORDER BY SupplierID

<h3> What is product supplier?</h3>

PRODUCT SUPPLIER ProductD Supplier Description Contact Name Cost Phone Number PRODUCT (ProductiD. Description. Cost) SUPPLIER (Supplier D. ContactName PhoneNumber, Productio) PRODUCT (ProductID. Description, Cost ContactName) SUPPLIER (Supplier D. ContactName, PhoneNumber)

PRODUCT (ProductID. Description. Cost) SUPPLIER (Supplier D. ContactName, PhoneNumber) PRODUCT (Product Description, CostSupplier) SUPPLIER (Supplieri. ContactName, Phone Number, ProductID) PRODUCT (ProductID. Description Cost Supplieri) SUPPLIER (Supplierib. ContactName, PhoneNumber)

Therefore,  SELECT ProductID, ProductName, UnitPrice, SupplierID FROM Product

     where SupplierID in(

 SELECT SupplierID FROM suppliers

where Country in ("at"country1,"at"country2)) ORDER BY SupplierID

Learn more about SupplierID on:

brainly.com/question/15698840

#SPJ1

You might be interested in
Windows server 2012 r2 supports two types of folder shares. what are those two types?
larisa [96]
<span>Windows server 2012 r2 supports the following two types of folder shares: </span>Network File System and Server Message Blocks. Correct answer: D
Network File System<span> (</span>NFS) is a distributed file system protocol for <span>storing and updating files on a remote computer. </span>
The Server Message Block<span> (SMB) Protocol is a </span>network file sharing protocol.
7 0
4 years ago
. Write a recursive function names factorial to compute the factorial of the parameter. Also write the main function, where you
r-ruslan [8.4K]

Answer:

Following are the code in c language

#include <stdio.h> // header file

long int factorial(int n); // declaration of factorial function

int main() // main function

{

   int n; // variable declaration

   printf("Enter a positive integer: ");

   scanf("%d", &n); // input number

   while(n<0) // checking the condition if number is negative

{

    printf("please enter a positive number:");

    scanf("%d", &n);

}

   printf("Factorial of %d = %ld", n, factorial(n)); // calling  factorial function

   return 0;

}

long int factorial(int n1) // recursive definition of factorial

{

   if (n1 >= 1)

       return n1*factorial(n1-1);

   else

       return 1;

}

Explanation:

In this program, it ask for a positive number input. if the value enter by user is negative then it again ask for positive input i.e positive number. Then it calls the recursive function of factorial. the recursive function factorial calculate the factorial recursively. suppose user input 4 then it goes to the if  part of program i.e return n*factorial(n-1); that means return 4*factorial(3) again recursive function call itself .this process repeated until it meets the base condition.  when a base condition meets, it return factorial of the given number.

output

Enter a positive integer: 5

factorial of 5=120

Enter a positive integer: -8

please enter a positive number:4

factorial of 4=24

4 0
3 years ago
What rule should be followed when determining how many bullets you will include on a slide
stiks02 [169]
They answer to your problem is C
8 0
4 years ago
Read 2 more answers
9. Which of the following will best protect your computer from viruses and hackers?
maks197457 [2]

Answer:

D

Explanation:

I believe its Antivirus software because it protects your computer from virus and hackers . If i am wrong im so sorry

Have A Good Day

4 0
2 years ago
How do you use loops in code?
Keith_Richards [23]

Answer:

A loop in a computer program is an instruction that repeats until a specified condition is reached. In a loop structure, the loop asks a question. If the answer requires action, it is executed. ... A computer programmer who needs to use the same lines of code many times in a program can use a loop to save time

Explanation:

4 0
3 years ago
Other questions:
  • Add three methods to the Student class that compare twoStudent objects. One method should test for equality. A second method sho
    13·1 answer
  • "Find the sum of the squares of the integers from 1 to MySquare, where MySquare is input by the user. Be sure to check that the
    9·1 answer
  • What program is best for teaching young people code?
    13·1 answer
  • Which of the following is the best way to locate books and research from all over the United States and abroad?
    9·2 answers
  • Which of these terms is a design principle?
    7·1 answer
  • Write a program that requests the user input a word, then prints every other letter of the word starting with the first letter.
    5·1 answer
  • Solving Systems of Equations by Substitution <br> pdf
    11·1 answer
  • What is the process that creates a shortcut on your taskbar?
    14·2 answers
  • Ivan wants to have code in a game that will make it possible to change the speed of a swimmer in the game. Which of these does I
    10·1 answer
  • Anyone tell my answer.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!