# Defining Database Ranges

/text/scalc/guide/database_define.xhp
tables; database ranges
database ranges; defining
ranges; defining database ranges
defining;database ranges
Defining a Database Range
You can define a range of cells in a spreadsheet to use as a database. Each row in this database range corresponds to a database record and each cell in a row corresponds to a database field. You can sort, group, search, and perform calculations on the range as you would in a database.
You can only edit and access a database range in the spreadsheet that contains the range. You cannot access the database range in the %PRODUCTNAME Data Sources view.
To define a database range
- Select the range of cells that you want to define as a database range.
- Choose Data - Define Range.
- In the Name box, enter a name for the database range.
- Click More.
- Specify the options for the database range.
- Click OK.