Sql

394 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
394
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sql

  1. 1. SQL Next Jump
  2. 2. agenda <ul><li>picture </li></ul><ul><li>code </li></ul><ul><ul><li>reading from database </li></ul></ul><ul><ul><li>writing to database </li></ul></ul><ul><li>info </li></ul><ul><li>… </li></ul>
  3. 4. intro <ul><li>structured query language </li></ul><ul><li>set based for relational data access </li></ul><ul><li>DML – data manipulation </li></ul><ul><ul><li>select, insert, update, delete </li></ul></ul><ul><li>DDL – data definition </li></ul><ul><ul><li>create, alter, drop </li></ul></ul>
  4. 5. reading from database <ul><li>case when … then … else … end </li></ul><ul><li>cast and convert </li></ul><ul><li>inline-views and cte </li></ul><ul><li>outer … join … apply </li></ul><ul><li>intersect, except </li></ul><ul><li>rank, dense, rownumber, ntile </li></ul><ul><li>try … catch </li></ul>
  5. 6. writing to database <ul><li>select … into </li></ul><ul><li>insert … select </li></ul><ul><li>import/export </li></ul><ul><li>excel to make sql </li></ul><ul><li>textpad macros </li></ul>
  6. 7. info <ul><li>sp_help </li></ul><ul><li>sys.objects </li></ul><ul><li>sp_who, sp_who2 </li></ul><ul><li>sp_rename, sp_executesql </li></ul><ul><li>execution plans </li></ul><ul><li>profiler </li></ul><ul><li>toad ? </li></ul>
  7. 8. do’s and don’ts <ul><li>naming conventions </li></ul><ul><ul><li>primary & foreign keys </li></ul></ul><ul><ul><li>audit columns </li></ul></ul><ul><ul><li>index </li></ul></ul><ul><li>normalization </li></ul><ul><li>triggers </li></ul><ul><li>cursors </li></ul><ul><li>update or delete without a where </li></ul>
  8. 10. <ul><li>Integration Services </li></ul><ul><li>Reporting Services </li></ul><ul><li>Analysis Services </li></ul>

×