• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Exam (elaborations)

Data Management Applications - D427 exam questions with the only accurate answers 100%correct

Document preview thumbnail
Preview 1 out of 3 pages

Data Management Applications - D427 exam questions with the only accurate answers 100% correct

Content preview

Data Management Applications - D427 exam questions with the only
accurate answers 100% correct

1.Create a data type with a positive value: UNSIGNED
2.Designating a foreign key in CREATE TABLE statement: FOREIGN
KEY (Column Name)
REFERENCES Table name(Column Name),
3.Command to add a column to an existing table: ALTER TABLE
TableName ADD COLUMN ColumnName DATATYPE;
4.SQL statement to create a view name Myview that contains X, Y, Z
columns from the Maintable table.: CREATE VIEW Myview AS
SELECT X, Y, Z
FROM Maintable;
5.SQL statement to delete the view named Myview: DROP VIEW Myview;
6.SQL statement to modify the Test table to make the ID column the
primary key: ALTER TABLE Test
ADD PRIMARY KEY (ID);
7.Write a SQL statement to designate the Year column in the Movie table as
a foreign key to the Year column in the YearStats table.: ALTER TABLE
Movie ADD FOREIGN KEY (Year)
REFERENCES YearStats(Year);
8.Write a SQL statement to create an index named idx_year on the
Year column of the Movie table.: CREATE INDEX idx_year
ON Movie (Year);
9.SQL statement to add a new row to a table: INSERT INTO Table
(column1, column2,...)
VALUES (value1, value2,...);
10.SQL statement to delete a row with ID value of 295 from Test table:
DELETE FROM Test
WHERE ID = 295;
11.Statement used to add, delete or modify existing columns. Also used
to add or drop constraints: ALTER TABLE <tablename>
12.Statement that is used to modify the existing records in a table.: UPDATE
<tablename>
13.Write a SQL query to output the unique RatingCode values and the
number of movies with each rating value from the Movie table as
RatingCodeCount. Sort the results by the RatingCode in alphabetical order
A-Z. Ensure your result set returns the columns in the order indicated.:
SELECT DISTINCT RatingCode, COUNT(Title) AS RatingCodeCount
FROM Movie
GROUP BY RatingCode
1/
3

Document information

Uploaded on
August 28, 2025
Number of pages
3
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
R230,51

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
20
Followers
2
Items
4322
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions