473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

transelate this scripts

2
SELECT HIER.Initial_State,HIER.Depth, HR_GENERAL.DECODE_ORGANIZATION(HIER.organization_i d_child) LABEL,''Icon,

HR_GENERAL.DECODE_ORGANIZATION(HIER.organization_i d_child) Data

FROM (SELECT 1 Initial_State, level Depth,POSE.ORGANIZATION_ID_CHILD

FROM per_org_structure_elements POSE

WHERE POSE.ORG_STRUCTURE_VERSION_ID = (SELECT POSV.ORG_STRUCTURE_VERSION_ID

FROM PER_ORG_STRUCTURE_VERSIONS POSV, PER_ORGANIZATION_STRUCTURES POS

WHERE

POS.NAME = 'NCB Hierarchy'

AND POSV.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))

AND posv.ORGANIZATION_STRUCTURE_ID = pos.ORGANIZATION_STRUCTURE_ID

AND POSV.DATE_FROM = (SELECT MAX(POSV1.DATE_FROM)

FROM PER_ORG_STRUCTURE_VERSIONS POSV1

WHERE POSV1.ORGANIZATION_STRUCTURE_ID = POSV.ORGANIZATION_STRUCTURE_ID))

START WITH POSE.ORGANIZATION_ID_PARENT = (TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_I D')))

CONNECT BY PRIOR POSE.ORGANIZATION_ID_CHILD = POSE.ORGANIZATION_ID_PARENT) HIER







SELECT 1 Initial_State, level Depth,POSE.ORGANIZATION_ID_CHILD

FROM per_org_structure_elements POSE

WHERE POSE.ORG_STRUCTURE_VERSION_ID = (SELECT POSV.ORG_STRUCTURE_VERSION_ID

FROM PER_ORG_STRUCTURE_VERSIONS POSV, PER_ORGANIZATION_STRUCTURES POS

WHERE

POS.NAME = 'NCB Hierarchy'

AND POSV.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))

AND posv.ORGANIZATION_STRUCTURE_ID = pos.ORGANIZATION_STRUCTURE_ID

AND POSV.DATE_FROM = (SELECT MAX(POSV1.DATE_FROM)

FROM PER_ORG_STRUCTURE_VERSIONS POSV1

WHERE POSV1.ORGANIZATION_STRUCTURE_ID = POSV.ORGANIZATION_STRUCTURE_ID))

START WITH POSE.ORGANIZATION_ID_PARENT = (TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_I D')))

CONNECT BY PRIOR POSE.ORGANIZATION_ID_CHILD = POSE.ORGANIZATION_ID_PARENT
Jul 14 '07 #1
3 3988
romell
2
SELECT HIER.Initial_State,HIER.Depth, HR_GENERAL.DECODE_ORGANIZATION(HIER.organization_i d_child) LABEL,''Icon,

HR_GENERAL.DECODE_ORGANIZATION(HIER.organization_i d_child) Data

FROM (SELECT 1 Initial_State, level Depth,POSE.ORGANIZATION_ID_CHILD

FROM per_org_structure_elements POSE

WHERE POSE.ORG_STRUCTURE_VERSION_ID = (SELECT POSV.ORG_STRUCTURE_VERSION_ID

FROM PER_ORG_STRUCTURE_VERSIONS POSV, PER_ORGANIZATION_STRUCTURES POS

WHERE

POS.NAME = 'NCB Hierarchy'

AND POSV.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))

AND posv.ORGANIZATION_STRUCTURE_ID = pos.ORGANIZATION_STRUCTURE_ID

AND POSV.DATE_FROM = (SELECT MAX(POSV1.DATE_FROM)

FROM PER_ORG_STRUCTURE_VERSIONS POSV1

WHERE POSV1.ORGANIZATION_STRUCTURE_ID = POSV.ORGANIZATION_STRUCTURE_ID))

START WITH POSE.ORGANIZATION_ID_PARENT = (TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_I D')))

CONNECT BY PRIOR POSE.ORGANIZATION_ID_CHILD = POSE.ORGANIZATION_ID_PARENT) HIER







SELECT 1 Initial_State, level Depth,POSE.ORGANIZATION_ID_CHILD

FROM per_org_structure_elements POSE

WHERE POSE.ORG_STRUCTURE_VERSION_ID = (SELECT POSV.ORG_STRUCTURE_VERSION_ID

FROM PER_ORG_STRUCTURE_VERSIONS POSV, PER_ORGANIZATION_STRUCTURES POS

WHERE

POS.NAME = 'NCB Hierarchy'

AND POSV.BUSINESS_GROUP_ID = TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_ID '))

AND posv.ORGANIZATION_STRUCTURE_ID = pos.ORGANIZATION_STRUCTURE_ID

AND POSV.DATE_FROM = (SELECT MAX(POSV1.DATE_FROM)

FROM PER_ORG_STRUCTURE_VERSIONS POSV1

WHERE POSV1.ORGANIZATION_STRUCTURE_ID = POSV.ORGANIZATION_STRUCTURE_ID))

START WITH POSE.ORGANIZATION_ID_PARENT = (TO_NUMBER(FND_PROFILE.VALUE('PER_BUSINESS_GROUP_I D')))

CONNECT BY PRIOR POSE.ORGANIZATION_ID_CHILD = POSE.ORGANIZATION_ID_PARENT
Jul 14 '07 #2
debasisdas
8,127 Expert 4TB
since you have posted a question in the article section it is being moved to Oracle Forum.
Jul 14 '07 #3
debasisdas
8,127 Expert 4TB
what exactly is your question

please follow posting guidelines .

please post your questions clearly

do not expect others to guess and solve your problem.
Jul 14 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Michele Simionato | last post by:
Is there a simple way to get the path to the Python Tools/scripts directory? Currently I have defined by hand an environment variable such as ...
9
by: Jeff Wagner | last post by:
I have a project of converting numerous DOS cmd shell scripts to Python. Is there a tutorial to getting started? Thanks, Jeff
2
by: RJ | last post by:
We currently send product releases to our customers, and often have to include scripts that need to be ran on the Oracle databases (also do it for SqlServer customers, but we use a different set of...
6
by: Alex Vilner | last post by:
Hello! We have a set of individual .SQL scripts which we would like to execute against a MS SQL Server 2000. Is there any way to have ISQL utility (or any other means) to execute all of them...
7
by: ergobob | last post by:
Hello, I have two small PHP scripts running on a test page at: http://www.usernomics.com/ergonomic-products-accessories5.html Both scripts work perfectly when there is one script on a page....
8
by: Mike Nau | last post by:
We currently have all of our schema and testdata laid out in a large set of sql scripts. It currently takes about 15 minutes to run the scripts on a Dual 1.7ghz box with 1gb of ram. Does...
2
by: Dave Hughes | last post by:
Just noticed something rather annoying after upgrading my test box (a Linux server running DB2 UDB v8 for LUW) to fixpak 11 (for reference it was previously on fixpak 7). In the past I've relied...
1
by: ponsibabu | last post by:
We have several scripts for sale. We are selling them at reasonable prices and willing to work around your budget. For more information please contact totascriptz@yahoo.com with "Scripts" as...
8
by: Alan Isaac | last post by:
Suppose I have a directory `scripts`. I'd like the scripts to have access to a package that is not "installed", i.e., it is not on sys.path. On this list, various people have described a variety...
3
by: shapper | last post by:
Hello, I am working on a web site where I have a master page. Most web site pages use this master page as base. Some scripts are used in all pages ... other just in a few pages. Should I load...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.