Download presentation
Presentation is loading. Please wait.
Published byArchibald Evans Modified over 9 years ago
7
Deeper Skill Set Certification Requirement Broader Skill Set Recertification Relevance Rigor
15
Exam 70-461: Querying Microsoft SQL Server 2012 MCSA: SQL Server 2012 Exam 70-462: Administering Microsoft SQL Server 2012 Databases Exam 70-463: Implementing a Data Warehouse with Microsoft SQL Server 2012
16
MCSA: SQL Server 2012 MCSE: Data Platform Exam 70-464: Developing Microsoft SQL Server 2012 Databases Exam 70-465: Designing Database Solutions for SQL Server 2012
19
Details of each area
21
Create Database Objects Querying Data Modifying Data Optimizing Queries
22
Create Database Objects Querying Data Modifying Data Optimizing Queries
24
Check Primary Key Foreign Key Unique Default [ColumnDefinition] ConstraintName TYPE Options
25
CREATE TRIGGER ProductCategory_Insert ON Production.ProductCategory AFTER INSERT AS BEGIN SET NOCOUNT ON INSERT INTO ProductCategoryLog (ProductCategoryID, Name, CreationDate) SELECT INSERTED.ProductCategoryID, INSERTED.Name, GETDATE() FROM INSERTED END Note: Always part of the current transaction
26
1024 columns Single query Restricted data modifications No top (without order by)
27
Schemabinding Encryption View Metadata Check
29
Takeaway: Geometry for flat surfaces
30
Create Database Objects Querying Data Modifying Data Optimizing Queries
31
TRY_CONVERT(type, value) PARSE(value AS type USING culture) TRY_PARSE also available FORMAT(value, format, culture) IIF(boolean, True, False)
32
Rank Dense rank Ntile Row number
33
Inner Outer Full Cross
36
Null != Null Use Column IS NULL or Column IS NOT NULL Case ISNULL COALESCE
38
SELECT Region, Country, Category, SUM(TotalSold) AS TotalSales FROM Sales.SalesInformation GROUP BY ROLLUP(Region, Country, Category); -- One pass -- OR GROUP BY ROLLUP(Region, Country, Category); -- Every Pass
39
SELECT Region, Country, Category, SUM(TotalSold) AS TotalSales FROM Sales.SalesInformation GROUP BY GROUPING SETS ( (Region, Country, Category), (Country, Category), (Region, Category), (Category) );
40
...
41
SELECT FirstName, LastName FROM Person.Contact AS Contact FOR XML AUTO, ROOT('Contacts'), ELEMENTS...
42
SELECT 1 AS Tag, NULL AS Parent, ProductID AS [Product!1! ID], Name AS [Product!1!Name!ELEMENT] FROM SalesLT.Product WHERE ProductCategoryID = 5 FOR XML EXPLICIT, ROOT('Products');...
47
Create Database Objects Querying Data Modifying Data Optimizing Queries
51
MERGE Target AS T USING Source AS S ON (T.EmployeeID = S.EmployeeID) WHEN NOT MATCHED BY TARGET -- INSERT THEN INSERT(EmployeeID, EmployeeName) VALUES(S.EmployeeID, S.EmployeeName) WHEN MATCHED -- UPDATE THEN UPDATE SET T.EmployeeName = S.EmployeeName OUTPUT $action AS [Action], inserted.EmployeeID AS [NewID], inserted.EmployeeName AS [NewName], deleted.EmployeeID AS [OldID], deleted.EmployeeName AS [OldName];
54
Create Database Objects Querying Data Modifying Data Optimizing Queries
56
Begin Commit Rollback Save
59
BEGIN TRY BEGIN TRANSACTION -- Perform Work, assuming success COMMIT TRANSACTION END TRY BEGIN CATCH ROLLBACK TRANSACTION PRINT ERROR_MESSAGE() PRINT ERROR_NUMBER() PRINT ERROR_LINE() END CATCH
61
SELECT * FROM Person.Address WHERE City = @city_name AND PostalCode = @postal_code OPTION (OPTIMIZE FOR (@city_name = 'Seattle', @postal_code UNKNOWN)); UPDATE Production.Product WITH (TABLOCK) SET ListPrice = ListPrice * 1.10 WHERE ProductNumber LIKE 'BK-%';
63
Set a date Set small goals Sleep well Before the Exam Don’t panic Keep an eye on time Don’t spend too long on one question During the Exam Eliminate wrong answers Mark the question for review Guess Tough Question
65
www.microsoft.com/learning http://microsoft.com/msdn http://microsoft.com/technet http://channel9.msdn.com/Events/TechEd
68
Labs DBI-H305 What's New for T-SQL in Microsoft SQL Server 2012
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.