DataFakery Studio
🏠 Home💬Support
  • What is DataFakery Studio?
    • 🚀What's new in 2025.1
      • Changelog Archive
    • Editions / Licenses
    • Installation requirements
    • Setup guide
    • 👩‍💻Roadmap
  • Guides
    • Creating a DataFakery Project
    • Anonymize Microsoft SQL Server Data Source
    • Anonymize PostgreSQL Database
    • Anonymize MySQL Database
    • Docker Integration
    • Export to CSV File
  • Fundamentals
    • Project
    • Data Sources
    • Data Models
      • Virtual Tables
    • Generators / Fakers
      • Strings
      • Numbers
      • Date & Time
      • Custom Expression
      • Text Pattern
      • Regular expressions
      • Foreign Keys Generator
      • Table Lookups
      • Default Values
      • Sequence Generator
      • Constant Value
      • List Values
    • Randomizer Options
    • Optimizations
    • Data Exploration
  • Extras
    • Data Storage
    • Keyboard Shortcuts
    • Appearance / Theme
  • Support
    • Contact Support
    • Troubleshooting
Powered by GitBook
On this page
  • Use Cases
  • Example: Using Virtual Tables for City Name Mapping

Was this helpful?

  1. Fundamentals
  2. Data Models

Virtual Tables

PreviousData ModelsNextGenerators / Fakers

Last updated 11 months ago

Was this helpful?

The Virtual Tables feature in DataFakery Studio allows you to create and manage tables for mapping or auxiliary values, facilitating a variety of use cases such as mapping a large list of IDs to new values and ensuring that anonymized values correlate with IDs and labels. Here’s how to utilize the virtual tables effectively.

Creating and Managing Virtual Tables

  • Add Table: Click this button to create a new virtual table.

  • Edit Table: Select this option to modify the existing virtual table.

  • Delete Table: Use this button to remove an unwanted virtual table.

  • Table Export Options: Configure options for exporting your virtual tables.

Importing Data into Virtual Tables

  • Import Tables

    • Use this option to import data into your virtual tables.

    • Import Excel (.xlsx): Import content from an Excel file into the virtual table.

    • Import CSV (.csv): Import content from a CSV file into the virtual table.

    • Note: Ensure the first row of your file includes the column titles for proper mapping.

Steps to Create and Import Virtual Tables

  1. Create Virtual Tables

    • Click on Add Table in the Virtual Tables section of the ribbon toolbar.

    • Enter a name for your new virtual table in the Virtual Table Editor.

  2. Import Data:

    • Click on Import Tables in the Data Model Browser.

    • Choose to import from Excel or CSV.

    • Select your file and ensure the first row contains the column titles for proper alignment.

  3. Edit and Manage Data:

    • After importing, you can edit the data directly in the Virtual Table Editor.

    • Save your changes by clicking Save and Close.

Use Cases

  • Use virtual tables to map large lists of IDs to new values.

  • Ensure anonymized values correlate accurately with IDs and labels, which is particularly useful for maintaining data integrity and relationships.

Example: Using Virtual Tables for City Name Mapping

In this example, we will load the city name based on the phone number area code using a virtual table named CityMappingTable. This process involves creating the virtual table, importing the mapping data, and then utilizing the table to perform the mapping.

By utilizing virtual tables, you can efficiently manage auxiliary data, perform complex mappings, and ensure that your data anonymization processes maintain the necessary relationships and consistency.

Manage your Virtual Tables