0% found this document useful (0 votes)
43 views

Soal QT 2

This document contains 15 multiple choice questions about database concepts such as redundancy, data integrity, logical data models, SQL queries, transactions, and change tracking. The questions cover topics like database organization levels, SQL Server tools for performance tuning, relational data models, and SQL statements for enabling change tracking on a database table.

Uploaded by

Setyo Aji Wibowo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views

Soal QT 2

This document contains 15 multiple choice questions about database concepts such as redundancy, data integrity, logical data models, SQL queries, transactions, and change tracking. The questions cover topics like database organization levels, SQL Server tools for performance tuning, relational data models, and SQL statements for enabling change tracking on a database table.

Uploaded by

Setyo Aji Wibowo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

1. What is the term used to describe the repetition of data in a database?

 Redudancy (IRDMS Hal 3.3)


2. A database can be accessed by multiple users. But the entire data available inside a database
is not relevant for all the users. For security reasons also specific data should be available to
the users based on their role or permission. John as a database developer, needs to ensure this
restricted acess of data to users. Which level of database organization is aplicable in the
preceding context?
 Internal Level
3. Which on of the following SQL Server tools help database administrators to analyse and tune
the performance of the SQL Server?
 Database Engine Tuning Advisior( SQL 1 Hal 1.22)
4. Michael is working as a database developer with an organization. He wants to associate a
column of one table with an identical column in the other table, which is also primary key in
the table. identify the correct term that describe this form of data integrity.
 Entity integrity ( SQL 1 Hal 4.20)
5. Which of the following record-based logical models is used to store data in the form of fixed
length records with each record having a fixed number of attributes?
 Relational Model (IRDMS Hal 1.17)
6. Select Product_Description
From product.dbo.products
Where contains (Product_description, ‘Formsof (Inflectional, Sale)’)

What will be returned in the result set of presiding query?


 The product_deskription values for those rows that contain words with a meaning similar
to the word, sale, are return.
7. You are working as a database administrator. You want to enable change tracking on a
database. Which one of the following statements should be used to perform this task?
 Alter Database (Microsoft.com)
8. Steve has been assigned the task of creating web-based reports based on the data that is
stored in the data warehouse. Also, these reports should get published in different formats.
Whichone of the following SQL Server components will enable Steve implement the desired
task?
 Reporting Services (SQL 1 Hal 1.12)
9. Insert into Product_lookup values (5, Cameras’)
Update Product_lookup set Product_Name = ‘Printers’ where product_ID =5
Rollback transaction Save_book_laptop
Update Product_lookup set Product_Name = ‘Mobiles’ where product_ID =4
Commit transaction
Select * from Product_lookup

What value will appear in the product_name column of the product_lookup table?
 Mobiles
10. If an error occurs in the INSERT statement of Studentinfo, records inserted onto
student_teacher and StudentFee should be commited.
If an error occurs in the INSERT statement of StudentFee, all transaction shoul be rolled
back.
 Enclose all statement of IncludeStudentDetail in a TRY/CATCH
 Add rollback transaction statement in the catch block

11. The Check Constraint is applied on the LeaveType column of the EmployeeLeave table. This
Check constraint allows only the values CL, SL, and PL in the LeaveType column. You need
to insert a record in the LeaveType column for maternity leave. For this, you have to specify
ML in the LeaveType column. But the constraint applied on the column contradicts this
requirement What should yo do to allow the insertion of ML as a value in the LeaveType
column in some special cases?
 You should disable the check constraint on the LeaveType column
using the NOCHECK CONSTRAINT clause.
Insert a record with the ML leave type value.
Then, you should enable the check constraint on the LeaveType column using the
CHECK CONSTRAINT

12. The data in the table database tables is stored in the form of?
 Data pages
13. SELECT Product_ID, Product_Description FROM Product_AssemblyProcess WHERE
Product_Description CONTAINS (*,’ “HIGH and STRENGTH)
What will be returned in the result set of the preceding query?
 The product_id and product_description values for all those rows that contain both the
words, HIGH and STRENGTH are returned.
14. Which symbol is used to declare a variable in a batch in SQL Server?
 @ (SQL 2 Hal 7.4)
15. You work in a company named Raisy_corp. The company uses SQL Server. You are the
administrator of the company database named Prod_sales. You need to enable change
tracking on the Products table under the schema named Prod. What are the steps you need to
perform to achieve the same?
 USE Prod_Sales
ALTER DATABASE Prod_Sales SET CHANGE_TRACKING ON
GO
ALTER TABLE Prod_Sales.Products ENABLE CHANGE_TRACKING

You might also like