<commit_before>---
layout: post
title: t-sql
category: posts
---

## t-sql
> Notes for SSMS

### Create table

```
create table dbo.<table name> (
    IdColumn int primary key identity(1,1) not null,
    GuidColumn uniqueidentifier not null,
    StringColumn varchar(50) null,<commit_msg>Add null note<commit_after>---
layout: post
title: t-sql
category: posts
---

## t-sql
> Notes for SSMS

### COALESCE

```
COALESCE ( expression [ ,...n ] ) 
```


### Create table

```
create table dbo.<table name> (
    IdColumn int primary key identity(1,1) not null,
    GuidColumn uniqueidentifier not null,
    StringColumn varchar(50) null,
{'fraction_non_alphanumeric': 0.13700787401574804, 'fraction_numerical': 0.012598425196850394, 'mean_word_length': 3.5106382978723403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4978316', 'n_tokens_mistral': 220, 'n_tokens_neox': 208, 'n_words': 67}