ComenzarEmpieza gratis

Insert and query data in Table storage

Cipher Coffee wants to store simple, structured data for its loyalty program without the overhead of a full database. Your task is to use Azure Table Storage to create a table, insert sample loyalty entities, and run a query to retrieve customer records efficiently. You will insert entities using different PartitionKeys and RowKeys, then query by PartitionKey to validate fast lookups.

Este ejercicio forma parte del curso

Develop for Azure Storage

Ver curso

Instrucciones del ejercicio

In your Storage account, open Data storageTables and create a table named "LoyaltyProfiles".,Insert two entities that share PartitionKey "CustomerA" and use distinct RowKey values "1001" and "1002".,Insert a third entity using PartitionKey "VIP" and RowKey "2001".,Query the table with the filter PartitionKey eq 'CustomerA' to return only the two "CustomerA" entities. Screenshot showing the Azure Portal *Tables* view with a table named LoyaltyProfiles, the Add entity panel, and a query input filtering by PartitionKey.

Ejercicio interactivo práctico

Pon en práctica la teoría con uno de nuestros ejercicios interactivos

Empezar ejercicio