Suppose a simple query involving professor, asst professor and to find if both can be available before and at a mentioned date?



Suppose a simple query involving professor, asst professor and to find if both can be available befo..

Answer / Moh Sharif Khan

To check the availability of both Professor and Asst. Professor before and at a certain date, you would need to query their schedules. Here is a simplified example in PeopleSoft SQL (PSQL):nn```sqlnSELECT p.employee_id AS professor_id,n ap.employee_id AS asst_professor_id,n p.effective_start_date,n p.effective_end_date,n ap.effective_start_date,n ap.effective_end_date,n (p.effective_end_date - p.effective_start_date) AS professor_duration,n (ap.effective_end_date - ap.effective_start_date) AS asst_professor_duration,n p.effect_type,n ap.effect_typenFROM ps_persons pnJOIN ps_persons ap ON p.employee_id = 'PROF' AND ap.employee_id = 'AP' -- replace with actual professor and asst professor employee IDsnWHERE (p.effective_end_date > date 'your_date') AND (ap.effective_end_date > date 'your_date');```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PeopleSoft General Interview Questions

You are a PeopleSoft Partner and wish to get information on database performance benchmark ( or something like this)Where would you look for the info ?

1 Answers  


What are the differences between state and temp records?

1 Answers  


How to test an application engine program in 8.8?

1 Answers  


Explain differences between state and temp records?

1 Answers  


What are the different ways of setting up an hrms system to make it position driven and where is this setup done?

1 Answers  


Which command shuts down an application server domain using a “forced” shutdown method?

1 Answers  


Explain about hrms foundation tables sequencing?

1 Answers  


My Asst. Manager approves some document; She uses some screens which presents her with all the data. What she do to minimize the data?

1 Answers  


Define standalone rowset?

1 Answers  


What are all stored in System Catalog?

1 Answers  


Which three peoplesoft tables the db user mentioned in connect id should have permission?

1 Answers  


Please differentiate between translate, processing, control and transaction tables?

1 Answers  


Categories
  • PeopleSoft HRMS Interview Questions PeopleSoft HRMS (83)
  • PeopleSoft Financials Interview Questions PeopleSoft Financials (27)
  • PeopleSoft Administration Interview Questions PeopleSoft Administration (181)
  • PeopleSoft Tools Interview Questions PeopleSoft Tools (176)
  • PeopleSoft Interfaces Interview Questions PeopleSoft Interfaces (58)
  • Internet EBusiness Interview Questions Internet EBusiness (19)
  • PeopleSoft Implementation Interview Questions PeopleSoft Implementation (142)
  • PeopleSoft General Interview Questions PeopleSoft General (385)
  • PeopleSoft AllOther Interview Questions PeopleSoft AllOther (60)