Databases
Database Opertions (CRUID)
Last updated
Database Opertions (CRUID)
Last updated
Steel Wheels utilizes a straightforward Enterprise Resource Platform (ERP) to manage various Business Units (BUs) including Human Resources, Marketing, Finance, Supply Chain, and others. The upcoming workshops will demonstrate steps that illustrate CRUD (Create, Read, Update, Insert, Delete) operations:
Create operations add new records to a database. This might involve inserting a new customer profile, product listing, or transaction record. In SQL, this is typically done using the INSERT statement, while in NoSQL databases, it might use methods like insertOne() or save().
Read operations retrieve existing data from the database. This could be fetching a single record by its unique identifier or querying multiple records based on specific criteria. SQL uses SELECT statements for this purpose, while NoSQL databases might use find() or get() methods.
Update operations modify existing records in the database. This could involve changing a customer's address, updating a product's price, or modifying any stored information. SQL uses the UPDATE statement, while NoSQL databases might use methods like updateOne() or save() on an existing document.
Delete operations remove records from the database. This might involve permanently removing a user account or archiving old data. SQL uses the DELETE statement, while NoSQL databases typically use methods like deleteOne() or remove().
Slowly Changing Dimensions (SCDs) are a data warehousing concept that addresses how to handle changes to dimension data over time. In a data warehouse, dimensions contain descriptive attributes that are used for reporting and analysis.
Key aspects of SCDs include:
Type 1: Simply overwrites old data with new data, keeping no history
Type 2: Maintains historical data by adding new rows with effective dates/flags
Type 3: Adds previous value columns to track limited history
Type 4: Uses separate historical tables to store changes
Type 6: Combines approaches (typically Types 1, 2, and 3)
SCDs are crucial for maintaining data integrity in business intelligence systems when dimensional attributes change, allowing organizations to accurately analyze data across different time periods.