Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8644

Re: Calculation Logic

$
0
0

Hi Vasu,

 

do you mean that you want to SELECT data from a table which is according to your description? Then something like:

 

SELECT DISTINCT emp_id FROM table WHERE from_date <= current_date AND
                                                                                to_date >= current_date.

 

should do the job.

 

According to the data you may or may not need the DISTINCT in the SELECT statement.

 

Best regards,
Kilian.


Viewing all articles
Browse latest Browse all 8644

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>