Skip to content

Commit

Permalink
Merge pull request #19 from dfe-analytical-services/add-sql-style-guide
Browse files Browse the repository at this point in the history
Add sql style guide
  • Loading branch information
cjrace authored Oct 31, 2023
2 parents 2d339c6 + 4e03f84 commit dab63c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion learning-development/sql.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Download SSMS from the DfE software center, talk to your team about getting acce

There are usually a couple of different versions available for software on the software center, we'd recommend you always go for the latest (newest) version possible.

<!-- gif getting this from the software center -->
If you can't find the option in the software centre, then you may need to raise a [service desk request to make SQL server management studio visible](https://dfe.service-now.com/serviceportal?id=sc_cat_item&sys_id=55d3f68edb7b66005ca2fddabf96197e) in your software centre.

---

Expand All @@ -51,6 +51,8 @@ Here are some tips to follow best practice in your SQL code, making it easier to
* Try to only comment on things that aren't obvious about the query (e.g. why hardcoded filters are used, how to update them)
* Where possible, use [Common Table Expressions (CTEs)](https://www.essentialsql.com/introduction-common-table-expressions-ctes/){target="_blank" rel="noopener noreferrer"} early and often, and name them descriptively (e.g. "pupil_age_table" rather than "p")

[GitLab](https://about.gitlab.com/) have produced a full [SQL style guide](https://about.gitlab.com/handbook/business-technology/data-team/platform/sql-style-guide/), which we recommend following where possible.

---

## How to work with SQL
Expand Down

0 comments on commit dab63c1

Please sign in to comment.