Skip to content

Commit fe83390

Browse files
authored
added syntaxsql colorizer
and capitalized the keywords
1 parent d6526f2 commit fe83390

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/t-sql/queries/from-using-pivot-and-unpivot.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The syntax for `PIVOT` provides is simpler and more readable than the syntax tha
3636
## Syntax
3737
The following syntax summarizes how to use the `PIVOT` operator.
3838

39-
```
39+
```syntaxsql
4040
SELECT <non-pivoted column>,
4141
[first pivoted column] AS <column name>,
4242
[second pivoted column] AS <column name>,
@@ -158,8 +158,8 @@ The unique values returned by the `EmployeeID` column become fields in the final
158158

159159
```sql
160160
-- Create the table and insert values as portrayed in the previous example.
161-
CREATE TABLE pvt (VendorID int, Emp1 int, Emp2 int,
162-
Emp3 int, Emp4 int, Emp5 int);
161+
CREATE TABLE pvt (VendorID INT, Emp1 INT, Emp2 INT,
162+
Emp3 INT, Emp4 INT, Emp5 INT);
163163
GO
164164
INSERT INTO pvt VALUES (1,4,3,5,4,4);
165165
INSERT INTO pvt VALUES (2,4,1,5,5,5);

0 commit comments

Comments
 (0)