oracle - What would be the SQL query for this? -


list name of clients have viewed property based on uml graph

select [c-name]     [client]     join  [property]     on client.clientid = property.propertyid  

enter image description here

if i've understood uml model can't, view-appointment needs clientid , propertyid adding.

then can do, give clients have appointment (obviously adding where on date column give future/past appointments):

select [c-name] [client] inner join [view-appointment] on client.clientid = view-appointment.clientid; 

if want property details in query need inner join:

inner join property on property.propertyid = view-appointment.propertyid 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -