課程簡介
基本
- 選擇所有列/欄位
- 選擇某些列/欄位
- 使用 distinct/unique
- 選擇某些行/記錄
- 在區域中選擇值
- 選擇與模式掩碼匹配的值
- 在清單中選擇值
- 空值的處理
- 如何對數據進行排序
- 選擇計算值和派生值
- 如何控制查詢結果中的列標題
- 如何將查詢結果發送到外部檔
聯接表
- 連接表格的原則:
- 使用笛卡爾連接
- 使用 inner join
- 非等值聯接的使用
- 使用 outer join
聯接查詢
- 聯合運算子
- Intersect 運算符
- Except 運算符
簡單的函數
- 轉換函數
- 日期函數
- 數位函數
- 文本函數
- 組/摘要/聚合函數
子查詢
- 子查詢的原則
- 如何從主查詢中篩選行
- 使用嵌套子查詢
- 使用多列子查詢
- 使用相關子查詢
- 使用子查詢作為內聯視圖和公共表運算式
- 在主查詢中使用子查詢作為列
Case 語句
- 案例陳述原則
- 使用case語句派生列值
- 使用嵌套 case 語句
- 使用case語句生成數據透視表
- 將case語句與子查詢一起使用
數據操作
- 如何將值插入到表中
- 如何在表之間複製值
- 如何更新值
- 如何刪除記錄
- 如何通過檢視更改數據
- 交易的使用
- 如何鎖定行和表
數據定義
- 關係資料庫和數據規範化的原則
- 使用主鍵和外鍵關係和約束
- 如何創建表
- 如何更改表
- 如何創建檢視
- 同義詞的使用
- 如何刪除表和檢視
客戶評論 (6)
我喜歡講座和練習的平衡。當我陷入困境時,盧克非常善於説明我理解問題並努力尋找解決方案,這對我的理解產生了非常積極的影響。
Tom - Welsh Revenue Authority
Course - Transact SQL Basic
機器翻譯
Łukasz非常好。 我喜歡 Łukasz 談論最佳實踐的方式。 節奏很好。 我喜歡這些練習。 有一個wiki供將來參考是件好事
Jake Real - Welsh Revenue Authority
Course - Transact SQL Basic
機器翻譯
盧卡斯非常有耐心,知識淵博,使學習SQL變得非常有趣和信息豐富。這是我有幸參加的所有科目中最有價值的培訓課程之一!
Carwyn - Welsh Revenue Authority
Course - Transact SQL Basic
機器翻譯
Phil was great! He was both patient and knowledgeable. The training went at a good pace, moving a team of mixed SQL abilities through the basics into more advanced SQL querying together. The exercises were an excellent way for us to commit our newly learned skills to memory, and Phil's instructions/class discussions on numerous ways to achieve the same thing were interesting.
Sophie Clement - Thames Water Utilites Ltd
Course - Transact SQL Basic
It felt very relatable. The exercises were well picked out and I was able to work well with it due to clear knowledge provided.
Leah Bayliss - Thames Water Utilites Ltd
Course - Transact SQL Basic
Interactive exercises