Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update xpp-select-statement.md #5016

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ The **asc** keyword is an option on the **order by** or **group by** clause. It
```xpp
CustTable custTable;
select * from custTable
order by Value asc;
order by CredMax asc;
```

## avg keyword
Expand All @@ -228,8 +228,8 @@ The **avg** keyword returns the average of the fields.

```xpp
CustTable custTable;
select avg(Value) from custTable;
info(int642Str(custTable.Value));
select avg(CreditMax) from custTable;
info(strFmt('%1', custTable.CreditMax));
```

## count keyword
Expand Down Expand Up @@ -288,7 +288,7 @@ The **desc** keyword is an option on the **order by** or **group by** clause. It
```xpp
CustTable custTable;
select * from custTable
order by Value desc;
order by AccountNum desc;
```

## exists keyword
Expand Down Expand Up @@ -485,7 +485,7 @@ CustTable custTable;
while select AccountNum, Value from custTable
index AccountIdx
{
Info(custTable.AccountNum + ": " + int642Str(custTable.Value));
Info(custTable.AccountNum + ": " + int642Str(custTable.RecID));
}
```

Expand Down Expand Up @@ -537,7 +537,7 @@ The **maxof** keyword returns the maximum of the fields.
```xpp
CustTable custTable;
select maxof(CreditMax) from custTable;
info(int642Str(custTable.Value));
info(strFmt('%1', custTable.CreditMax));
```

## minof keyword
Expand All @@ -547,7 +547,7 @@ The **minof** keyword returns the minimum of the fields.
```xpp
CustTable custTable;
select minof(CreditMax) from custTable;
info(int642Str(custTable.Value));
info(strFmt('%1', custTable.CreditMax));
```

## noFetch keyword
Expand Down Expand Up @@ -707,7 +707,7 @@ The **sum** keyword returns the sum of the fields. It can be used to sum all acc
```xpp
CustTable custTable;
select sum(CreditMax) from custTable;
info(int642Str(custTable.Value));
info(strFmt('%1', custTable.CreditMax));
```

## validTimeState keyword
Expand Down