Upload
lyneth
View
23
Download
0
Tags:
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
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]
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
Clustered Index
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
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
Non Clustered index
create index IX_HR_Person_surname on HR.Person(surname)
select forename, surname, dobfrom HR.Personorder by surname
Challenge 1
Write the TSQL to get a string of a date in the format
“YYYY mon dd” i.e. 2007 April 04
Challenge 2
Write the TSQL to get a date from a string in the format
“YYYY mon dd” i.e. 2007 April 04
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
SQLCLR Tips
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
Reference
Blogs http://sqlblogcasts.com/blogs/simons http://sqlblogcasts.com/blogs/
tonyrogerson
Contact Me [email protected]
Feedback – Complete the forms
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]