Oracle HCM Cloud API - Get Workers by HireDate - oracle

How can i retrieve workers who have a particular hire date?
`/hcmRestApi/resources/11.13.18.05/workers?q=HireDate='2011-11-01'&onlyData=true`
When i run the above in Postman, i get the following message:
URL request parameter q with value HireDate='2011-11-01' is not valid.
Any ideas how i can restrict worker data by HireDate or even CreationDate?!
Thanks in advance,
Zaf

I think the CreationDate field is not queryable.
However if you can use the HireDate then you can use "Like" or between query in the URL.
Example :
/hcmRestApi/resources/11.13.18.05/workers?q=CreationDate like '%2019-05-19%'
/hcmRestApi/resources/11.13.18.05/workers?q= HireDate between '2021-01-01' and '2021-01-01'
You can found more details about query parameters of Oracle Rest API in the following link :
enter link description here
Otherwise it will be a report that the responsible team will create for you and provide the corresponding API for it.

Related

How can I order by date in jpa query

Please I want to write a jpa query for this table: payment_transaction
I am making a http request with a list of taxpayer references (since it is unique). I want to get all last payment_transaction record for all taxpayers with taxpayer_reference in my http request list of taxpayer_reference using a single query. I know that: paymentTransactionRepository.findAllByTaxPayerReferenceIn(List<String> taxPayerReferences) will give me all the payment transaction records that has a taxPayerReference in the parameter I will pass but I want to get the last payment made by each taxPayerReference. I guess I should order by paymentDate in descending order and get the first record for each taxPayerReference as wellPS: In single jpa queryI don't know if that's possible. Please help me write the query. Thanks
You can try like below.
findByAgeOrderByLastnameDesc(Long age)
Which will be generated as below when you run
where x.age = ?1 order by x.lastname desc
For your particular example,
paymentTransactionRepository.findAllByTaxPayerReferenceInOrderByPaymentDateDesc(List<String> taxPayerReferences)
More examples on this available here

Query on Ali baba Cloud Billing API BOA

I was trying to get some data by using one of the api call QueryInstanceBill
The resulted JSON seems to be long and there is no date column to filter on how i got those many records.
Could someone here help me out
To be able to filter by date, The billing date only used when Granularity is DAILY,format: YYYY-MM-DD. Example 2020-07-29
You can also use the "BillingCycle" field in the request:
The billing cycle. Format: YYYY-MM. Example: 2020-07
Documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
QueryInstanceBill API returns data for billing cycle which is usually for a month (YYYY-MM)
If you want data for a particular date then in request parameter provide the value for field "BillingDate" in format: YYYY-MM-DD
and the value for field "Granularity" should be "DAILY"
Check out the documentation:
https://www.alibabacloud.com/help/doc-detail/100400.htm
Also, you can use OpenAPI Explorer, I have provided BillingCycle as "2019-10", BillingDate as "2019-10-15" and Granularity as "DAILY":
https://api.aliyun.com/#/?product=BssOpenApi&version=2017-12-14&api=QueryInstanceBill&params={%22RegionId%22:%22cn-hangzhou%22,%22Granularity%22:%22DAILY%22,%22BillingCycle%22:%222019-10%22,%22BillingDate%22:%222019-10-15%22}&tab=DEMO&lang=JAVA

Drill Through/ Drill Linking/ Drill Down using Pentaho Report Designer

I'm using Pentaho Report Designer Version: 8.0.0.0-28.
I have one summary report (1) and one detailed report (2).
Let's say I have this scenario:
I have these columns in
(1): Employees, Total hours
(2): Employees, Day, Total hours per day
I would like to make a link between (1) and (2) so if I click on Total hours for the employee 'John' from (1), it leads me to (2), showing Day and the Total of hours per day only for 'John'.
I wonder if it is possible to do that using the DRILLDOWN function, if yes, can you suggest me what to put in the parameters?
Also, is this possible if I publish both reports on the User Console?
Any help will be appreciated.
It is possible, using URL:
-Right click on Total Hours
-Click on Hyperlink
-Put the link of the detailed report as Path
-Choose Employee as parameter value. (I already had a parameter that filters the report based on the name of the employee)
-Then publish the report in order to make it function in the User Console.

Is there a Hadoop/Hive setting that influences how column headers are returned?

semi-SQL literate QA guy here!
We're adding Hadoop/Hive integration into our product for a client. I've been given a build to test, and I'm running into a problem - the SQL statements I'm using are returning Hive table column headers in lowercase.
For example:
If my SQL is: "select FIRST_NAME from recipient_data;"
My query is returning: "first_name"
My product is case-sensitive, and the engineer helping me troubleshoot this issue says it seems to be a function of our Hadoop driver, and not anything our program is doing with the returned values. Is there a way to configure Hadoop/Hive to not lowercase the column headers it returns?

Retrieving number of distinct values in Parse?

Is there any Parse equivalent to the SQL statement, SELECT DISTINCT?
I have the tables: User, Group, Tag, and Post. Each user has posts and can create tags and groups. The Tag table contains the fields:
"name" String
"post" Pointer<Post>
"creator" Pointer<_User>
I am trying to make a cloud function to return the most popular tags to my Android app for an AutoCompleteTextView. I was thinking that I should just do something like a SELECT DISTINCT name query in Parse and order by descending, but you can't do that in Parse. Is there any workaround for this?
I saw that this post did not get an answer and that this post says to work out distinct values client-side.
Thanks
It's not implemented yet, check this answer on Parse.com, which you've mentioned it too:
https://parse.com/questions/retrieving-unique-values
The answer in following post is actually means: read all rows, select unique ones :)

Resources