Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> its urgent sql , BIG QUERY

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: its urgent sql , BIG QUERY
 max  Posted: Aug 13, 2008 01:34:50 AM

 Total Post: 14
 Joined: Feb, 2008






 i want those name of the employees who have worked together in a month or in year.
e.g.

name joining_date leaving date

max 1-july-2008 31-aug-2008
hitman 5-july-2008 5-sept-2008
stone 10-july-2008 10-sept-2008
ruchi 15-july-2008 15-sept-2008

so i want the result of days of those employees who have worked together
so the result wud be like dis
47 days acording to to above table
plzzzzz its urgent

thanks
nishant



 Vish
Posted: Aug 13, 2008 02:20:26 AM  

 Total Post: 129
 Joined: Jan, 2007






 
Dear Nishant

Please let me know what you are looking at output.
You want list of employees or no of days he worked?

Vishant

 max
Posted: Aug 19, 2008 05:04:45 AM  

 Total Post: 14
 Joined: Feb, 2008






 
dear vishant,
actually i have solved dat query but actually i did by this

select minre_Date) - max(leave_date)
from employees;

thanks anyway for your reply
regards

nishant

 max
Posted: Aug 19, 2008 05:05:03 AM  

 Total Post: 14
 Joined: Feb, 2008






 
dear vishant,
actually i have solved dat query but actually i did by this

select min(hire_Date) - max(leave_date)
from employees;

thanks anyway for your reply
regards

nishant

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Vinoth Kumar364
  Gopu Gopi340
  Gitesh Trivedi322
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software