Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to give where Condition

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to give where Condition
 Login/Join
 
<iamvijay>
posted
Hi

I'm new to WebFocus,

i'm not getting how to go forword, I'm giving the complete scenario, plz help me,

There are Three Tables,

1. Department
Fields � DeptID (PK)
DeptName

2. Employee
Fields - EmpID (PK)
EmpName
JoinDate

3. EmployeeDetails
Fields � EmpID (FK)
DeptID (FK)
DeptJoinDate
TerminationDate
TerminationReason

I've to create a single report, which has below sections �

1. All the Employees
I've to display all the employees for each Department if TerminationDate and TerminationReason is Null.

2. New Employees since a MM/DD/YYYY.
I�ve to display employees for each Department where DeptJoinDate >= MM/DD/YYYY and TerminationDate and TerminationReason is Null.

3. Members Transferred to Department since a date.

An Employee �Transferred� means EmployeeDetails Table will have atleast two records � one with TerminationDate field has a value and another record with a different DeptID and TerminationDate is Null.

Here I�ve to select all the Employees associated with a Department (there exists a record with TerminationDate < MM/DD/YYYY and Another record with DeptJoinDate >= MM/DD/YYYY) And JoinDate < MM/DD/YYYY

4. Terminated Members to Department since MM/DD/YYYY

An Employee �Terminated� means EmployeeDetails Table should have only one record with TerminationDate field has a value.

Here I�ve to select all the Employees with that Department where JoinDate <= MM/DD/YYYY And TerminationDate <= MM/DD/YYYY and there does not exist another record where DeptJoinDate >= MM/DD/YYYY

5. Members transferred from a Department since MM/DD/YYYY

Select all Employees associated with that Department where JoinDate <= MM/DD/YYYY And DeptJoinDate <= MM/DD/YYYY And TerminationDate < MM/DD/YYYY

I've created a view, which returns all the record irrespective of any above condition. I've to give above condition in the single where Condition in the WebFocus tool.

I've one more doubt,

How to display date in DD/MM/YYYY HH:MM AM/PM format?

Thanx in advance

Regards

Vijay
 
Report This Post
Guru
posted Hide Post
Hi Vijay-
I think what you are looking for is a JOIN. Take a look in your documentation for a good discussion of this topic.
You also should be able to find information in the docuemnation to help you display the date and time.
Welcome to FOCUS.
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to give where Condition

Copyright © 1996-2020 Information Builders