INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

CR newbee

CR newbee

(OP)
Is it possible to write the query code below in CRXI as it is written? if so, how?

[Select *
from LMGHRDB.lm_ghr.EMPLOYEE
left join LMGHRDB.lm_ghr.EMPLOYEECONTACT
ON EMPLOYEE.EMPLOYEE = EMPLOYEECONTACT.EMPLOYEE
AND EMPLOYEECONTACT.CONTACTMETHOD = 1
AND EMPLOYEECONTACT.[DESCRIPTION] IN ('Work', 'Work Phone')
left join LMGHRDB.lm_ghr.EMPLOYEEBENEFIT
ON EMPLOYEEBENEFIT.EMPLOYEE = EMPLOYEE.EMPLOYEE
and EMPLOYEEBENEFIT.HRORGANIZATION = EMPLOYEE.HRORGANIZATION
AND EMPLOYEEBENEFIT.DELETEFLAG = 0x00000000000000000000000000000000
and EMPLOYEEBENEFIT.BENEFITPLAN in ('STD BUY UP', 'STD CORE','LTD CORE', 'LTD BUY UP', 'LTD MGR', 'LTD EXEC PHYS')
and EMPLOYEEBENEFIT.STATUS = 6
left join LMGHRDB.lm_ghr.WORKASSIGNMENTEXPORT
on WORKASSIGNMENTEXPORT.EMPLOYEE = EMPLOYEE.EMPLOYEE
and WORKASSIGNMENTEXPORT.HRORGANIZATION= EMPLOYEE.HRORGANIZATION
and WORKASSIGNMENTEXPORT.WORKASSIGNMENT = EMPLOYEE.PRIMARYWORKASSIGNMENT
and WORKASSIGNMENTEXPORT.ACTIONTYPE = 1
left join LMGHRDB.lm_ghr.WORKASSIGNMENT
on EMPLOYEE.EMPLOYEE = WORKASSIGNMENT.EMPLOYEE
and EMPLOYEE.HRORGANIZATION = WORKASSIGNMENT.HRORGANIZATION
and EMPLOYEE.PRIMARYWORKASSIGNMENT = WORKASSIGNMENT.WORKASSIGNMENT
AND WORKASSIGNMENT.DELETEFLAG = 0x00000000000000000000000000000000
left join LMGHRDB.lm_ghr.EMPLOYEETHIRDPARTYPAYROLL
on EMPLOYEE.HRORGANIZATION = EMPLOYEETHIRDPARTYPAYROLL.HRORGANIZATION
and EMPLOYEE.EMPLOYEE = EMPLOYEETHIRDPARTYPAYROLL.EMPLOYEETHIRDPARTYPAYROLL
AND EMPLOYEETHIRDPARTYPAYROLL.DELETEFLAG = 0x00000000000000000000000000000000
left join LMGHRDB.lm_ghr.HRORGANIZATIONUNIT
on HRORGANIZATIONUNIT.HRORGANIZATION = WORKASSIGNMENT.HRORGANIZATION
and HRORGANIZATIONUNIT.HRORGANIZATIONUNIT = WORKASSIGNMENT.HRORGANIZATIONUNIT
left join LMGHRDB.lm_ghr.HRLOCATION
on HRLOCATION.HRLOCATION = WORKASSIGNMENT.LOCATION
left join LMGHRDB.lm_ghr.POSITION
on POSITION.HRORGANIZATION = EMPLOYEE.HRORGANIZATION
and POSITION.POSITION = WORKASSIGNMENT.POSITION
left join LMGHRDB.lm_ghr.USERFIELD_STORAGE
on USERFIELD_STORAGE.UFSUNIQUEID = POSITION.UNIQUEID
AND USERFIELD_STORAGE.UFSFIELDNAME = 'TechShiftDiff'
AND USERFIELD_STORAGE.UFSCLASSNAME = 'Position'
left join LMGHRDB.lm_ghr.EMPLOYEEADDRESS
on EMPLOYEEADDRESS.EMPLOYEE = EMPLOYEE.EMPLOYEE
and EMPLOYEEADDRESS.EMPLOYEEADDRESS = EMPLOYEE.USEFORMAILING
where EMPLOYEE.RELATIONSHIPSTATUS = 'ACTIVE'
and EMPLOYEE.DELETEFLAG = 0x00000000000000000000000000000000][/code]

RE: CR newbee

Use a command as your data source.
Paste your sql in there.
Ian

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close