Examlex
Figuer:
CUSTOMER In table CUSTOMER, CID is the primary key (Customer ID) .
RENTALS In the table RENTALS, RTN provides the rental number (the primary key) , CID is the customer's unique id, PICKUP is the city where the car was picked up, and Return is the city where the car was returned.
RENTCOST RENTCOST shows the base cost of renting a given MAKE for one day.
CITYADJ If the return city of table RENTALS is the one listed in table CITYADJ, the cost of the rental is multiplied by FACTOR and by DAYS shown in table RENTLENGTH below.
RENTLENGTH RENTLENGTH shows the number of days for the rental number (RTN) shown in table RENTALS. In a database used in reality, this table would be merged with the RENTALS table.
-SELECT MAKE FROM RENTALS,CUSTOMER
WHERE RENTALS.CID = CUSTOMER.CID
AND RESID_CITY = 'HEMET'
GROUP BY MAKE
HAVING COUNT (DISTINCT RENTALS.CID) =
(SELECT COUNT(*) FROM CUSTOMER
WHERE RESID_CITY = 'HEMET')
The execution of this query produces the following number of rows:
Law of Effect
Law stating that if an action is followed by a pleasurable consequence, it will tend to be repeated, and if followed by an unpleasant consequence, it will tend not to be repeated.
Thorndike
An American psychologist who developed the law of effect and is known for his work in learning theory and educational psychology.
Operant Conditioning
A type of learning where behavior is controlled by consequences, including rewards for positive actions and punishments for negative actions.
Reinforcement
A concept in behavioral psychology where a behavior becomes more likely to occur due to the consequence that follows it.
Q1: (Access)UPDATE View1 SET MAKE = 'NISSAN',Cregion =
Q10: One important reason for documenting design decisions
Q14: A _ is a procedural language with
Q17: The date data type is not standard
Q18: Since PL/SQL is a block structured language,all
Q23: We want to have the data for
Q30: Each operator of relational algebra transforms one
Q34: Using the extended cross product operator on
Q49: In an ERD that conforms to the
Q66: The execution of the ORACLE SQL command