You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document Group By alias syntax for grouping keys in Visual Basic (#48176)
* Initial plan
* Document Group By alias syntax for grouping keys
Co-authored-by: BillWagner <[email protected]>
---------
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: BillWagner <[email protected]>
Copy file name to clipboardExpand all lines: docs/visual-basic/language-reference/queries/group-by-clause.md
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,20 +24,31 @@ Groups the elements of a query result. Can also be used to apply aggregate funct
24
24
Group [ listField1 [,listField2 [...] ] BykeyExp1 [,keyExp2 [...] ]
25
25
IntoaggregateList
26
26
```
27
+
28
+
-or-
29
+
30
+
```vb
31
+
Group [ listField1 [,listField2 [...] ] Byalias1=keyExp1 [,alias2=keyExp2 [...] ]
32
+
IntoaggregateList
33
+
```
27
34
28
35
## Parts
29
36
30
37
-`listField1`, `listField2`
31
38
32
39
Optional. One or more fields of the query variable or variables that explicitly identify the fields to be included in the grouped result. If no fields are specified, all fields of the query variable or variables are included in the grouped result.
33
40
41
+
-`alias1`, `alias2`
42
+
43
+
Optional. Names that are assigned to the grouping keys. If aliases are provided, they can be referenced in the query result instead of the key expressions.
44
+
34
45
-`keyExp1`
35
-
46
+
36
47
Required. An expression that identifies the key to use to determine the groups of elements. You can specify more than one key to specify a composite key.
37
-
48
+
38
49
-`keyExp2`
39
-
40
-
Optional. One or more additional keys that are combined with `keyExp1` to create a composite key.
50
+
51
+
Optional. One or more additional keys that are combined with `keyExp1` to create a composite key.
0 commit comments