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
harina [27]
2 years ago
10

What is the difference between a key and a superkey?

Computers and Technology
1 answer:
netineya [11]2 years ago
4 0

Answer:

Answered below

Explanation:

A key is a single or combination of many attributes that enable us pull a row of data from a table. Keys are identifiers used to get data seamlessly from the database. A key can be a primary key, secondary key, control key, or super key. A super key is a key or set of attributes use to identify tuples in a database. It can contain extra attributes not necessary for uniquely identifying a database.

You might be interested in
Write a static method that implements a recursive formula for factorials. Place this method in a test program that allows the us
matrenka [14]

Answer:

Written in Java

import java.util.*;

public class Main {

  public static int fact(int n) {

     if (n == 1)

        return n;

     else

        return n * fact(n - 1);

  }

  public static void main(String[] args) {

     int num;

     Scanner input = new Scanner(System.in);

     char tryagain = 'y';

     while(tryagain == 'y'){

     System.out.print("Number: ");

     num = input.nextInt();

     System.out.println(num+"! = "+ fact(num));

     System.out.print("Try another input? y/n : ");

     tryagain = input.next().charAt(0);

}        

  }

}

Explanation:

The static method is defines here

  public static int fact(int n) {

This checks if n is 1. If yes, it returns 1

     if (n == 1)

        return n;

If otherwise, it returns the factorial of n, recursively

     else

        return n * fact(n - 1);

  }

The main method starts here. Where the user can continue executing different values of n. The program keep prompting user to try again for another number until user signals for stoppage

  public static void main(String[] args) {

This declares num as integer

     int num;

     Scanner input = new Scanner(System.in);

This initializes tryagain as y

     char tryagain = 'y';

This checks if user wants to check the factorial of a number

     while(tryagain == 'y'){

This prompts user for input

     System.out.print("Number: ");

This gets user input

     num = input.nextInt();

This passes user input to the function and also prints the result

     System.out.println(num+"! = "+ fact(num));

This prompts user to try again for another value

     System.out.print("Try another input? y/n : ");

This gets user response

     tryagain = input.next().charAt(0);

}        

Download txt
4 0
2 years ago
How many assignments would you have failed without brainly?<br><br> lol.
svetoff [14.1K]
How many assignments would I have failed without brainy? Lol

ALL OF THEM
7 0
3 years ago
Can anyone give me nitrotype gold? Name username is lol3628 display name is iluvkitkats
Vsevolod [243]

Answer:

no

Explanation:

3 0
3 years ago
Read 2 more answers
They always water the garden in the morning. (Underline the verb in the sentence)​
valina [46]

Answer:

Water

Explanation:

A verb describes an action, an occurrence, or a state of being. Watering is an action.

8 0
2 years ago
Read 2 more answers
Whats the name of the windows 10 nucleus
stepan [7]

Answer:

motheboard

Explanation:

7 0
2 years ago
Other questions:
  • The picture that graphically represents the items you use in Windows is called a/an
    12·2 answers
  • Which of the following refers to semitransparent text or a faint object that appears
    15·1 answer
  • A technician replaces a defective 250GB hard drive in a desktop with a 2TB hard drive. After installation, the computer detects
    5·1 answer
  • Domain of (x+8)/(x(x+10))
    12·1 answer
  • A(n _______________ is a pre-written formula that is built into excel
    12·1 answer
  • Use the following global structure declaration as an example only. You will need to create your own data structure based on a da
    5·1 answer
  • When using the following symbol, there are two arrows coming out of it. One arrow corresponds to what happens in the program if
    7·1 answer
  • Excel spread sheets are primarily used to
    13·2 answers
  • What would happen without satellites???
    12·2 answers
  • What represents a user’s specific preferences?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!