Questions tagged [derived-attribute]

5 questions
1
vote
0 answers

Core Data Derived Attributes with a sum function

I have two entities in my app: User & Expense. A user has many expenses. Expense as an attribute amount (of type Int32). I added a derived attribute expensesCount (of type Int16) on the user to count the number of expenses, using the derivation…
alpennec
  • 1,864
  • 3
  • 18
  • 25
1
vote
1 answer

Core Data derived attribute not calculated properly on first use?

I have Company entity in Core Data that has relationship one-to-many Activities I've added there derived property to Company activities.@count but then accessing in SwiftUI view this property gives me invalid result. It usually works ok but on…
Michał Ziobro
  • 10,759
  • 11
  • 88
  • 143
0
votes
2 answers

How to create a derived attribute in SQL (Oracle Application Express)

I am trying to create a derived attribute (Number of seasons derived from first season). I think I need to create a view, but I am not sure. Below is my code: Create Table Officials( Fname varchar2(15) not null, Lname varchar2(15) not null, Sport_ID…
-2
votes
1 answer

What can't I print out the value of a instance attribute derived from other instance attributes?

I'm pretty new to Python and I would be really grateful if someone could help me out with this issuer I'm facing. This is my code: class Player: def __init__(self, name): self.name = name self.info = {} self.info_count =…
-3
votes
1 answer

SQLITE - dealing with derived attributes

I am a CS student trying to build an app to store the grades of my dear colleagues. To do that I will be using SQLite to store the grades. In my database, there will be a table called Student (each one of my colleagues), a table Course (the courses…