Package deal
D427 Questions and Answers Pack | New One | Grade A+
D427 Questions and Answers Pack | New One | Grade A+
[Show more]D427 Questions and Answers Pack | New One | Grade A+
[Show more]Add a column to a table 
Ans: ALTER TABLE table_name 
ADD column_name datatype; 
CREATE VIEW 
Ans: CREATE VIEW view_name AS 
SELECT column_name(s) 
FROM table_name 
WHERE condition 
Viewing a View 
Ans: SELECT * FROM Viewname 
Adding a primary key 
Ans: ALTER TABLE Movie 
ADD PRIMARY KEY (ID); 
Addi...
Preview 1 out of 3 pages
Add to cartAdd a column to a table 
Ans: ALTER TABLE table_name 
ADD column_name datatype; 
CREATE VIEW 
Ans: CREATE VIEW view_name AS 
SELECT column_name(s) 
FROM table_name 
WHERE condition 
Viewing a View 
Ans: SELECT * FROM Viewname 
Adding a primary key 
Ans: ALTER TABLE Movie 
ADD PRIMARY KEY (ID); 
Addi...
how many attributes are present in an address? 
city, state, zip, country 
Ans: 4 
which column should be the primary key? 
package 
weight 
description 
last changed date 
tracking number 
Ans: tracking number 
what SQL commands are an example of DDL? 
update, alter, select delete 
Ans: alter 
must...
Preview 2 out of 6 pages
Add to carthow many attributes are present in an address? 
city, state, zip, country 
Ans: 4 
which column should be the primary key? 
package 
weight 
description 
last changed date 
tracking number 
Ans: tracking number 
what SQL commands are an example of DDL? 
update, alter, select delete 
Ans: alter 
must...
UPDATE Horse 
Ans: to update Table 
INSERT INTO Horse 
Ans: to insert 
ALTER TABLE Movie 
Ans: add, drop , change 
DELETE FROM Horse 
Ans: to delete 
SELECT RegisteredName, Height, BirthDate 
FROM Horse 
Ans: no bracket or ' ' 
START TRANSACTION; 
Ans: in beginning to start transaction 
CREATE VIE...
Preview 2 out of 7 pages
Add to cartUPDATE Horse 
Ans: to update Table 
INSERT INTO Horse 
Ans: to insert 
ALTER TABLE Movie 
Ans: add, drop , change 
DELETE FROM Horse 
Ans: to delete 
SELECT RegisteredName, Height, BirthDate 
FROM Horse 
Ans: no bracket or ' ' 
START TRANSACTION; 
Ans: in beginning to start transaction 
CREATE VIE...
San Francisco, CA 94110 
USA 
How many attributes are present in the address fragment? 
Ans: 4 
The Package table has the following columns: 
Weight—decimal 
Description—optional variable length string 
LastChangedDate—date 
TrackingNumber—integer 
Which column should be designated the prima...
Preview 2 out of 15 pages
Add to cartSan Francisco, CA 94110 
USA 
How many attributes are present in the address fragment? 
Ans: 4 
The Package table has the following columns: 
Weight—decimal 
Description—optional variable length string 
LastChangedDate—date 
TrackingNumber—integer 
Which column should be designated the prima...
When you add a Foreign Key to a column when creating a table 
Ans: When Creating a Table: 
CREATE TABLE Movie( 
Title VARCHAR(30), 
RatingCode VARCHAR(5), 
FOREIGN KEY (RatingCode) REFERENCES Rating(RatingCode) 
); 
When Creating a View 
Ans: "AS" Goes after View name 
CREATE VIEW MyMovies AS 
SEL...
Preview 1 out of 4 pages
Add to cartWhen you add a Foreign Key to a column when creating a table 
Ans: When Creating a Table: 
CREATE TABLE Movie( 
Title VARCHAR(30), 
RatingCode VARCHAR(5), 
FOREIGN KEY (RatingCode) REFERENCES Rating(RatingCode) 
); 
When Creating a View 
Ans: "AS" Goes after View name 
CREATE VIEW MyMovies AS 
SEL...
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Stuvia is a marketplace, so you are not buying this document from us, but from seller ExamArsenal. Stuvia facilitates payment to the seller.
No, you only buy these notes for $34.99. You're not tied to anything after your purchase.
4.6 stars on Google & Trustpilot (+1000 reviews)
77254 documents were sold in the last 30 days
Founded in 2010, the go-to place to buy study notes for 14 years now