Chapter 6Creating Calculated Fields

Introduction

In this chapter, you will learn how to implement calculated fields in your queries. You will become familiar with the arithmetic operators, the aggregate functions, the string functions, and the date and time functions. You will also find a reference for additional functions used in Microsoft Access’s SQL view.

Keywords

ABS ()

AVG ( )

CCUR ()

COUNT (*)

COUNT (ColumnName)

DATE ()

DATEPART (interval, date [firstweekday] [, firstweek])

DAY ()

FIRST ()

FORMAT (ColumnName, DateFormat)

HOUR ()

INSTR (Start, SourceString, SearchString)

INT ()

LAST ()

LCASE ()

LEFT (StringExpression, n)

LEN ()

LTRIM ()

MAX ()

MID (StringExpression, Start, Length)

MIN ()

MINUTE ()

MONTH ()

NOW ...

Get SQL for Microsoft Access, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.