*
1 ) You have a table named Feedback
that contains every record of how a customer felt about their purchase.
One field is called Complaint, where 0 is no complaint and 1 is a
complaint.
You also have a field called Rating that ranges from 0
to 100. If a customer complains they should not be giving a perfect
rating of 100. If they complain then they can enter a score between 0
and 90. If they don’t then it can be between 1 and 100.
Which check constraint would you use?
*
2 ) You want to perform a test
insert against your dbo.Employee table which has an insert trigger on
it. You are not allowed to delete the trigger but want to perform this
insert without the trigger firing. How can you do this? Choose the correct answer
*
3 ) Which statement will never fire a DDL trigger? Choose the correct answer
*
4 ) What happens to a view if the underlying base table is dropped? Choose the correct answer
*
5 ) You are creating a view that
queries your Employee table. You need to prevent the Employee table from
being dropped as long as your view exists. Which option should you use
when you create the view? Choose the correct answer
*
6 ) Your stored procedure named
GetEmployeeByCity has a default parameter of ‘Seattle’. When you execute
the stored procedure, you supply “Boston” as the parameter. What is the
result of your execute statement. Choose the correct answer
*
7 ) What is the difference between SCOPE_IDENTITY( ) and @@IDENTITY? Choose the correct answer
*
8 ) The following query finds all reports for leap year months since 1950:
SELECT *
FROM Reports
WHERE ???????? (rMonth, rYear) = 29
AND rYear > 1950
If, for a specified year, the month of February will contain 29 days,
you want the query to include the record in your query. Which object
should you use in your query predicate?
*
9 ) Which SQL Server error action happens for errors with a severity of 11-16 when you set the XACT_ABORT setting to OFF? Choose the correct answer
*
10 ) You have tables named
CurrentProducts and SalesInvoiceHeader. The CurrentProducts table has a
foreign key relationship with the SalesInvoiceHeader table on the
ProductID column. . You are deleting ProductID 77 from the Product
table and then trying to insert a sale for Product77 into the
SalesInvoiceHeader table.
BEGIN TRY
BEGIN TRANSACTION
DELETE FROM CurrentProducts WHERE ProductID = 77;
BEGIN TRANSACTION
INSERT INTO SalesInvoiceHeader VALUES ( 95894, 77, 2 );
COMMIT TRANSACTION
COMMIT TRANSACTION
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
PRINT ERROR_MESSAGE( );
END CATCH
What will be the outcome when you run this query?
Ans????????
I will submit to you soon till you just guess ur answer and patient!!!!!!!!!!!!!!!!!!!!!!!!!!! thankxxxxxxx for patient.
No comments:
Post a Comment