Click here to Skip to main content
15,883,883 members
Home / Discussions / Database
   

Database

 
Questionalphanumeric number generation Pin
AMRITESH ASTHANA11-Sep-14 1:43
AMRITESH ASTHANA11-Sep-14 1:43 
AnswerRe: alphanumeric number generation Pin
Eddy Vluggen11-Sep-14 3:02
professionalEddy Vluggen11-Sep-14 3:02 
AnswerRe: alphanumeric number generation Pin
George Jonsson13-Sep-14 8:19
professionalGeorge Jonsson13-Sep-14 8:19 
GeneralRe: alphanumeric number generation Pin
AMRITESH ASTHANA14-Sep-14 0:06
AMRITESH ASTHANA14-Sep-14 0:06 
GeneralRe: alphanumeric number generation Pin
George Jonsson14-Sep-14 0:12
professionalGeorge Jonsson14-Sep-14 0:12 
Questioncreate a folder in a file server using xp_create_subdir Pin
Member 128472110-Sep-14 16:37
Member 128472110-Sep-14 16:37 
AnswerRe: create a folder in a file server using xp_create_subdir Pin
Mycroft Holmes14-Sep-14 5:45
professionalMycroft Holmes14-Sep-14 5:45 
QuestionEmployee Year Calculation Pin
Jassim Rahma9-Sep-14 2:26
Jassim Rahma9-Sep-14 2:26 
Hi,

I have employees table with date_of_join field

and I have employee_leaves table with the following fields:

employee_id
leave_from
leave_to
total_days

the employee joined on 15 Feb 2011

I want to have a query showing the cound of leaves for every employee years based on his date_of_join

for example, if the employee joined on 15 Feb 2011 then the result will be like this:

Feb 2011 to feb 2012 ---- totals days: 21
Feb 2012 to feb 2013 ---- totals days: 26
Feb 2013 to feb 2014 ---- totals days: 8

where Feb to feb is the employee year so it's from 15 Feb to 14 Feb every year

can anyone help please?


Technology News @ www.JassimRahma.com

QuestionRe: Employee Year Calculation Pin
Eddy Vluggen9-Sep-14 2:59
professionalEddy Vluggen9-Sep-14 2:59 
AnswerRe: Employee Year Calculation Pin
Jassim Rahma9-Sep-14 3:02
Jassim Rahma9-Sep-14 3:02 
GeneralRe: Employee Year Calculation Pin
Eddy Vluggen9-Sep-14 8:43
professionalEddy Vluggen9-Sep-14 8:43 
SuggestionRe: Employee Year Calculation Pin
Kornfeld Eliyahu Peter9-Sep-14 10:38
professionalKornfeld Eliyahu Peter9-Sep-14 10:38 
QuestionRe: Employee Year Calculation Pin
Eddy Vluggen10-Sep-14 10:07
professionalEddy Vluggen10-Sep-14 10:07 
AnswerRe: Employee Year Calculation Pin
Kornfeld Eliyahu Peter10-Sep-14 10:20
professionalKornfeld Eliyahu Peter10-Sep-14 10:20 
QuestionMySQL CREATE EVENT Question Pin
Jassim Rahma8-Sep-14 23:08
Jassim Rahma8-Sep-14 23:08 
AnswerRe: MySQL CREATE EVENT Question Pin
Eddy Vluggen9-Sep-14 8:51
professionalEddy Vluggen9-Sep-14 8:51 
QuestionArabic langauge not display when i make search by arabic langauge why Pin
ahmed_sa5-Sep-14 20:44
ahmed_sa5-Sep-14 20:44 
AnswerRe: Arabic langauge not display when i make search by arabic langauge why Pin
Bernhard Hiller7-Sep-14 22:25
Bernhard Hiller7-Sep-14 22:25 
AnswerRe: Arabic langauge not display when i make search by arabic langauge why Pin
Richard Deeming8-Sep-14 2:02
mveRichard Deeming8-Sep-14 2:02 
QuestionSelect records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Ambertje4-Sep-14 0:07
Ambertje4-Sep-14 0:07 
AnswerRe: Select records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Chris Quinn4-Sep-14 0:13
Chris Quinn4-Sep-14 0:13 
GeneralRe: Select records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Ambertje4-Sep-14 1:40
Ambertje4-Sep-14 1:40 
AnswerRe: Select records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Eddy Vluggen4-Sep-14 0:31
professionalEddy Vluggen4-Sep-14 0:31 
GeneralRe: Select records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Ambertje4-Sep-14 1:41
Ambertje4-Sep-14 1:41 
QuestionRe: Select records between day, time 05:00:00 and day+1 until time 05:00:00 Pin
Richard MacCutchan4-Sep-14 6:19
mveRichard MacCutchan4-Sep-14 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.