100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Queries Question and answers rated A+ 2024 $13.49   Add to cart

Exam (elaborations)

Queries Question and answers rated A+ 2024

 6 views  0 purchase
  • Course
  • WGU D427
  • Institution
  • WGU D427

Queries Question and answers rated A+ 2024 Pre-Assessment Studying for OA San Francisco, CA 94110, USA How many attributes are present in the address fragment? - correct answer 4. Each entity is considered an attribute. -San Francisco -CA -94110 -USA The Package table has the ...

[Show more]

Preview 4 out of 120  pages

  • September 1, 2024
  • 120
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • queries
  • WGU D427
  • WGU D427
avatar-seller
Academia199
Queries
The Movie table has the following columns:


ID - positive integer


Title - variable-length string


Genre - variable-length string


RatingCode - variable-length string


Year - integer


Write ALTER statements to make the following modifications to the Movie
table:


Add a Producer column with VARCHAR data type (max 50 chars).


ALTER TABLE Movie ADD Producer VARCHAR(50);




The Movie table has the following columns:


ID - positive integer

,Title - variable-length string


Genre - variable-length string


RatingCode - variable-length string


Year - integer


Write ALTER statements to make the following modifications to the Movie
table:


Remove the Genre column.


ALTER TABLE Movie DROP COLUMN Genre;




The Movie table has the following columns:


ID - positive integer


Title - variable-length string


Genre - variable-length string


RatingCode - variable-length string

,Year - integer


Write ALTER statements to make the following modifications to the Movie
table:


Change the Year column's name to ReleaseYear, and change the data type to
SMALLINT.


ALTER TABLE Movie CHANGE COLUMN Year ReleaseYear SMALLINT;




The Movie table has the following columns:


ID - positive integer


Title - variable-length string


Genre - variable-length string


RatingCode - variable-length string


Year - integer


Write ALTER statements to make the following modifications to the Movie
table:


- Add a Producer column with VARCHAR data type (max 50 chars).

, - Remove the Genre column.


- Change the Year column's name to ReleaseYear, and change the data type
to SMALLINT.


ALTER TABLE Movie ADD Producer VARCHAR(50);
ALTER TABLE Movie DROP COLUMN Genre;
ALTER TABLE Movie CHANGE COLUMN Year ReleaseYear SMALLINT;




The Horse table has the following columns:


ID - integer, auto increment, primary key


RegisteredName - variable-length string


Breed - variable-length string, must be one of the following: Egyptian Arab,
Holsteiner, Quarter Horse, Paint, Saddlebred


Height - decimal number, must be between 10.0 and 20.0


BirthDate - date, must be on or after Jan 1, 2015


Insert the following data into the Horse table:


RegisteredName Breed Height BirthDate

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

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!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

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.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Academia199. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $13.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83662 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$13.49
  • (0)
  Add to cart