Menu
Amazon DynamoDB
Developer Guide (API Version 2012-08-10)

Step 3: Query the Data

Topics

    In this step, you will try some simple queries against the tables that you created, using the DynamoDB console.

    1. Open the DynamoDB console at https://console.aws.amazon.com/dynamodb/.

    2. In the navigation pane, choose Tables.

    3. In the list of tables, choose Reply.

    4. Choose the Items tab to view the data that you loaded into the table.

    5. Choose the data filtering link, located just below the Create item button.

      When you do this, the console reveals a data filtering pane.

      Data filtering pane
    6. In the data filtering pane, do the following:

      1. Change the operation from Scan to Query.

      2. For the Partition key, enter the value Amazon DynamoDB#DynamoDB Thread 1.

      3. Choose Start. Only the items that match your query criteria are returned from the Reply table.

    7. The Reply table has a global secondary index on the PostedBy and Message attributes. You can use the data filtering pane to query the index. Do the following:

      1. Change the query source from this:

        [Table] Reply: Id, ReplyDateTime

        to this:

        [Index] PostedBy-Message-Index: PostedBy, Message

      2. For the Partition key, enter the value User A.

      3. Choose Start. Only the items that match your query criteria are returned from PostedBy-Message-Index.

    Take some time to explore your other tables using the DynamoDB console:

    • ProductCatalog

    • Forum

    • Thread