17
www.sqlbits.com Group BY: [Food and Drink at Reading Bowl, see you there!] Feedback Forms: [Voucher for £30 book on return of Form] Lunch Time Sessions: [Idera in Everest, Quest in Memphis, Grok in Chic 1 and Learn & Enjoy [Put your phone on Vibrate!] Ask The Experts [Sessions need to finish on time, take questions to the ATE a

Platinum

  • Upload
    lyneth

  • View
    23

  • Download
    0

Embed Size (px)

DESCRIPTION

Platinum. Learn & Enjoy [Put your phone on Vibrate!]. www.sqlbits.com. Group BY: [Food and Drink at Reading Bowl, see you there!]. Gold. Feedback Forms: [Voucher for £30 book on return of Form]. Silver. Lunch Time Sessions: [Idera in Everest, Quest in Memphis, Grok in Chic 1 and 2]. - PowerPoint PPT Presentation

Citation preview

Page 1: Platinum

www.sqlbits.com

Group BY: [Food and Drink at Reading Bowl, see you there!]

Feedback Forms: [Voucher for £30 book on return of Form]

Lunch Time Sessions: [Idera in Everest, Quest in Memphis, Grok in Chic 1 and 2]

Learn & Enjoy [Put your phone on Vibrate!]

Ask The Experts[Sessions need to finish on time, take questions to the ATE area]

Page 2: Platinum

Premier League     P GD PTS

1Nottingham Forest 38 46 114

2Man Utd 38 5 83

3Man City 38 5 76

4Liverpool 38 10 745Everton 38 2 72

6Portsmouth 38 3 70

7Blackburn 38 2 68

8Chelsea 38 -1 64

9Aston Villa 38 3 6210Newcastle 38 2 62

Page 3: Platinum
Page 4: Platinum

Clustered Index

Page 5: Platinum

A-C D-F G-J K-O P-S T-W X-Z

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

1 cy2 aa3 ap4 az5 cd6 aw7 ct8 by9 af10 ac11 ba12 bd

1 1042 1683 1604 1125 1366 1207 1768 1849 15210 12811 14412 96

Page

Logical Pages

File in SQL

File on OS

SQL Server

Row Offset Table

Data

Page 6: Platinum

A-C D-F G-J K-O P-S T-W X-Z

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

1 aa2 ac3 af4 ap5 aw6 az7 ba8 bd9 by10 cd11 ct12 cy

1 962 1043 1124 1205 1286 1367 1448 1529 16010 16811 17612 184

Page

Logical Pages

File in SQL

File on OS

SQL Server

Page 7: Platinum

Non Clustered index

create index IX_HR_Person_surname on HR.Person(surname)

select forename, surname, dobfrom HR.Personorder by surname

Page 8: Platinum
Page 9: Platinum
Page 10: Platinum
Page 11: Platinum

Challenge 1

Write the TSQL to get a string of a date in the format

“YYYY mon dd” i.e. 2007 April 04

Page 12: Platinum

Challenge 2

Write the TSQL to get a date from a string in the format

“YYYY mon dd” i.e. 2007 April 04

Page 13: Platinum

Challenge 3

Write the TSQL to get a number padded to with zeros on both side of the decimal point

“00.00” i.e. 1.1 becomes 01.10

and 0 into 00.00

Page 14: Platinum

SQLCLR Tips

Page 15: Platinum

Take Away

Just because it was true before doesn’t mean its true now, even in football

Try to understand why? CLR is a good thing, become its

friend

Page 16: Platinum

Reference

Blogs http://sqlblogcasts.com/blogs/simons http://sqlblogcasts.com/blogs/

tonyrogerson

Contact Me [email protected]

Feedback – Complete the forms

Page 17: Platinum

www.sqlbits.comwww.SQLBits.com[Conference Web site]

www.SQLBlogCasts.com[Becoming the premier Blogging site for SQL professionals]

www.SQLServerFAQ.com[UK SQL Server Community Website]

UK SQL Bloggerscwebbbi.spaces.live.comsqlblogcasts.com/blogs/simonssqlblogcasts.com/blogs/tonyrogerson

Feedback Forms!!

Contact [email protected]