Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 14th, 2005, 07:38 AM
Mavan Mavan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 Mavan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 6 sec
Reputation Power: 0
Hierarchical query

Hi,

I am developing report application using java. My requirement is:

The report should display different regions. Each region may contain multiple customer set. Each customer set may contain multiple Tech Group. Each Tech Group may contain multiple Role. Each role may contain multiple cost center. Each cost center may contain n-number of employees. Each employee categorized as billable, non-billable and partially billable. I have to count how many employees are billable, non-billable and partially billable.

Total of billable,non-billable,partially billable employees in a cost center and grand total in a region.

How to built sql query to fetch this data.

I am attaching report document with this mail.

Please give me response ASAP.

Reagrds

Praveen
Attached Files
File Type: zip REPORT.zip (36.6 KB, 127 views)

Reply With Quote
  #2  
Old July 14th, 2005, 07:58 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,917 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 3 Weeks 3 Days 14 h 35 m 22 sec
Reputation Power: 279
Post your table structures and some sample data (as a SQL script).

Reply With Quote
  #3  
Old July 14th, 2005, 08:22 AM
Mavan Mavan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 Mavan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 6 sec
Reputation Power: 0
sample data

Hi,

The report gets its data from three tables.

1.EMPLOYEE.
2.EMPHRDATA.
3.TIMECARD.

I will get region names from EMPHRDATA AND TIMECARD(based on the EMP_NO field).

Please find the attached sample data and script files for these tables.

Regards

Praveen

Reply With Quote
  #4  
Old July 14th, 2005, 08:32 AM
Mavan Mavan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 3 Mavan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 20 m 6 sec
Reputation Power: 0
Data files

Sorry, Please find the attached documents.

Regards

Praveen
Attached Files
File Type: zip DataScript.zip (3.9 KB, 231 views)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Hierarchical query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT