Derived attributes are calculated based on other attributes in the database, while stored attributes have values directly stored in the database.