Question: You have two tables in your database design: Customers, which lists all your customers, and Orders, which lists all the sales transactions that your customers
You have two tables in your database design: Customers, which lists all your customers, and Orders, which lists all the sales transactions that your customers have made over the years. The two tables each have a field called CustomerID Which of the following correctly describe the relationship between the two tables?
point
Both the CustomerID field in the Customers table and the CustomerID
field in the Orders table are Primary Keys.
The CustomerID field in the Customers table is a Primary Key and the
CustomerID field in the Orders table is a Foreign Key.
The CustomerID field in the Customers table is a Foreign Key and the
CustomerID field in the Orders table is a Primary Key.
Both the CustomerID field in the Customers table and the CustomerID
field in the Orders table are Foreign Keys.
Question
What is the SQL DDL command can be used for adding primary keys to an existing table in a database?
point
SQL QUERY
CREATE TABLE
UPDATE TABLE
ALTER TABLE
Question
What is the recommend SQL command for loading small to medium amounts of data into a database?
point
LOAD command
IMPORT command
LOAD or IMPORT there is no difference
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
