Jump to content
  • 0
Sign in to follow this  
DoDoTwin

Return ID depending of variables

Question

Hello.

I have 2 tables: "Property" and "Lease".

1 property can have N leases.

1 lease have a Start and End dates and also a lease amount.

I woud like to return the current lease (Lease ID and the lease amount)

For example, there are 2 leases:

(1) Jan 1st 2012 to December 31st 2014 for $1000 per month

(2) Jan 1st 2015 to December 31st 2017 for $1100 per month

Today is November 9th 2016. So at the date of today the lease to return is lease #2 and $1100 for the lease amount.

How is it possible to return a row and some data depending of criteria? Datapages? Views? Pivot tables?

 

Thanks


Dorian

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi MayMusic,


Thanks for your answer.

Where in the Datapages can I add the SQL syntax.

I haven't found yet anything in the Caspio Documentation about that.

Once I know where to add the sql syntax, it should be easy.

Thanks

Dorian

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...