0% found this document useful (0 votes)
8 views49 pages

Table of Contents

The document outlines a comprehensive SQL tutorial structured around a fictional startup called Bindle, focusing on data analysis, marketing, and product analytics. It covers SQL basics, sub-languages, and practical applications through various exercises and real-life examples. The course is designed for beginners and progresses to advanced topics, emphasizing the importance of data in decision-making and business performance.

Uploaded by

Putta Swamy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views49 pages

Table of Contents

The document outlines a comprehensive SQL tutorial structured around a fictional startup called Bindle, focusing on data analysis, marketing, and product analytics. It covers SQL basics, sub-languages, and practical applications through various exercises and real-life examples. The course is designed for beginners and progresses to advanced topics, emphasizing the importance of data in decision-making and business performance.

Uploaded by

Putta Swamy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 49

able of Contents

 3.1 Welcome
 3.1.1 SQL and SQL Standardization
 3.2 Sub-Languages of SQL
 3.3 The Basics of SELECT, Order of Execution, and the Dual Table
 3.4 Aliases (Field and Table Aliases)
 3.5 Calculated Values and Single-Line Functions
 3.6. Filtering Data (WHERE)
 3.6.1 Wildcards
 3.6.2 Filtering with Aliases
 3.7 Sorting Data (ORDER BY)
 3.8 Limiting Results (FETCH)
 3.9 CRUD
 3.9.1 INSERT - Inserting New Data Rows
 3.9.2 UPDATE - Updating Existing Data
 3.9.3 DELETE - Deleting Existing Data
 3.10 Practice Problems
Suggested Additional Reading Materials
 Text - Chapter 16 (SQL Data Manipulation Language)
(Up to end of "Built-in Functions", ignoring grouping, count and having sections)
 W3Schools - SELECT
 W3Schools - SELECT DISTINCT
 W3Schools - SELECT WHERE
 W3Schools - SELECT AND, OR, NOT
 W3Schools - SELECT ORDER BY
 W3Schools - NULL Values
 W3Schools - INSERT
 W3Schools - UPDATE
 W3Schools - DELETE

SQL Tutorial
SQL HOME
SQL Intro
SQL Syntax
SQL Select
SQL Select Distinct
SQL Where
SQL Order By
SQL And
SQL Or
SQL Not
SQL Insert Into
SQL Null Values
SQL Update
SQL Delete
SQL Select Top
SQL Aggregate Functions
SQL Min and Max
SQL Count
SQL Sum
SQL Avg
SQL Like
SQL Wildcards
SQL In
SQL Between
SQL Aliases
SQL Joins
SQL Inner Join
SQL Left Join
SQL Right Join
SQL Full Join
SQL Self Join
SQL Union
SQL Group By
SQL Having
SQL Exists
SQL Any, All
SQL Select Into
SQL Insert Into Select
SQL Case
SQL Null Functions
SQL Stored Procedures
SQL Comments
SQL Operators

SQL Database
SQL Create DB
SQL Drop DB
SQL Backup DB
SQL Create Table
SQL Drop Table
SQL Alter Table
SQL Constraints
SQL Not Null
SQL Unique
SQL Primary Key
SQL Foreign Key
SQL Check
SQL Default
SQL Index
SQL Auto Increment
SQL Dates
SQL Views
SQL Injection
SQL Hosting
SQL Data Types

SQL References
SQL Keywords
MySQL Functions
SQL Server Functions
MS Access Functions
SQL Quick Ref

SQL Examples
SQL Examples
SQL Editor
SQL Quiz
SQL Exercises
SQL Server
SQL Syllabus
SQL Study Plan
SQL Bootcamp
SQL Certificate
SQL Training
Table of Contents
SQL Habit has 2 main parts – course aka "business simulator" and practice exercises. Practice exercises
are standalone and based on various datasets, where the course is based on a story of a fictional startup
company called Bindle.
Bindle is a subscription service for reading books online. The course starts with a launch of Bindle's
website and together with the founders will learn how to analyze website performance, marketing
performace, dive into analytics of web and mobile apps and much more.
The course covers the first year of Bindle. Each chapters covers one month focused on a specific topic.
During each chapter we'll see many real life example in the life of Bindle, learn how data helps to take
decisions and solve them. The most important – we'll learn all nuances of how data is recorded and
stored in Bindle's data warehouse.
The course requires no prio knowledge of SQL. It'll take you from absolute 0 to Advanced with real life
examples, lessons and exercises.
Introduction
You’ll learn how SQL Habit works and how to get the most out of the course. A quick chapter to set you

up for an efficient and effective learning


1. Introduction to SQL Habit course


Start

2. Beyond SQL Habit course: Practice, Chart and Mock Interviews


Start

3. Supercharge your learning with AI Coach


Start

4. A brief history of SQL and its applications


Start

5. How data is stored inside SQL database


Start

6. Query anatomy: SELECT and FROM


Start

7. Query anatomy: Comments


Start

8. Keyboard shortcuts for SQL Editor


Start

Fundamentals of Data Analysis


Together with Bindle’s founders you’ll learn SQL basics and how it helps to segment users (by country,

time etc), work with basic timelines


9. Selecting all records from the table


Start

10. Sorting records


Start

11. Limiting number of records produced by query


Start

12. Filtering records from a table


Start

13. Filtering by country


Start

14. Inspecting a specific user record


Start

15. Count signups from country


Start

16. Count signups from the US


Start

17. Vanity metrics: total number of signups


Start

18. Filtering records by time


Start

19. Inclusive and non-inclusive comparison


Start

20. Combining filters


Start

21. Count signups within a time range


Start

22. Count total number of customers


Start

23. Count customers per country


Start

24. Better filtering records with ranges


Start

25. Number of customers in a month


Start

26. Using aliases for columns


Start

27. If/else logic via CASE statement


Start

28. Calculating purchase rate. Part 1


Start

29. Calculating purchase rate. Part 2


Start

30. Integer and float numbers in SQL


Start

31. Calculating purchase rate per country


Start

32. Counting number of customers per country in a month


Start

33. Count numbers of published books


Start

34. Subqueries in SQL


Start

35. Relational model of data


Start

36. Relation types: one to one, one to many, many to many


Start

37. Relational model diagrams


Start

38. Comparing dates and datetimes


Start

39. Type-casting
Start

40. Functions in SQL


Start

41. Counting books users started to read in the first week


Start

42. Measuring users activity


Start

43. Filtering NULL values


Start

44. Analyzing feature: counting users who filled their profile


Start

45. Feature acceptance criteria: percentage of users who uploaded avatar


Start

46. Counting in ranges: user age


Start

47. Fundamentals of SQL recap


Start

Running marketing
This chapter focuses on SQL for marketing: what data can help us measure an effectiveness of our

campaigns, how to group data, work with time lines and cohorts

48. Intro to performance marketing


Start

49. Filtering with OR operator


Start

50. Counting signups from English speaking countries


Start

51. Counting signups from DACH region


Start

52. Counting fiction books in the library


Start

53. Listing distinct book categories with DISTINCT


Start

54. Counting unique values


Start

55. Count user signup countries


Start

56. Filtering string values by matching


Start

57. Matching string values regardless of case


Start

58. First marketing campaign: counting signups from a custom domain


Start

59. Identifying email domain with SPLIT_PART


Start

60. Count unique email domains


Start

61. Сounting signups per country: intro to GROUP BY


Start

62. Order of SQL commands execution in a query


Start

63. Practicing queries on virtual datasets with UNION


Start

64. Set operators: UNION and UNION ALL


Start

65. Country with the highest number of signups


Start

66. Calculate signups per day, per country


Start

67. Referencing columns by numbers


Start

68. Most popular email domain


Start

69. The smallest book category


Start

70. Daily and hourly timelines


Start

71. Monthly and yearly timelines


Start

72. The month with the highest number of signups


Start

73. Counting number users per age group


Start

74. Biggest age group in USA


Start

75. Introduction to UTM parameters and marketing attribution


Start

76. Calculating number of signups per campaign


Start

77. Calculating number of signups from Twitter ads


Start

78. The biggest marketing campaign


Start

79. Organic vs paid signups


Start

80. Count organic signups in a month


Start

81. Introduction to referral programs


Start

82. Identifying power referral users


Start

83. Best performing Twitter ad message


Start

84. Marketing metrics: ROI


Start

85. Import of marketing data


Start

86. Calculating marketing spend per channel


Start

87. Calculating marketing spend per campaign


Start

88. Finding the biggest marketing channel


Start

89. Calculate purchase rate per campaign


Start

90. Calculate purchase rate for organic traffic


Start

91. Marketing data and SQL recap


Start

Revenue analytics and unit economics


In this chapter we’ll dive into all things revenue: calculating gross revenue, revenue per country/time
period. We’ll see how we can join marketing and revenue data to calculate ROI and business unit

economics (revenue per user etc)



92. Calculating revenue per subscription
Start

93. Calculating gross revenue per month


Start

94. Joining tables together with INNER JOIN


Start

95. Working with joined tables


Start

96. JOIN + Aggregate Functions =


Start

97. Order of SQL commands execution in a query with JOINs


Start

98. Identifying the most popular book in the catalogue


Start

99. LEFT JOIN 101


Start

100. Grouping and counting with LEFT JOIN


Start

101. Calculating ROI


Start

102. Calculating marketing channel ROI


Start

103. Joining tables without conditions with CROSS JOIN


Start

104. Calculating overall performance marketing ROI


Start

105. Intro to Unit Economics


Start

106. ARPU: Average Revenue Per User


Start

107. Calculating ARPU


Start

108. Calculating ARPU per marketing campaign


Start

109. ARPPU: Average Revenue Per Paying User


Start

110. Calculating ARPPU per country


Start

111. Differentiating between past and current customers


Start

112. CPA: Cost per acquisition


Start

113. Calculating CPA per marketing campaign


Start

114. Setting default values with COALESCE


Start

115. CPC: Cost Per Click


Start

116. Detecting campaign with the highest CPC


Start

117. CAC: Customer Acquisition Cost


Start

118. Calculating CAC per campaign


Start

119. Sorting records with NULL values


Start

120. Other types of JOINs


Start

121. Calculating revenue or other metric for the last day/week/month


Start

122. Revenue analytics recap


Start

123. Revenue analytics recap. Part 2


Start
Product Analytics. Part 1
Bindle launches a mobile app to allow users read books on the go. In this chapter we’ll learn funnel

analysis for product flows (onboarding, purchase), retention metrics and more

124. Intro to pirate metrics AARRR: Acquisition, Activation, Retention, Revenue, Referral
Start

125. Basics of funnel analysis


Start

126. Overview of web tracking or how Gооglе Anаlytics works


Start

127. How pageviews are collected and stored


Start

128. Inspecting pageviews table. SCHEMAs in SQL


Start

129. Measuring traffic per device type


Start

130. Web funnels. Part 1: Measuring traffic on a page


Start

131. Measuring unique visitors on a page


Start

132. Web funnels. Part 2: Funnel based on referer URL


Start

133. Calculating funnel step churn rate


Start

134. Listing traffic sources based on referer URL


Start

135. Identifying TOP traffic source for a landing page


Start

136. How events are collected and stored


Start

137. Building web funnels based on events


Start

138. Multistep funnels with pageviews and events


Start

139. CTR of a “Signup” button


Start

140. Validation of signup events consistency


Start

141. JSON column types


Start

142. Querying JSON columns


Start

143. Counting pageviews with AB-test variation


Start

144. Cleaning data: filtering out empty values


Start

145. Percentage of mobile traffic on the page


Start

146. Signup rate per device type


Start

147. Onboarding funnel analysis on the web. Part 1


Start

148. Onboarding funnel analysis on the web. Part 2


Start

149. Onboarding funnel analysis on the web. Part 3


Start

150. Measuring activation rate


Start

151. Email signups vs Social signups


Start

152. Introduction to window functions


Start

153. Deep dive into window functions. Part 1


Start

154. How much users signup via Facebook?


Start

155. Deep dive into window functions. Part 2: Grouping and counting with percentage
Start

156. Deep dive into window functions. Part 3: Cumulative aggregates


Start

157. Popular window functions


Start

158. Calculating marketing attribution. Part 1


Start

159. Calculating marketing attribution. Part 2


Start

160. Calculating marketing attribution. Part 3


Start

161. Product Analytics. Part 1 recap


Start

Mobile attribution
You’ll learn about mobile attribution. How it works technically and how mixed attribution model works

on web and mobile


162. Introduction to the second part of the course


Start

163. Introduction to mobile apps


Start

164. Percentage of users with mobile app


Start

165. Recap: percentages calculation


Start

166. iPhone version distribution


Start

167. iOS version distribution


Start

168. Introduction to mobile attribution


Start

169. Intro to mobile attribution with Adjust


Start

170. Deep dive into mobile attribution data from Adjust


Start

171. Mobile attribution with Adjust


Start

172. Connecting web and mobile analytics


Start

173. Click to install conversion for website


Start

174. Install to signup conversion for website


Start

175. Overall click to signup conversion for Adjust links


Start

176. Measuring CTR of Adjust links


Start

177. Mobile ad with the highest signup rate


Start

178. Detecting broken app version with mobile attribution data


Start

179. Sorting by app’s semantic version


Start

180. Mobile attribution recap


Start

Product Analytics. Part 2


Second part of Product Analytics focuses on analytics for mobile apps, retention rate, churn rate and

LTV

181. Calculating release date of the app from data


Start

182. Extracting release dates from data


Start

183. Counting app releases per month


Start

184. Introduction to mobile analytics


Start

185. How to measure activation rate


Start

186. Calculating soft activation rate


Start

187. Activation rate per country


Start

188. Measuring activation rate without analytics events. Part 1


Start

189. Measuring activation rate without analytics events. Part 2


Start

190. Retention rate basics


Start

191. Calculating D7 retention rate for a daily cohort


Start

192. Aggregating analytics events into daily activity


Start

193. Calculating D1-D30 retention curve. Part 1


Start

194. Calculating D1-D30 retention curve. Part 2


Start

195. Calculating D1-D30 retention curve. Part 3


Start

196. Using helper table for date ranges


Start

197. Product Analytics. Part 2 recap


Start

AB-tests analysis
It’s time for the new chapter at Bindle – running AB-tests. Just shipping features is not enough, AB-tests
allow learning how and why changes in the product affect users behavior and happiness. This chapter

talks about AB-tests analysis with SQL


198. Intro to AB-testing


Start

199. AB-testing vocabulary


Start

200. AB-test categorization. Part 1


Start

201. AB-test categorization. Part 2


Start

202. Building AB-test cohorts


Start

203. Calculating activation rate for AB-test variation


Start

204. Building basic AB-test funnel


Start

205. Using multiple metrics in AB-test analysis


Start

206. Calculating ARPU of AB-test variation


Start

207. Unit economics in AB-test analysis


Start

208. Purchased products of AB-test variation


Start

209. Retention in AB-test funnel


Start

210. Calculating uplift for AB-test variations


Start

211. Looking at AB-test performance in time


Start

212. Statistical significance, power and further reading on AB-testing


Start

213. AB-test analysis recap


Start

Text analysis with SQL


In this chapter we’ll be learning about getting useful insights from text data using Pattern Matching,

Regular Expressions; we’ll go over all String functions in SQL


214. Introduction to text analysis with SQL


Start

215. Deep dive into pattern matching with LIKE


Start

216. Case insensitive matching with ILIKE


Start

217. Counting number of signups from .biz domains


Start

218. Percentage of profiles with a specific interest


Start

219. Percentage of profiles with multiple interests


Start

220. Distinguishing empty strings and NULL values


Start

221. Introduction to regular expressions


Start

222. Regex basics


Start

223. Implementing LIKE with regex


Start

224. Selecting iPhone users


Start

225. Regex syntax. Part 1


Start

226. Regex syntax. Part 2


Start

227. Regex for validating US postal codes


Start

228. Number of users with a valid US postal code


Start

229. Monitoring marketing naming convention


Start

230. Validating marketing naming convention


Start

231. Regex and case sensitivity, implementing ILIKE


Start

232. Regex functions


Start

233. iPhone version distribution via regex


Start

234. Parsing URL parameters with regex


Start

235. String functions. Part 1


Start

236. String functions. Part 2


Start

237. Books title length distribution


Start

238. Checking if text data is case sensitive


Start

239. Chapter recap


Start

Dashboards and alarms


This chapters talks about using SQL in BI tools, analytics dashboards and typical SQL queries behind

them. We’ll also discuss automatic error detection using data and SQL.

240. Intro to reporting and alarms with SQL


Start

241. Monitoring metrics for the last day/week/month/year


Start

242. Calculating revenue trend


Start

243. Timeline reports


Start

244. Simple fraud detection


Start

245. Timeline reports with trends


Start

246. SQL alarms basics


Start

247. SQL alarms with threshold


Start

248. Notes on anomaly detection


Start

249. Dashboards and alarms recap


Start

SQL at work
This chapter is a collection of tips and tricks from Marketers, Product Managers and Data Analysts that

will give you a head start on using SQL at work


250. Overview of SQL databases: MySQL, PostgreSQL, etc


Start

251. Choosing SQL client and connecting to a database


Start

252. Structuring filters for Ad Hoc analysis


Start

253. Queries formatting aka “developing your style”. Part 1


Start

254. Queries formatting aka “developing your style”. Part 2


Start

255. Random in SQL


Start

256. SQL at work recap


Start

Manipulating data
In this chapter we’ll talk about everything we haven’t been talking yet – modifying data in the database.

Inserting new rows, updating and deleting


257. Adding records to a table


Start

258. Updating records


Start

259. Deleting records from a table


Start

260. Making subqueries available with VIEWs


Start

261. ETL: Extract, Transform, Load


Start

262. Manipulating data recap


Start

263. RIGHT JOIN


Start

264. Epilogue
Start

Appendix
This is SQL Habit’s storage room. It covers the aspects of SQL databases we haven’t discussed yet: rare

JOIN types, set theory, lists of scalar, aggregate and window functions

265. FULL OUTER JOIN


Start

266. Set theory basics and SQL operations: UNION, INTERSECT, EXCEPT
Start

267. Numeric functions


Start

268. Date and time functions


Start

269. String functions


Start

270. Aggregate functions


Start

271. Window functions


Start

272. NULL functions


Start

273. How to generate number or date sequences


Start

Table of Contents
 Introduction
 What is the difference between the conventional way to store data and the database
management concept?
 What is a Database Management System?
 Key points for a Database Management System (DBMS)
 DBMS VS File system
 What are the types of DBMS available?
 Advantages of Database management System
 Most used Databases Management systems Software
 What is a Relational Database management System?
 Difference between DBMS And RDBMS
 Types of keys in RDBMS
 What is SQL?
 Data types in MySQL
 Types of SQL Statements
 What is DDL?
 What is a DML command?
 What is a DQL command?
 What is a DCL command?
 What is a TCL command?

Chapter 4: SQL PDF and Slides


 Background
 Basic Structure
o The select Clause
o The where Clause
o The from Clause
o The Rename Operation
o Tuple Variables
o String Operations
o Ordering the Display of Tuples
o Duplicate Tuples
 Set Operations
 Aggregate Functions
 Null Values
 Nested Subqueries
o Set Membership
o Set Comparison
o Test for Empty Relations
o Test for the Absence of Duplicate Tuples
 Derived Relations
o Views
 Modification of the Database
o Deletion
o Insertion
o Updates
o Update of a view
 Joined Relations
o Examples
o Join types and conditions
 Data-Definition Language
o Domain Types in SQL
o Schema definition in SQL
 Embedded SQL
 Other SQL Features
Chapter 5: Other Relational Languages PDF and Slides
 Query-by-Example (QBE)
o Basic Structure
o Simple Queries
o Queries on Several Relations
o The Condition Box
o The Result Relation
o Ordering the Display of Tuples
o Aggregate Operations
o Modifying the Database
 Insertion
 Updates
 Quel
o Converting Queries Easily Into Any Language
Chapter 6: Integrity Constraints PDF and Slides
 Domain Constraints
 Referential Integrity
o Basic Concepts
o Referential Integrity in the E-R Model
o Database Modification
o Referential Integrity in SQL
 Assertions
 Triggers
 Functional Dependencies
o Basic Concepts
o Closure of a Set of Functional Dependencies
o Closure of Attribute Sets
o Canonical Cover

STRUCTURED QUERY LANGUAGE (SQL)


Chapter 1: Getting started with SQL:
 Getting Started
 Information Schema Examples
Chapter 2: Data Types :
 CHAR(n)
 DATE, DATETIME, TIMESTAMP, YEAR, and TIME
 VARCHAR(255) -- or not
 INT as AUTO_INCREMENT
 Others
 Implicit / Automatic casting
 Introduction (numeric)
 Integer Types
 Fixed Point Types
 Floating Point Types
 Bit Value Type
Chapter 3: SELECT :
 SELECT with DISTINCT
 SELECT all columns (*)
 SELECT by column name
 SELECT with LIKE (%)
 SELECT with CASE or IF
 SELECT with Alias (AS)
 SELECT with a LIMIT clause
 SELECT with BETWEEN
 SELECT with WHERE
 SELECT with LIKE(_)
 SELECT with date range
Chapter 4: NULL :
 Uses for NULL
 Testing NULLs
Chapter 5: Limit and Offset :
 Limit and Offset relationship
Chapter 6: Creating databases :
 Create database, users, and grants
 Creating and Selecting a Database
 MyDatabase
 System Databases
Chapter 7: Using Variables :
 Setting Variables
 Row Number and Group By using variables in Select Statement
Chapter 8: Comment MySQL :
 Adding comments
 Commenting table definitions
Chapter 9: INSERT :
 INSERT, ON DUPLICATE KEY UPDATE
 Inserting multiple rows
 Basic Insert
 INSERT with AUTO_INCREMENT + LAST_INSERT_ID()
 INSERT SELECT (Inserting data from another Table)
 Lost AUTO_INCREMENT ids
Chapter 10: DELETE :
 Multi-Table Deletes
 DELETE vs TRUNCATE
 Multi-table DELETE
 Basic delete
 Delete with Where clause
 Delete all rows from a table
 LIMITing deletes
Chapter 11: UPDATE :
 Update with Join Pattern
 Basic Update
 Bulk UPDATE
 UPDATE with ORDER BY and LIMIT
 Multiple Table UPDATE
Chapter 12: ORDER BY :
 Contexts
 Basic
 ASCending / DESCending
 Some tricks
Chapter 13: Group By :
 GROUP BY using HAVING
 Group By using Group Concat
 Group By Using MIN function
 GROUP BY with AGGREGATE functions
Chapter 14: Joins :
 Joins visualized
 JOIN with subquery ("Derived" table)
 Full Outer Join
 Retrieve customers with orders -- variations on a theme
 Joining Examples
Chapter 15: JOINS: Join 3 table with the same name of id. :
 Join 3 tables on a column with the same name
Chapter 16: UNION :
 Combining SELECT statements with UNION
 Combining data with different columns
 ORDER BY
 Pagination via OFFSET
 Combining and merging data on different MySQL tables with the
same columns into unique
 rows and running query
 UNION ALL and UNION
Chapter 17: Arithmetic Operations :
 Arithmetic Operators
 Mathematical Constants
 Trigonometry (SIN, COS)
 Rounding (ROUND, FLOOR, CEIL)
 Raise a number to a power (POW)
 Square Root (SQRT)
 Random Numbers (RAND)
 Absolute Value and Sign (ABS, SIGN)
Chapter 18: String operations :
 LENGTH()
 CHAR_LENGTH()
 HEX(str)
 SUBSTRING()
 UPPER() / UCASE()
 STR_TO_DATE - Convert string to date
 LOWER() / LCASE()
 REPLACE()
 Find element in comma separated list
Chapter 19: Date and Time Operations :
 Date arithmetic
 SYSDATE(), NOW(), CURDATE()
 Testing against a date range
 Extract Date from Given Date or DateTime Expression
 Using an index for a date and time lookup
 Now()
Chapter 20: Handling Time Zones :
 Retrieve the current date and time in a particular time zone
 Convert a stored `DATE` or `DATETIME` value to another time zone
 Retrieve stored `TIMESTAMP` values in a particular time zone
 What is my server's local time zone setting?
 What time_zone values are available in my server?
Chapter 21: Regular Expressions :
 REGEXP / RLIKE
Chapter 22: VIEW :
 Create a View
 A view from two tables
 DROPPING A VIEW
 Updating a table via a VIEW
Chapter 23: Table Creation :
 Table creation with Primary Key
 Basic table creation
 Table creation with Foreign Key
 Show Table Structure
 Cloning an existing table
 Table Create With TimeStamp Column To Show Last Update
 CREATE TABLE FROM SELECT
Chapter 24: ALTER TABLE :
 Changing storage engine; rebuild table; change file_per_table
 ALTER COLUMN OF TABLE
 Change auto-increment value
 Renaming a MySQL table
 ALTER table add INDEX
 Changing the type of a primary key column
 Change column definition
 Renaming a MySQL database
 Swapping the names of two MySQL databases
 Renaming a column in a MySQL table
Chapter 25: Drop Table :
 Drop Table
 Drop tables from database
Chapter 26: MySQL LOCK TABLE :
 Row Level Locking
 Mysql Locks
Chapter 27: Stored routines (procedures and functions) :
 Stored procedure with IN, OUT, INOUT parameters
 Create a Function
 Cursors
 Multiple ResultSets
 Create a function
Chapter 28: Indexes and Keys :
 Create index
 Create unique index
 AUTO_INCREMENT key
 Create composite index
 Drop index
Chapter 29: Full-Text search :
 Simple FULLTEXT search
 Simple BOOLEAN search
 Multi-column FULLTEXT search
Chapter 30: PREPARE Statements :
 PREPARE, EXECUTE and DEALLOCATE PREPARE Statements
 Alter table with add column
Chapter 31: MySQL Admin :
 Atomic RENAME & Table Reload
 Change root password
 Drop database
Chapter 32: TRIGGERS :
 Basic Trigger
 Types of triggers
Chapter 33: Events :
 Create an Event
Chapter 34: ENUM :
 Why ENUM?
 VARCHAR as an alternative
 Adding a new option
 NULL vs NOT NULL
Chapter 35: Clustering :
 Disambiguation
Chapter 36: Partitioning :
 RANGE Partitioning
 LIST Partitioning
 HASH Partitioning

You might also like