Lucy
  • Introduction to Lucy
  • Getting Started
  • Key Components
  • Gallery (Dashboards)
    • Creating a Canvas
    • Editing Properties of a Canvas
    • Searching and Viewing Your Canvases
    • Adding Widgets onto Your Canvas
    • Customising User-created Widgets on a Canvas
    • Adjusting Widget Settings
    • Moving a Widget around a Canvas
    • Resizing a Widget on a Canvas
    • Filtering Data in a Widget
    • Deleting a Widget from Your Canvas
    • Building a Widget from Your Canvas
    • Customising a Canvas
  • My Work (Folders)
    • Creating a New Folder
    • Searching and Viewing Your Folders
    • Adding Notes related to a Folder
    • Databases
      • Understanding Databases
      • Creating and Editing Databases
        • Creating a Database Manually
        • Creating a Database by Importing Data from an External Source
        • Using an External Source as a Database
        • Editing Fields in a Database
      • Editing Data in a Database
      • Using the Database Collection Viewer
      • Searching, Filtering, and Sorting Data in a Database
      • Exporting Data from a Database
      • Utilising Content-aware Autofill to Automatically Fill in Fields in Your Database
      • Entering a Question about Databases within a Folder to Build Your Own Widget
      • Adding Data into a Database
    • User Interfaces
      • Designing a User Interface
        • Designing a User Interface to Visualise Information
        • Designing a User Interface to Capture User Feedback
        • Designing a User Interface from Scratch
      • Working with the Widget Designer
      • Selecting a Widget Template
        • Item List Widget Template
      • Viewing Your User Interfaces
      • Sharing a User Interface
      • Saving a Widget as a Template
      • Exporting a User Interface
      • Enabling Anonymous Access to a User Interface
    • Workflows and Integrations
      • Using the Workflow Editor
      • Creating Workflows
      • Creating a Workflow to Run When New Data is Added to a Database
      • Creating a Workflow to Run When an Email is Received
      • Creating a Workflow to Run When a Message from a Chatbot is Received
      • Creating a Workflow that Runs at Specified Intervals
      • Viewing and Editing Your Workflows
      • Automating Form Submission with Email Notification
      • Automating Form Submission with Slack Message
  • Add-ons
    • Installing a New Add-on in Lucy
    • Visitor Management
    • Monitoring Internal Air Quality (IAQ) at Your Workplace
    • Setting up Occupancy Analytics at Your Workplace
    • Energy Budgeting
    • Water Budgeting
    • Gas Budgeting
    • Carbon Footprint Calculation
    • Weather
  • Mobile App
    • Getting Started
    • Designing Your Mobile App
      • Working with the Mobile App Designer
      • Handling Button Click Events
      • Designing the Login Page
      • Designing the Homepage
      • Designing the Settings Page
      • Choosing a Page Type
      • Adding a New Tab to the Bottom Navigation Bar
      • Launching a Widget on Tab Click
  • Users
    • Registering a User
    • Creating a User Group
    • Searching and Viewing Users
    • Editing User Details
    • Your Profile
  • News Feeds
    • Creating a News Feed
    • Searching and Viewing News Feeds
    • Editing a News Feed
Powered by GitBook
On this page
  • Searching for Data
  • 1. Searching for Data by Entering a Search Term
  • 2. Searching for Data by Entering a MongoDB Query
  • Filtering Data
  • 1. Filtering Records by Selecting Column Values
  • 2. Filtering Records by Selecting Columns
  • Sorting Data
  1. My Work (Folders)
  2. Databases

Searching, Filtering, and Sorting Data in a Database

PreviousUsing the Database Collection ViewerNextExporting Data from a Database

Last updated 10 months ago

Searching and filtering are fundamental features that empower users to efficiently navigate databases and extract valuable insights. These functionalities play a crucial role in enhancing productivity, supporting decision-making processes, and maintaining the integrity of stored data. Additionally, users have the flexibility to arrange data records in either ascending or descending order.

In this article, we'll guide you on how to search, filter, and sort data in a database.

Searching for Data

There are two approaches to locating data in a database:

1. Searching for Data by Entering a Search Term

To search for data records by entering a search term:

  1. On the app homepage, go to the My Work tab on the left sidebar.

  2. All the folders you have created, as well as those created by others, will be listed.

  3. If you cannot locate the folder in the list, type in the folder name under Search Folders.

  4. Click on the folder you wish to open.

  5. Head to the Databases tab.

  6. Search and click on the required database.

  7. A spreadsheet view of your database will be opened in a new window.

  8. Type in the search term in the Search box to search and filter rows.

2. Searching for Data by Entering a MongoDB Query

  1. On the app homepage, go to the My Work tab on the left sidebar.

  2. All the folders you have created, as well as those created by others, will be listed.

  3. If you cannot locate the folder in the list, type in the folder name under Search Folders.

  4. Click on the folder you wish to open.

  5. Head to the Databases tab.

  6. Search and click on the required database.

  7. A spreadsheet view of your database will be opened in a new window.

  8. Type in the MongoDB query in the search box.

  9. Instead, you can click the expand icon to enter the query in a editor window.

Filtering Data

Filtering data in a database involves narrowing down the dataset to only include records that meet certain requirements.

There are several ways to filter data records in your database view:

1. Filtering Records by Selecting Column Values

To filter data records by selecting specific column values:

  1. On the app homepage, go to the My Work tab on the left sidebar.

  2. All the folders you have created, as well as those created by others, will be listed.

  3. If you cannot locate the folder in the list, type in the folder name under Search Folders.

  4. Click on the folder you wish to open.

  5. Head to the Databases tab.

  6. Search and click on the required database.

  7. A spreadsheet view of your database will be opened in a new window.

  8. On the spreadsheet, click Filters & Options.

  9. Under the Filters menu, click on the required database column to expand it.

  10. Within each column, you'll find a list of column values.

  11. Choose the specific column values within the column to apply the filtering and display the corresponding data in your spreadsheet view.

2. Filtering Records by Selecting Columns

To filter data records by selecting specific columns:

  1. On the app homepage, go to the My Work tab on the left sidebar.

  2. All the folders you have created, as well as those created by others, will be listed.

  3. If you cannot locate the folder in the list, type in the folder name under Search Folders.

  4. Click on the folder you wish to open.

  5. Head to the Databases tab.

  6. Search and click on the required database.

  7. A spreadsheet view of your database will be opened in a new window.

  8. On the spreadsheet, click Filters & Options.

  9. Click Toggle Columns menu.

  10. Select the Columns you are interested in.

  11. Only the data related to the selected columns will be displayed in the spreadsheet view. In other words, rest of the columns will be hidden from the view.

Sorting Data

To sort data in ascending or descending order:

  1. On the app homepage, go to the My Work tab on the left sidebar.

  2. All the folders you have created, as well as those created by others, will be listed.

  3. If you cannot locate the folder in the list, type in the folder name under Search Folders.

  4. Click on the folder you wish to open.

  5. Head to the Databases tab.

  6. Search and click on the required database.

  7. A spreadsheet view of your database will be opened in a new window.

  8. On the view, click Filters & Options.

  9. Choose the column from the list that you'd like to use for sorting the data.

  10. Select the sorting order as either ASC (ascending) or DESC (descending).

  11. Data will be sorted and displayed based on the selected column.

Here is a short video that shows how to search, filter, and sort data in a database to help you understand better.

For those with advanced expertise, you have the option to input a directly into the search box or type it in the editor window.

MongoDB query
Searching for Data by Entering a Search Term
Searching for Data by Entering a MongoDB Query
Filtering Records by Selecting Column Values
Filtering Records by Selecting Columns
Searching data records by Entering a MongoDB Query