SampleTest2-ids521

SampleTest2-ids521 - IDS 521 - Advanced Database Management...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
IDS 521 - Advanced Database Management Sample Test2 Name:_____________________________ SSN: __________________________ For Test2, I plan to have 20 Multiple Choice questions (each one is worth 2 points) and eight essay questions, asking you to compose SQL, View, Trigger, and stored-procedure using T-SQL. Each of these questions is worth between 5 and 10 points. For Test2, you need to know the following topics: 1. Create DDL for tables. 2. Know how to insert into, update, and delete records from a table. 3. Create Triggers. 4. Create Views. 5. Query a single table and multiple tables using joins and sub queries. 6. Create stored-procedures using T-SQL. Sample Multiple Choice questions: 1. Which of the following statements best describes what this INSERT statement does? INSERT INTO InvoiceArchive SELECT * FROM Invoices WHERE TermsID = 1 a. Adds one row from the Invoices table to the InvoiceArchive table. b. Adds all of the rows in the Invoices table that have 1 in the TermsID column to the InvoiceArchive table. c. Adds all of the rows in the Invoices table to the InvoiceArchive table and sets the TermsID column to 1 in each row. d. Updates all of the rows in the InvoiceArchive table that have 1 in the TermsID column to the rows in the Invoices table. 2. QUERY:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

SampleTest2-ids521 - IDS 521 - Advanced Database Management...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online