How to achieve
Dear all,
I have a per_absence_attendances_v table, I'll pass number date to date and employee as a parameter.
Employees need final details to leave. (if leave are records continues then it should display as a single record only)
Need to display only leave Date, leave it to this day.
Ex: Emp latest leave details to 7779
Waiting offshore - April 10, 2015 to April 20, 2015 - 11j
Annual leave - 21 April 2015 to April 30, 2015-10 days
Annual leave - 1-May - 20 may 2015 2015 - 20 days
Then put them should come as below
Leave: leave-10 April 2015 to Date: May 20, 2015 (41 days)
Thank you
Maybe
with
absences in the
(select 7779 empno,' pending off ' descr, date ' 2015-04-10' day_from, '' 2015-04-20 day_till of all double union)
Select 7779, "Annual leave" date "2015-04-21', date ' 2015-04-30' of all the double union"
Select 7779, "Vacation," date "2015-05-01', date ' 2015-05-20' of all the double union"
Select 7780, "Annual leave" date "2015-05-11', date ' 2015-05-31 the Union double all the"
Select 7781, "Annual leave" date "2015-05-01', date ' 2015 - 05 - 10 minutes of union double all the"
Select 7781, "Annual leave" date "2015-05-11', date '' 2015-05-19 from all the double union"
Select 7781, "Annual leave" date "2015-05-21', date '' 2015-05-31 of the double"
)
Select distinct
EmpNo,
min (day_from) over (partition by empno, grp arrested by day_from
lines between unbounded preceding and following unlimited
) leave_from,.
Max (day_till) over (partition by empno, grp arrested by day_from
lines between unbounded preceding and following unlimited
) leave_to,.
Max (day_till) over (partition by empno, grp arrested by day_from
lines between unbounded preceding and following unlimited
) -
min (day_from) over (partition by empno, grp arrested by day_from
lines between unbounded preceding and following unlimited
) + 1 days_total
from (select empno,
day_from,
day_till,
cases where day_from = lag (day_till) over (partition by empno) arrested by day_from + 1
or day_till = lead (day_from) over (partition by empno order day_from) - 1
then 'G '.
end grp
absences
)
order by empno
EMPNO | LEAVE_FROM | LEAVE_TO | DAYS_TOTAL |
---|---|---|---|
7779 | 04/10/2015 | 20/05/2015 | 41 |
7780 | 11/05/2015 | 05/31/2015 | 21 |
7781 | 01/05/2015 | 19/05/2015 | 19 |
7781 | 21/05/2015 | 05/31/2015 | 11 |
should be combined with a tabibitosan method works in all cases (empno having more than one group of connected lines)
Concerning
Etbin
Tags: Database
Similar Questions
-
Is it possible to transfer videos from the iPod from someone else on my iPhone? How to achieve this?
Depends on the model of iPod exactly.
If the iPod is supported you can try using AirDrop: How to use with your iPhone, iPad or iPod touch - Apple Support AirDrop
If this is not the case, there are applications in the App Store that will allow you to send files, including videos taken with the iPod and who reside in the film to other devices.
https://iTunes.Apple.com/us/app/photo-transfer-app-easily/id365152940?Mt=8
Photo transfer app allows you to quickly copy pictures and videos from your iPhone, iPad, Mac or PC using your local wifi network.
You can't send videos that are stored by default Apple video App.
-
I had to replace my hard drive and need to reinstall Acrobat Pro. How to achieve this?
I had to replace my hard drive and need to reinstall Acrobat Pro. How to achieve this?
Hi Roger,
Please visit: http://www.adobe.com/downloads/other-downloads.html
I hope this helps.
Concerning
Megha Rawat
-
How to achieve this specific shadow effect?
Hi all
Does anyone know how to achieve this effect of specific shadow in InDesign: an instruction step by step, a plugin, etc.?
Kind regards
Kasyan
Kasyan,
I usually just use the base pen. I draw the object with a few clicks of the pen, fill it with whatever color, the hue value if you want, then use the settings more or less as below.
Mike
-
How to achieve substantive similar result
Hello
I am trying to get a background similar to this image for pictures of related art I.
Please tell us how to achieve this result in 5 of lightroom or photoshop elements 9, or if this is possible without both programs.
Thank you.
aaphrodite
Aphrodit, if you need assistance in understanding these tools, this tutorial of Julianne Kost explains how to use the graduated filter and adjustment brush in Lightroom. You can use together to create your desired effect:
-
How to achieve this using the sql query?
Hello gurus,
I have a table like this
now my result should be like thisid name 1 a 2 b 3 c 4 d 5 e 6 f 7 g 8 h 9 i 10 j 11 k 12 l 13 m
How to achieve by sql query?id name id name id name 1 a 6 f 11 k 2 b 7 g 12 l 3 c 8 h 13 m 4 d 9 i 5 e 10 j
Thank you and best regards,
friend
Edited by: most wanted! February 22, 2012 05:55Hello
Did you mean this:
with a as (select 1 id ,'a' name from dual union all select 2 id ,'b' name from dual union all select 3 id ,'c' name from dual union all select 4 id ,'d' name from dual union all select 5 id ,'e' name from dual union all select 6 id ,'f' name from dual union all select 7 id ,'g' name from dual union all select 8 id ,'h' name from dual union all select 9 id ,'i' name from dual union all select 10 id ,'j' name from dual union all select 11 id ,'k' name from dual union all select 12 id ,'l' name from dual union all select 13 id ,'m' name from dual ) select id_1 ,name_1 ,id_2 ,name_2 ,id_3 ,name_3 from ( select id id_1 ,name name_1 ,lead(id,5) over (order by id) id_2 ,lead(name,5) over (order by id) name_2 ,lead(id,10) over (order by id) id_3 ,lead(name,10) over (order by id) name_3 ,rownum r from a ) where r <=5 D_1 NAME_1 ID_2 NAME_2 ID_3 NAME_3 ---------------------- ------ ---------------------- ------ ---------------------- ------ 1 a 6 f 11 k 2 b 7 g 12 l 3 c 8 h 13 m 4 d 9 i 5 e 10 j
Kind regards
Peter
-
How to achieve this simple effect?
How to achieve this simple effect?
Hi guys,.
I just want to know what do you call the effect which the corners of the screen is blurred and darker, and how can we achieve?
See the video in this link www.youtube.com/watch?v=lHj83FRR11s.
Thank you in advance!
Use a solid layer of the color of your choice then add a mask and change his pen:
The effects coming from the photograph is called vignetting or vignnete
Another way is to add a bright spot and animated, but its more difficult, I hope it works
-
How to achieve on the common text shadow effect?
I saw recently that several Internet sites have normal text, but with a shadow effect... interesting how I achieve? is this with css? How?
With CSS, but it is not supported by all browsers.
H1 {}
font size: 2.5em;
color: #EAE4C4;
text-transform: capitalize;
margin-bottom: 1.5em;
/ * text-shadow * /.
text-shadow: #000 0.1em 0.1em 0.2em.
}Nancy O.
ALT-Web Design & Publishing
Web | Graphics | Print | Media specialists
www.Alt-Web.com/
www.Twitter.com/ALTWEB
www.Alt-Web.blogspot.com -
How to achieve 360 degree display using arctangent of structure of the case?
I have the sine and cosine signals. The tangent and arctangent are used to get the - 90 to 90 degrees. To achieve the 360 degree screen, I will use the absolute value and an additional degree, such as 90 180 and 270. I created the case and select parts, but I don't know how to link these two. Help, please!
Thank you!
Focus on the atan2 function. This takes X and Y entry and you give the angle between - pi and pi.
-Darin
-
How to achieve this effect in Photoshop?
NOTE: This is NOT my photo is an example to look at it, I'll do!
Does anyone know how this look is achieved in Photoshop?
You mean that your light, milky appearance? Try to pull up on a curves adjustment layer shadow.
-
When I delete an email from any of my devices such as computer, iphone, or ipad, I want email deleted automatically 2 other devices. How this is done?
It depends on what kind of email service you use, POP or IMAP.
-
How to achieve high with Dalsa GigE camera
Hello everyone
I have dalsa spyder3 line-scan Camera, GigE, who says it's scanning line 36KHz device. But when I run this camera at the maximum rate of the line in labview and display data using a while loop, I do not reach the specified line 36KHz rate. To capture all frames that I have to use a capture card or there is a way to achieve this rate of line using another technique in labview. Please help to in the present.
Concerning
Charles
Hi Charles,
I realize that this is a line scan camera. However, the Spyder3 has the ability to buffer multiple lines in a single image. It is also highly critical of GigE Vision because there is a certain amount of load image by image, which would be very important to the rates that you will. By default the camera should give you more than one line per image - you should have manually configure for a smaller amount. If you have configured to do one line per image, then it is likely that you drop frames in the acquisition or in your processing loop - two would probably have to follow with 36Khz rates. However, if you get a hundred or a thousand lines per image, then the load becomes trivial and you should have no problem to reach your desired line frequency.
Eric
-
I have Windows XP Home on machine and installed Windows XP Pro SP3, how to uninstall Windows XP home? Machine is running very slow and I have to keep restarting because it freezes.
Have 2 versions of Windows should not be the cause of the freezing and slow.
However, to remove a second version of Windows, go here http://support.microsoft.com/?kbid=888023
-
RVS4000 - how to achieve a maximum data rate
I have little experience in the configuration of a router. Also, I don't know what the maximum data rate may be for this router.
Right now, the router is limiting my internet speed compared to what the cable modem can provide...
So far, I know that when I plug my computer directly to the output of the Modem cable Motorola and run a speed Test on my Charter cable connection, the test shows ~ 50 MB/s for downloads and ~ 5 Mbps for downloads. It would be great, but I have several computers and need to use a router/gateway to feed my local network. When I insert the RVS4000 router between the modem and the computer, the speed Test result to ~ 16 Mbps for downloads and stay ~ 5 Mbps for downloads. During this test, there is no other computer online through the router. 16 Mbps is not lousy, I would like to realize the full value... is it possible?
The RVS4000 unit is capable of 50 Mbit/s to 30 Mbps? How to configure the router to reach the maximum available download speed?
There is a Setup page of the router that has parameters right now set at 50000 Kbps Upload and 60000 Kbps by downloading; for me, this means that the router is capable of such speeds.
Anyone, please give me a hint on what step to take next to solve this problem, if possible...
Thank you
Hi James, you can disable IP addresses and you will probably see what you expect.
-Tom
Please evaluate the useful messages -
How to achieve this effect?
I'm looking to recreate the effect as seen in the video below at 01:10.
https://www.YouTube.com/watch?v=kThmu-o_nhI
Any help would be appreciated, especially the part where each individual smile falls differently. Also, when every smile appears, I thought at first it was just a scale in, but looks like it has a different effect to him.
Thank you!
I had manually on this sucker. nothing to it. Take a look:
you create two layers in photoshop or illustrator
import into Ae. make an animation to one of them - the 'different' effect you notice - this is called an overflow-under-overtaking animation and you must use the graph for this editor. First, you set your scale to 0 and after 10 images to 100 like this:
then you go into the graphics editor and on the value graph, you change your curve of this:
to do this:
See that it is a go-around and extensions of waveform more about it here:
http://www.Motionscript.com/articles/bounce-and-overshoot.html
This is my clumsy way to explain how it works
Move keyframes until you get the distribution right and now you've got it
so we got the scale just as it should be! now as for the position - since we know that we want more of them, we should try to work D.R.Y - do not repeat yourself - make us an animation and duplicate instead of deal with alone. We will add location to the mix and we'll take smiley all the way upward and downwards, then some so we have room when we scale it afterwards.
now, we want to change the speed a bit, so we'll go into the graphics editor on the speed graph and adjust it like this:
This is the graph of speed so at the beginning, we want less speed and gradually increase
now, we got a dandy end of an animation
now us precomp this layer and call him smiley-animation and press the button cut so we can now version 13.8 appreciate the beautiful cropped a pre comped layer limits
we drag the anchor in the Middle, so it will be easier to position the layers a scale them subsequently
now reproduce us like crazy by pressing Ctrl + D and drag it into the window of the model with the selection rectangle and what not
and now reduce us some of the layers a little
and offset the layers
now, we've got this amazing thing:
Oops... you have one coming down enough. not to worry - it's all in the same model! We can go inside and drag it down!
What is in laughing face? We work D.R.Y. we are simply duplicate the animation precomp smiley in the project window and name it funny animation
go inside and replace the layer with layer laughing smiley
and now in our main composition we replace some of the smiley with precomps precomps laughing in the project window
now, we are DONE: TAKE a BREAK!
-
How to achieve is not equal with shared filters?
I'm trying to set a filter shared in E10, containing Contacts who do not have a certain value in a certain area. Essentially, we have a field yes / no value and we want to include the Contacts only when the field is not equal Yes (IE. That means that the Contacts that have a number or null/white value in this area would be included in the filter).
Does anyone know how to get there? I would use 'Does not contain' = 'Yes' or should I use something else like 'not exactly '?
Any suggestions or advice on that would be appreciated.
Hi Kurt,.
In this example where the only values in the field would be 'Yes', 'No', or null - you can use 'Does not contain' or 'Not exactly' and get the desired result. Whatever it is, you'll be alone, including those whose value is 'no', or null.
Where "Does not contain" becomes a little difficult is when you use a multiple selection field or if the data field is a mess of bad habits or bad CRM data. Of course, it may be useful for these exact reasons as well. My recommendation is if you use a filter on a single-selection list that has own data (i.e. only in white or the values in the selection list), then use 'not exactly '.
But, anyway anyway you mention will work in this case!
Hope that helps.
Kim
Maybe you are looking for
-
Hi, I have an Iphone 4 16 gb s. OS 9.2.1 and I have a problem to iCloud. I create account and my phone is not possible to backup my phone in Icloud. If I connect iTunes that is not problem my phone to the backup computer. When I want to back up by
-
FlipShare is unable to connect to the Internet
Title: I'm trying to run flipshare to my flip mino HD camcorder. The software tells me that I am not connected to the internet when I am. I am trying to run flipshare to my flip mino HD camcorder. The software tells me that I am not connected to th
-
Error message "Windows Media Center has stopped working" what Xbox Live is connected.
Original title: TRY XBOX LIVE WITH WINDOWS MEDIA CENTER UI I have some setting wrong my XBOX Live interface with my computer. I get the message "windows media center has stopped working", immediately after the seizure of the 8-digit code provided by
-
SanDisk launches the new SlotMusic player. For those who haven't seen it yet, there is a review on the site anythingbutipod. The player is very solid, metal tube, with no display. The device is designed to play cards SD with the simplest of navigat
-
I have a blue vertical lines on my screen
my screen has vertical lines displayed