Need help to add lights

I have a photo of a snowmobile and a rider with an impressive décor and I was wondering if someone can help me with the addition of a realistic looking light for lighthouses with CS6? Disappointed, it wasn't an action shot, but I'm sure someone knows how to make it look like one and could guide me through it. I mostly used the CS6 to retouch my photos but I'm not an expert, it change like that. Thanks for any help!

It's one of those situations with countless ways to do so.  I'm trying to think of an easy way...

Make a new layer, select a very large soft brush completely and put her down several times with a soft yellow color.  Then select a shade lighter and the stamp lowering at the same place on the same layer.  Use the pen tool to create a cone-shaped path with rounded end and choose the path.  Add a layer mask.

If the edges of the beam are too hard, soften the mask with the mask properties panel (I reversed the BG, so you can see the light go down better)

Tags: Photoshop

Similar Questions

  • Need help to add videos to my rocket

    I got it for Christmas. I know how to add all my songs and pictures, but I can't add videos to it. Whenever I add a video in the video folder, I look on my rocket and he said either "Format file not supported" or it just does not appear on my rocket. Any help? I know that the video format is MPEG-4, but I need help to really watch my videos!

    You must use Sansa Media Converter. Even if its a MP4 you use MSC. It's the only way right now. The converter is avalible here is at the top of the page under the downloads section

  • Added a Zoom Plugin jQuery and needing help to add attributes to the evolution of the poplet images.

    Hey BC community, I looking for a little help with some jQuery / javascript. Overall, I have a plugin to zoom like forcing me to add a data attribute to the image I want to add the zoom effect on. This isn't a problem, but I poplet images that I've adjusted to fill again the big picture. html() rather than the default light box.  The Zoom plugin I use requires a data attribute to be added to all the images I want to have the ability to zoom attached to. I wrote jQuery that adds the attribute data on the original image which is to fill the big image container, but whenever I change the following poplet image, I lose the zoom effect. I hope that makes sense... lol I'm still a javascript / jquery newby.

    Here is the work currently underway. Figure which may help understand the situation better. Here is the site

    I just want to add zoom to any poplet effect is enabled by adding the attribute data and the new file extension required for the expansion of the resolution. Again, please excuse the bad jQuery / javascript, I'm still learning!

    Here's my jQuery / Javascript.

    New features of Poplet

    /*===================================================*/

    function poplet (e) {}

    e.preventDefault ();

    var imgURL = $(this) .attr ('href');

    $('#largeimage').html ("< img src ="' + imgURL + ' "> '");

    }

    /*=======================================

    MAGNIFY

    =======================================*/

    $(document) .ready (function () {}

    var addedAttr = "data-magnify-src";

    var addedExtension = '-large.jpg ";

    var originalExtension is $('.productLarge #largeimage > img') .attr ('src').slice(0,-4);.

    var combinedExtension = originalExtension + addedExtension;

    $('.productLarge_#largeimage_>_img').attr (addedAttr, combinedExtension);

    });

    $(function() {})

    Poplets

    $('.productPopletsItem_a').removeAttr ('onclick release);

    $('body').on (' click on ', '.productPopletsItem a', poplet);

    });

    Yes I fixed it, got help from some other forums. Thank you!

  • Need help to add hard drives

    So here's what I have... Windows 7 - & gt; VMware Server 2.0 - & gt; Windows Home Server virtual machine

    Trying to add additional hard disks, see just plugged and windows 7 (host), but when I try to add a drive to the virtual computer it shows me only the available pool from the original hard drive... Im sure that I add these drives to the host via the applet web but just can't figure out how? If anyone can help... thx!

    Looks like you need to add a new data store to take advantage of the space on these new readers. Ensure that any data store that you add is available when the VMware services beginning, like at the start, especially if you have virtual computers autostart stored on them.

    Guy Leech

    VMware vExpert 2009

    ---

    If you have found this device or any other answer useful please consider the use of buttons useful or Correct to award points.

  • Flash CS5 beginner - need help with Add URL link animated banner

    I apologize if this is a very basic question, but I am a newbie in Flash design. I created a basic animation in Flash CS5 and I need to add a clickable URL link. I tried a few tutorials that seemed promising, but none of them solved my problem. I tried a number of things, including the conversion to parts or all of the simple images buttons or movies and linking them this way as well as type in the code ActionScript 2 and 3, which none was successful. The animation plays correctly in my browser, but when I click it, the link does not work. I wish that the entire banner clickable to take viewers to the website linked instead to use the text of the hyperlink. Also, when I open the Code snippets window, it is empty, any image or image I selected. Do I need to import snippets of code somewhere or just will I things the wrong way? Any help is greatly appreciated!

    go to your help section and search the reference Guide of Action Script 3.  It is the repository of all the possibilities of ActionScript with Flash and Flex.  You can consult the alphabetical index URLRequest and navigateToUrl.  There could even be code samples included.  I haven't looked right, but you'll probably get before doing so.

    Best,

    -markerline

  • Need help with Add/Remove buttons work field

    Someone here on the forums had previously helped me to get a button set up a form that would add an additional text field to a form.  I need now to a separate created button that will remove a text field in the case where too many have been added.  I hope someone can help me with this because my XML knowledge is virtually nil.  It's not like I can upload files to the forum here, so I'll try to paste my code.  I just need to get the "-" button to subtract a line.  Thanks in advance for the help.

    -Chris

    <? XML version = "1.0" encoding = "UTF-8"? >

    <? XFA generator = APIVersion "AdobeLiveCycleDesignerES_V8.2.1.4029.1.523496" = "2.8.9029.0?" >

    " < = xmlns:xdp xdp:xdp ' http://ns.Adobe.com/XDP/ " "timeStamp ="2010-06 - 28 T 16: 04:04Z" uuid = "081329f3-4914-4dde-87ae-75a83da8434e" >

    " < model xmlns =" http://www.XFA.org/schema/XFA-template/2.6/ ">

    <? formServer defaultPDFRenderFormat acrobat8.1static? >

    < name of the subform = "form1" layout = "CT" local = "en_US" >

    < Pagesand >

    < name Pagearea = "Page1" id = "Page1" >

    < contentArea x = 'No 19.05 mm' y = '12.7 mm"w ="190.5 mm"h ="266.7 mm"/ >

    < average stock = "default" short = long "612pt" = "792pt" / >

    <? templateDesigner expand 1? > < / pageArea >

    <? templateDesigner expand 1? > < / Pagesand >

    < subform w = "7.5" in h = "10.5" in name = "Page1" >

    < subform w = y "174,625 mm" = "79,377 mm" name = "Current_Objectives" layout = "CT" >

    < subform w = h "174,625 mm" = "9,522 mm' name = 'Objective' >

    < = minH "txt_currobj" field name = '8,263 mm"w = mm"174,625">

    < ui >

    < textEdit multiLine = "1" >

    < border >

    <? templateDesigner styleId aped3? >

    < STROKE edge = "lowered" / >

    < / border >

    < margin / >

    < / textEdit >

    < /UI >

    < font size = cast '11pt' = "Verdana" / >

    < topInset margin = ' 1 mm ' bottomInset = ' 1 mm ' leftInset = ' 1 mm ' rightInset = ' 1 mm "/ >

    < para vAlign = "middle" / >

    < caption reserve '7,76 mm' = >

    < para vAlign = "middle" / >

    < value >

    < text > 1. < / text >

    < / value >

    < font size = cast '11pt' = "Verdana" / >

    < / legend >

    < activity = 'initialize' name = "event__initialize" >

    < script contentType = "application/x-javascript" > this.caption.value.text.value = (this.parent.index + 1) + "."

    < /script >

    < / event >

    < / field >

    < occur max = "-1" / >

    <? templateDesigner expand 1? > < / subform >

    < field h = "5.08 mm" name = "curr_obj_add_line" w '5.08 mm' = >

    < ui >

    < button nail = 'push' / >

    < /UI >

    < character = "Arial" / >

    < caption >

    < value >

    < text > + < / text >

    < / value >

    < para hAlign = "center" vAlign = "middle" / >

    < character = "Arial" / >

    < / legend >

    < border = 'right' hand >

    < STROKE edge = "raised" / >

    < filling >

    < color value = '212, 208, 200' / >

    < / filling >

    <? templateDesigner styleId apbx2? > < / border >

    < link match = "none" / >

    < help >

    < toolTip > add < / ToolTip >

    < / help >

    < activity = "click on" name = "event__click" >

    < script contentType = "application/x-javascript" >

    _Objective.addInstance (1)

    < /script >

    < / event >

    < / field >

    < field h = "5.08 mm" name = "curr_obj_del_line" w '5.08 mm' = >

    < ui >

    < button nail = 'push' / >

    < /UI >

    < character = "Arial" / >

    < caption >

    < value >

    < text > - < / text >

    < / value >

    < para hAlign = "center" vAlign = "middle" / >

    < character = "Arial" / >

    < / legend >

    < border = 'right' hand >

    < STROKE edge = "raised" / >

    < filling >

    < color value = "212,208,200" / >

    < / filling >

    <? templateDesigner styleId apbx2? > < / border >

    < link match = "none" / >

    < help >

    < toolTip > delete an element < / ToolTip >

    < / help >

    < activity = "click on" name = "event__click" >

    < script contentType = "application/x-javascript" >

    _Objective.deleteInstance (1)

    < /script >

    < / event >

    < / field >

    <? templateDesigner expand 0? > < / subform >

    <? templateDesigner expand 1? > < / subform >

    < desc >

    < name of text = 'version' > 8.2.1.4029.1.523496.503679 < / text >

    < / desc >

    <? templateDesigner expand 1? > < / subform >

    <? templateDesigner DefaultLanguage FormCalc? >

    <? templateDesigner client DefaultRunAt? >

    <? Acrobat JavaScript strictScoping? >

    <? templateDesigner Zoom 100? >

    <? templateDesigner grid see the: 1, wink: 1, units: 0, color: ff8080, origin: (0,0), interval: (125000,125000)? >

    <? templateDesigner 26 FormTargetVersion? >

    <? templateDesigner 1 SaveTaggedPDF? >

    <? templateDesigner 1 SavePDFWithEmbeddedFonts? >

    <? templateDesigner horizontal management: 1, vertical: 1, guidelines: 1, crosshairs:0? > < / template >

    " < config xmlns =" http://www.XFA.org/schema/XCI/2.6/ ">

    < name of agent 'designer' = >

    PDF of < destination > < / destination >

    < pdf >

    <!-[0 n]->

    < fontInfo / >

    < / pdf >

    < / agent >

    < date >

    <!-[0 n]->

    < pdf >

    <!-[0 n]->

    < version > 1.7 < / version >

    < adobeExtensionLevel > 1 < / adobeExtensionLevel >

    < / pdf >

    < common / >

    < script >

    Server < runScripts > < / runScripts >

    < /script >

    < xdp >

    packs of <>* < / packages >

    < / xdp >

    < / date >

    <? originalXFAVersion http://www.XFA.org/schema/XCI/2.8/ ? > < / config >

    " < Romagna xmlns =" http://www.XFA.org/schema/XFA-locale-set/2.6/ ">

    <? originalXFAVersion http://www.XFA.org/schema/XFA-locale-set/2.6/ ?>

    < name of locale = 'en_US' desc 'English (United States)' = >

    < name calendarSymbols = "Gregorian" >

    < monthNames >

    < month > January < / month >

    < month > February < / month >

    < month > March < / month >

    < month > April < / month >

    < month > may < / month >

    < month > June < / month >

    < month > July < / month >

    < month > August < / month >

    < month > September < / month >

    < month > October < / month >

    < month > November < / month >

    < month > December < / month >

    < / monthNames >

    < abbr monthNames = "1" >

    < month > Jan < / month >

    < month > Feb < / month >

    < month > Tue < / month >

    < month > after < / month >

    < month > may < / month >

    < month > Jun < / month >

    < month > Jul < / month >

    < month > August < / month >

    < month > Ms < / month >

    < month > Oct < / month >

    < month > Nov < / month >

    < month > Dec < / month >

    < / monthNames >

    < dayNames >

    < day > Sunday < / day >

    Monday < day > < / day >

    < day > Tuesday < / day >

    < day > Wednesday < / day >

    < day > Thursday < / day >

    < day > Friday < / day >

    < day > Saturday < / day >

    < / dayNames >

    < dayNames abbr = "1" >

    < day > Sun < / day >

    < day > LUN < / day >

    < day > Tue < / day >

    < day > sea < / day >

    < day > set < / day >

    < day > sat < / day >

    < day > Sat < / day >

    < / dayNames >

    < meridiemNames >

    < meridiem > AM < / meridiem >

    < meridiem > AM < / meridiem >

    < / meridiemNames >

    < eraNames >

    < age > BC < / era >

    < age > AD < / era >

    < / eraNames >

    < / calendarSymbols >

    < datePatterns >

    < name datePattern 'full' = > EEEE, MMMM D, YYYY < / datePattern >

    < name datePattern = "long" > D MMMM, YYYY < / datePattern >

    < name datePattern "med" = > MMM D, YYYY < / datePattern >

    < name datePattern "short" = > d/m/YY < / datePattern >

    < / datePatterns >

    < timePatterns >

    < name timePattern 'full' = > SS A Z < / timePattern >

    < name timePattern = "long" > SS A Z < / timePattern >

    < name timePattern "med" = > SS A < / timePattern >

    < name timePattern 'short' = > h: mm A < / timePattern >

    < / timePatterns >

    < dateTimeSymbols > GyMdkHmsSEDFwWahKzZ < / dateTimeSymbols >

    < numberPatterns >

    < name numberPattern 'digital' = > z, zz9.zzz < / numberPattern >

    < name numberPattern = "currency" > $z, zz9.99 | ($z, zz9.99) < / numberPattern >

    < name numberPattern = '%' > z, zz9% < / numberPattern >

    < / numberPatterns >

    < numberSymbols >

    < name numberSymbol 'decimal' = >. < / numberSymbol >

    < numberSymbol = "group" name >, < / numberSymbol >

    < name numberSymbol = '%' > % < / numberSymbol >

    < numberSymbol name = 'less' > - < / numberSymbol >

    < numberSymbol name = "zero" > 0 < / numberSymbol >

    < / numberSymbols >

    < currencySymbols >

    < currencySymbol = 'symbol' name >$ < / currencySymbol >

    < name currencySymbol = "isoname" > $ < / currencySymbol >

    < currencySymbol = "decimal" name >. < / currencySymbol >

    < / currencySymbols >

    <>fonts

    < name of font = 'Myriad Pro' / >

    < name of font = "Minion Pro" / >

    < name of font = "Courier Std" / >

    < name of font = "Adobe Pi Std" / >

    < name of font = "Adobe Hebrew" / >

    < name of font = 'Adobe Arabic' / >

    < name of font = 'Adobe Thai' / >

    < name of font = "Kozuka Gothic Pro - VI M" / >

    < name of font = "Kozuka Mincho Pro - VI R" / >

    < name of font = 'Adobe Ming Std L' / >

    < name of font = "Adobe song Std L" / >

    < name of font = "Adobe Myungjo Std M" / >

    < / font >

    < / locale >

    < / Romagna >

    < xmlns: x x: xmpmeta = "adobe: ns:meta / ' x: xmptk =" Adobe XMP Core 4.2.1 - c041 52.337767, 2008/04/13-15: 41:00 ">" "" "

    " < RDF: RDF = xmlns:rdf ' http://www.w3.org/1999/02/22-rdf-syntax-ns# ">

    " < Xmlns:xmp = RDF" http://ns.Adobe.com/Xap/1.0/ "rdf: about =" "> "

    < xmp:MetadataDate > 2010-06-28 T 16: 04:04Z < / xmp:MetadataDate >

    < xmp:CreatorTool > Adobe LiveCycle Designer ES 8.2 < / xmp:CreatorTool >

    < xmp:ModifyDate > 2010-06-28 T 11: 28:54 - 04:00 < / xmp:ModifyDate >

    < xmp: CreateDate > 2010-06-18T 11: 45:23 - 04:00 < / xmp: CreateDate >

    < / RDF: Description >

    " < Xmlns:pdf = RDF" http://ns.Adobe.com/PDF/1.3/ "rdf: about =" "> "

    < pdf:Producer > Adobe LiveCycle Designer ES 8.2 < / pdf:Producer >

    < / RDF: Description >

    " < Xmlns:xmpMM = RDF" http://ns.Adobe.com/Xap/1.0/mm/ "rdf: about =" "> "

    < xmpMM:DocumentID > uuid:081329f3-4914-4dde-87ae-75a83da8434e < / xmpMM:DocumentID >

    < xmpMM:InstanceID > uuid:4d9ea5d0-fbf1-4be5-8aa5-b9c828a765e9 < / xmpMM:InstanceID >

    < / RDF: Description >

    " < Xmlns = RDF" http://purl.org/DC/elements/1.1/ "rdf: about =" "> "

    < dc:format > application/pdf < / dc:format >

    < / RDF: Description >

    " < Xmlns:desc = RDF" http://ns.Adobe.com/XFA/promoted-desc/ "rdf: about =" "> "

    < desc:version rdf:parseType = "Resource" >

    < rdf: value > 8.2.1.4029.1.523496.503679 < / rdf: value >

    < desc:ref >/template/subform [1] < / desc:ref >

    < / desc:version >

    < / RDF: Description >

    < / RDF: RDF >

    < / x: xmpmeta >

    " < xfdf xmlns =" http://ns.Adobe.com/XFDF/ "XML: Space ="preserve"> "

    < annots / >

    < / xfdf > < / xdp:xdp >

    Hello

    It is difficult to see the XML Source what is happening. There are sites like YouSendIt.com or Acrobat.com where you can download files from file sharing.

    In any case, I see the Add button, then the delete row button would look like:

    _Objective.removeInstance(this.parent.index);
    

    The underscore character is a shortcut for instanceManager. I suspect that the goal is the repetitive element. It is easier to include the button Delete a row in the repeating line, in this way the user can select which line they want to delete.

    There is an example here: https://acrobat.com/#d=tdpzltrl25yU2PkvgaQO9w

    Look in the click event of the button 'X '.

    Good luck

    Niall

  • Need help to add computer accounts in bulk in to open a session option in each account users TAB in Active Directory

    Hello

    I have two less than my production needs.

    (1) we need to delegate control of user not administrator to add the computer to the connection of users to.

    (2) we need to add computer accounts in bulk in to each users logon (located; useraccount--> tab account--> logon to the specific logon button--> Add a computer account).

    The reason for this is that we must control the users to connect to specified computers and will be managed by our resource allocation Manager (it will add or delete based on the requirements of the production. It must only have the control to add / remove option Logonto computer accounts.)

    Please suggest.

    Best, Surendra

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • Need help with a light effect

    So I try to create a similar effect in the light of the Knight Rider car. Instead of several lights in the glowing middle. I want just a single light to go forward and backward with a glow of tail, vanishing and fading behind it.

    I already have the movement of it and drag the effect that some. But it isn't really nail the appearance of a light.

    What I have so far: alarm light Anim - YouTube

    So I was wondering if someone could give me some advice or point me in the right direction of what effects/presets I could use to make it really look like a brilliant, bright and flashing yellow.

    Until now I just hosted a Null back with a CC Particle Systems II object attached to it. With gravity 0, directional Animation I indexed management to operate the sides when it changes direction and.



    Videos or guides would be great. Did not have much luck until now research online, something specific to this.

    Thanks a ton!

    Ken

    Vegas can be applied to a channel (for example, alpha) or a mask. So you'd a mask so he could travel. You can have typing and all. You can add other effects such as glow or use multiple copies of your Vegas layer (using the copy with the option of ownership) and just change a few parameters with a few screen or add some blending modes to achieve a look brilliant really friendly.

    More info here: generate effects in After Effects

  • Need help to add totals and subtotals query that uses ROW_NUMBER OVER()

    Hi all

    We have the following query that is used in a report that generates a list of employees working a certain type of movement.
    The report also includes a column called RN that is used when the pagination for the report.
    What we are trying to do now is to add columns that indicate the total number of hours worked by the employee as well as gran total of hours of work for all employees in the report.

    We tried to add the columns last week and have been able to get the totals by using a group by clause. Only problem is that it has changed the order of the column of RN.
    The RN column must stay in numerical order, since we need to select and display the records for paging.

    Is it possible to get our totals without disturbing our paging RN column?

    BTW, thanks Frank for the addition of the UNPIVOT operator at our request. While other solutions worked, UNPIVOT has been the most effective.

    SEE below, the application and all the sql to create tables and test data.

    Thank you
    George
    SELECT *
      FROM (SELECT COUNT (*) OVER () record_count,
                   ROW_NUMBER ()
                   OVER (
                      ORDER BY
                         e.lname || ', ' || e.fname || ' - ' || e.initials DESC,
                         u.startdate DESC)
                      rn,
                   u.empid,
                   a.area,
                   e.lname,
                   e.fname,
                   e.initials,
                   u.startdate,
                   u.starttime,
                   u.endtime,
                   u.hours,
                   u.minutes
              FROM ((SELECT empid,
                            startpp + day_number - 1 startdate,
                            NULL starttime,
                            NULL endtime,
                            8 hours,
                            0 minutes
                       FROM    schedules s
                            JOIN
                               payperiods pp
                            ON pp.periodid = s.periodid 
    UNPIVOT ( v 
    FOR day_number IN (day1 AS 1
                      ,day2 AS 2
                      ,day3 AS 3
                      ,day4 AS 4
                      ,day5 AS 5
                      ,day6 AS 6
                      ,day7 AS 7
                      ,day8 AS 8
                      ,day9 AS 9
                      ,day10 AS 10
                      ,day11 AS 11
                      ,day12 AS 12
                      ,day13 AS 13
                      ,day14 AS 14)
             ) 
             WHERE SUBSTR (v, 1, 4) = 'SHFT' 
             UNION 
    SELECT l.empid,
           l.startdate,
           TO_CHAR (l.starttime, 'HH24:MI'),
           TO_CHAR (l.endtime, 'HH24:MI'),
           TRUNC (
                24
              * (CASE
                    WHEN l.starttime > l.endtime THEN l.endtime + 1 - l.starttime
                    ELSE l.endtime - l.starttime
                 END))
              hours,
           FLOOR (
                (  ( (l.endtime - l.starttime) * 24 * 60 * 60)
                 -   FLOOR ( ( (l.endtime - l.starttime) * 24 * 60 * 60) / 3600)
                   * 3600)
              / 60)
              minutes
      FROM leavereq l
     WHERE     UPPER (l.leavetype) = 'XYZShift'
           AND l.starttime IS NOT NULL
           AND approval = -1
           AND canceled = 0
    ) U) 
    JOIN employee e ON e.empid = u.empid 
    JOIN areas a ON a.areaid = e.areaid 
    WHERE a.configid = 1000 
    AND (startdate between to_date('4/7/2013','mm/dd/yyyy') and to_date('4/20/2013','mm/dd/yyyy')) 
    ORDER BY e.lname||', '||e.fname||' - '||e.initials DESC ,u.startdate DESC 
    ) WHERE rn BETWEEN 1 AND 75 
    order by rn;
    --------------------------------------------------------------------------------
    OUTPUT CURRENT
    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES
    12,1,753948,TEST,Three,Employee,E3,4/17/2013,,,8,0
    12,2,753948,TEST,Three,Employee,E3,4/15/2013,,,8,0
    12,3,753948,TEST,Three,Employee,E3,4/12/2013,08:00,12:30,4,30
    12,4,753948,TEST,Three,Employee,E3,4/8/2013,,,8,0
    12,5,753940,TEST,Two,Employee,E2,4/12/2013,08:00,13:45,5,45
    12,6,753940,TEST,Two,Employee,E2,4/11/2013,,,8,0
    12,7,753940,TEST,Two,Employee,E2,4/9/2013,,,8,0
    12,8,753940,TEST,Two,Employee,E2,4/8/2013,,,8,0
    12,9,753938,TEST,One,Employee,O1,4/17/2013,,,8,0
    12,10,753938,TEST,One,Employee,O1,4/12/2013,08:00,14:20,6,20
    12,11,753938,TEST,One,Employee,O1,4/9/2013,,,8,0
    12,12,753938,TEST,One,Employee,O1,4/8/2013,,,8,0
    DESIREE OUTPUT
    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES,EMPTOTAL,GRANTOTAL
    12,1                 ,753948,TEST,Three,Employee,E3       ,4/17/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,2,753948,TEST,Three,Employee,E3       ,4/15/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,3,753948,TEST,Three,Employee,E3       ,4/12/2013   ,08:00       ,12:30     ,4        ,30         ,28:30         ,88:35
    12                    ,4,753948,TEST,Three,Employee,E3       ,4/8/2013     ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,5,753940,TEST,Two,Employee,E2         ,4/12/2013   ,08:00       ,13:45     ,5        ,45         ,29:45         ,88:35
    12                    ,6,753940,TEST,Two,Employee,E2         ,4/11/2013   ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,7,753940,TEST,Two,Employee,E2         ,4/9/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,8,753940,TEST,Two,Employee,E2         ,4/8/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,9,753938,TEST,One,Employee,O1         ,4/17/2013   ,               ,             ,8        ,0           ,30:20         ,88:35
    12                    ,10,753938,TEST,One,Employee,O1       ,4/12/2013   ,08:00       ,14:20     ,6        ,20         ,30:20          ,88:35
    12                    ,11,753938,TEST,One,Employee,O1       ,4/9/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    12                    ,12,753938,TEST,One,Employee,O1       ,4/8/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    --------------------------------------------------------------------------------
    CREATE THE TABLE PROGRAMS
    (
    SCHEDULEID NUMBER (12) NOT NULL,
    EMPID NUMBER (12) NOT NULL,
    PERIODID VARCHAR2 (6 BYTE) NOT NULL,
    AREAID NUMBER (12) NOT NULL,
    DAY1 VARCHAR2 (50 BYTE),
    DAY 2 VARCHAR2 (50 BYTE).
    DAY 3 VARCHAR2 (50 BYTE).
    DAY4 VARCHAR2 (50 BYTE),
    DAY5 VARCHAR2 (50 BYTE),
    DAY6 VARCHAR2 (50 BYTE),
    DAY 7 VARCHAR2 (50 BYTE).
    JOUR8 VARCHAR2 (50 BYTE),
    DAY9 VARCHAR2 (50 BYTE),
    DAY10 VARCHAR2 (50 BYTE),
    DAY 11 VARCHAR2 (50 BYTE).
    DAY12 VARCHAR2 (50 BYTE),
    J13 VARCHAR2 (50 BYTE),
    DAY14 VARCHAR2 (50 BYTE),
    NOPTIND1 INTEGER DEFAULT 0,
    NOPTIND2 INTEGER DEFAULT 0,
    NOPTIND3 INTEGER DEFAULT 0,
    NOPTIND4 INTEGER DEFAULT 0,
    NOPTIND5 INTEGER DEFAULT 0,
    NOPTIND6 INTEGER DEFAULT 0,
    NOPTIND7 INTEGER DEFAULT 0,
    NOPTIND8 INTEGER DEFAULT 0,
    NOPTIND9 INTEGER DEFAULT 0,
    NOPTIND10 INTEGER DEFAULT 0,
    NOPTIND11 INTEGER DEFAULT 0,
    NOPTIND12 INTEGER DEFAULT 0,
    NOPTIND13 INTEGER DEFAULT 0,
    NOPTIND14 INTEGER DEFAULT 0
    );

    CREATE TABLE PAYPERIODS
    (
    PERIODID VARCHAR2 (6 BYTE) NOT NULL,
    DATE OF STARTPP,
    DATE OF ENDPP
    );

    CREATE TABLE LEAVEREQ
    (
    LEAVEREQID NUMBER (12) NOT NULL,
    EMPID NUMBER (12) NOT NULL,
    STARTDATE DATE,
    DATE STARTTIME,
    END DATE,
    LEAVETYPE VARCHAR2 (50 BYTE),
    DATE REQUESTED,
    ENTIRE DEFAULT 0 APPROVAL
    STOP CRITICAL INTEGER DEFAULT 0,
    CANCELLED INTEGER DEFAULT 0,
    ENTERBY VARCHAR2 (50 BYTE),
    APPROVEDBY VARCHAR2 (50 BYTE),
    DATE OF APPROVEDWHEN,
    REMARKS VARCHAR2 (4000 BYTE),
    APPINI VARCHAR2 (2 BYTE),
    NUMBER (12) ROUND.
    GOAL NUMBER (12).
    FMLA NUMBER (12) DEFAULT 0,
    LEAVEAREAID NUMBER (12).
    ARTICLE26 NUMBER (12) DEFAULT 0,
    ORG_LVREQID NUMBER (12)
    );

    CREATE TABLE EMPLOYEE
    (
    EMPID NUMBER (12) NOT NULL,
    AREAID NUMBER (12) NOT NULL,
    BIDAREA NUMBER (12) NOT NULL,
    LNAME VARCHAR2 (30 BYTE),
    FNAME VARCHAR2 (20 BYTE),
    MI VARCHAR2 (3 BYTE),
    CLASSIFICATION VARCHAR2 (10 BYTE),
    VARCHAR2 (2 BYTE) INITIALS,
    DATE OF EODXYZ,
    DATE OF EODNAT,
    VARCHAR2 (3 BYTE) STATUS,
    TURN VARCHAR2 (3 BYTE),
    RDO1 VARCHAR2 (6 BYTE),
    RDO2 VARCHAR2 (6 BYTE),
    TELEPHONE1 VARCHAR2 (14 BYTE),
    TELEPHONE2 VARCHAR2 (14 BYTE),
    REM VARCHAR2 (75 BYTE) DEFAULT 'NONE. '
    LAST4 NUMBER (12).
    SICKOK INTEGER,
    NOSIGNON INTEGER DEFAULT 0,
    TB VARCHAR2 (4 BYTE),
    SUP NUMBER (12).
    OM NUMBER (12).
    FMLA1 INTEGER,
    FMLA1SDATE DAY,
    FMLA1TYPE NUMBER (12).
    FMLA1HRSLEFT NUMBER (12).
    ADMINTEMP INTEGER,
    LEAVERESTRICT INTEGER,
    SLRESTRICT INTEGER,
    DATE OF SLRESDATE,
    DATE OF SLROCDATE,
    DEVSTATUS INTEGER DEFAULT 0,
    USERNAME VARCHAR2 (50 BYTE),
    PWORD VARCHAR2 (100 BYTE),
    PWORDCHG INTEGER,
    ULEVEL VARCHAR2 (50 BYTE),
    E-MAIL VARCHAR2 (50 BYTE),
    VARCHAR2 (50 BYTE) TEAM.
    ANN VARCHAR2 (50 BYTE),
    DDAY1 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY2 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY3 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY4 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY5 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY6 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY7 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY8 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY9 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY10 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY11 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY12 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY13 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    DDAY14 VARCHAR2 (50 BYTE) DEFAULT 'x ',.
    MOVEDATE DATE,
    OLDAREA VARCHAR2 (50 BYTE),
    GRPQA INTEGER,
    GRPTRNG INTEGER,
    LOGINFLAG INTEGER DEFAULT 0,
    NEWAREAID NUMBER (12).
    DATE OF EFFDATE,
    MODIFIED_BY VARCHAR2 (30 BYTE),
    DATE OF MODIFIED_DATE
    );

    CREATE TABLE SPACES
    (
    AREAID NUMBER (12) NOT NULL,
    CONFIGID NUMBER (12) NOT NULL,
    AREA VARCHAR2 (50 BYTE),
    ROLLUPALLOW INTEGER DEFAULT 0,
    SIGNONAREA INTEGER DEFAULT 0,
    OPDIS INTEGER DEFAULT 0,
    MODIFIED_BY VARCHAR2 (30 BYTE),
    DATE OF MODIFIED_DATE
    );
    --------------------------------------------------------------------------------
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693744, 753738, '092013', 2003, 'X')
    "SHFT < 1530 > ', ' < 1530 SHFT > ', '1530', '1530', '1530',
    'X', 'X', '1530', '1530', 'SHIFT ',.
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693745, 753740, '092013', 2003, 'X')
    "SHFT < 1530 > ', ' < 1530 SHFT > ', '1530', 'SHIFT', '1530',
    'X', 'X', '1530', '1530', ' 1530',
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);
    Insert in CALENDARS
    (SCHEDULEID, EMPID, PERIODID, DAY1, AREAID
    DAY 2, DAY 3, DAY 4, DAY5 DAY6.
    DAY7 JOUR8, DAY9, DAY10, DAY 11,.
    J13, DAY14 DAY12, NOPTIND1, NOPTIND2,
    NOPTIND3, NOPTIND4, NOPTIND5, NOPTIND6, NOPTIND7,
    NOPTIND8, NOPTIND9, NOPTIND10, NOPTIND11, NOPTIND12,
    NOPTIND13, NOPTIND14)
    Values
    (3693746, 753748, '092013', 2003, 'X')
    "< 1530 SHFT > ', '1530', '1530', '1530', '1530',.
    'X', 'X', ' SHFT < 1530 > ', '1530', 'SHIFT ',.
    "1530', '1530', 'X', 0, 0,
    0, 0, 0, 0, 0,
    0, 0, 0, 0, 0,
    (0, 0);

    COMMIT;

    Insert into PAYPERIODS
    (PERIODID, STARTPP)
    Values
    ('092013', TO_DATE (APRIL 7, 2013 00:00:00 ',' ' DD/MM/YYYY HH24:MI:SS));))
    COMMIT;

    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265804, 753748, TO_DATE (12 APRIL 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 08:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 12:30 ',' MM/DD/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:14:39 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:18:52 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265805, 753740, TO_DATE (12 APRIL 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 08:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 13:45 ',' DD/MM/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:16:04 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:19:49 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    Insert into LEAVEREQ
    (LEAVEREQID, EMPID, STARTDATE, STARTTIME, ENDTIME,
    LEAVETYPE, REQUEST, APPROVAL, REFUSED, ANNULLED,
    ENTERBY, APPROVEDBY, APPROVEDWHEN, ROUND, FMLA,.
    LEAVEAREAID, 26)
    Values
    (4265806, 753738, TO_DATE (12 APRIL 2013 00:00:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (APRIL 1, 2013 08:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (APRIL 1, 2013 14:20 ',' DD/MM/YYYY HH24:MI:SS'),)
    'XYZShift', TO_DATE (8 April 2013 15:17:12 ',' ' the HH24: MI: SS DD/MM/YYYY), - 1, 0, 0,.
    'GH', 'GH', TO_DATE (8 APRIL 2013 15:26:55 ',' DD/MM/YYYY HH24:MI:SS'), 2, 0,.
    2003, 0);
    COMMIT;


    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753738, 2003, 2003, "one", "Employee",)
    '4_NON_BUE', 'E1', TO_DATE (1 JANUARY 2002 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753740, 2003, 2003, "two", "Employee",)
    '4_NON_BUE', 'E2', TO_DATE (1 JANUARY 2002 00:00:00 ',' ' HH24:MI:SS JJ/MM/AAAA), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert EMPLOYEES
    (EMPID, AREAID, BIDAREA, LNAME, FNAME,
    CLASSIFICATION, INITIALS, EODXYZ, EODNAT, STATUS,
    RDO1, RDO2, REM, SICKOK, NOSIGNON,
    TB, SUP, OM, FMLA1, FMLA1SDATE,
    FMLA1HRSLEFT, ADMINTEMP, LEAVERESTRICT, SLRESTRICT, SLRESDATE,
    SLROCDATE, DEVSTATUS, ULEVEL, E-MAIL, TEAM,
    DDAY1, DDAY2, DDAY3, DDAY4, DDAY5,
    DDAY6, DDAY7, DDAY8, DDAY9, DDAY10,
    DDAY11, DDAY12, DDAY13, DDAY14, MOVEDATE,
    OLDAREA, GRPQA, GRPTRNG, LOGINFLAG MODIFIED_BY,
    MODIFIED_DATE)
    Values
    (753748, 2003, 2003, "third", "Employee",)
    '4_NON_BUE', 'E3', TO_DATE (1 JANUARY 2002 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), TO_DATE (JANUARY 1, 2001 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'), 'YES ', HE SAID.
    'SAM', 'SUN', 'NONE',-1, 0,
    'NONE', 749405, 749405, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    8, 0, 0, 0, TO_DATE (JANUARY 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'),
    To_date (January 1, 2013 00:00:00 "," MM/DD/YYYY HH24:MI:SS'), 0, ' 1000', '[email protected]', '4',
    'X', '1530', '1530', ' 1530 ', ' 1530',
    "1530 ', 'X', 'X', '1530', ' 1530",
    "1530', '1530', '1530', 'X', TO_DATE (MARCH 18, 2013 00:00:00 ',' DD/MM/YYYY HH24:MI:SS'),
    "1392 ', 0, 0, 0, '752910',
    TO_DATE('03/18/2013 12:10:04', 'MM/DD/YYYY HH24:MI:SS'));)
    COMMIT;

    Insert areas
    (AREAID CONFIGID, AREA, ROLLUPALLOW, SIGNONAREA,
    OPDIS)
    Values
    (2003, 1000, 'TEST',-1, 0,
    -1) ;
    COMMIT;
    ------------------------------------------------------------------------------------------------

    Published by: George Heller on April 8, 2013 13:32

    Published by: George Heller on April 8, 2013 14:35

    Published by: George Heller on April 8, 2013 14:49

    Hi, George.

    George Heller wrote:
    Hi all

    We have the following query that is used in a report that generates a list of employees working a certain type of movement.


    The report also includes a column called RN that is used when the pagination for the report.
    What we are trying to do now is to add columns that indicate the total number of hours worked by the employee as well as gran total of hours of work for all employees in the report.

    We tried to add the columns last week and have been able to get the totals by using a group by clause. Only problem is that it has changed the order of the column of RN.

    Please your postal code. It is very difficult for me to say what you're doing wrong when I don't know what you're doing.

    The RN column must stay in numerical order, since we need to select and display the records for paging.

    Is it possible to get our totals without disturbing our paging RN column?

    If you mix the aggregate functions and analytical in the query (sub-), the clause GROUP BY is applied and aggregate functions are calculated before the analytical functions are calculated. If you need to calculate the analytical functions first, calculate them in a subquery and make the GROUP BY and aggregate functions in a query Super.

    In this case, it may be simpler to use the analytical SUM, rather than the SUM function.

    SEE below, the application and all the sql to create tables and test data.

    Thank you; It is very useful.
    It would be even more useful if you included only the columns you really need, for the party, you don't already know how to do. For example, it seems that you need only to display 2 columns and area areaid to the table areas. ConfigId can be very important for this request, but you already know what to do with configid? It seems that the other columns of this table play no role in this issue and comes confusion.

    The average time for a first response on this forum is less than 10 minutes. I think people did flee seeing siuch a long message.

    ...
    TRUNC (
    24
    * (CASE
    WHEN l.starttime > l.endtime THEN l.endtime + 1 - l.starttime
    ELSE l.endtime - l.starttime
    END))
    hours,
    

    Why do you enter startime after endtime? If they are on separate days, record the days exactly.

    ...
    WHERE     UPPER (l.leavetype) = 'XYZShift'
    

    The expression to the left of the = sign is guaranteed not to contain all small letters, so it will never equal to "XYZShift".

    ...
    ORDER BY e.lname||', '||e.fname||' - '||e.initials DESC ,u.startdate DESC 
    

    A clause using ORDER BY in this subquery is just a waste of resources. (I'm not talking about analytical clauses ORDER BY;) I mean query ORDER BY clauses, like the one above).

    ) WHERE rn BETWEEN 1 AND 75
    order by rn;
    

    --------------------------------------------------------------------------------
    OUTPUT CURRENT

    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES
    12,1,753948,TEST,Three,Employee,E3,4/17/2013,,,8,0
    12,2,753948,TEST,Three,Employee,E3,4/15/2013,,,8,0
    12,3,753948,TEST,Three,Employee,E3,4/12/2013,08:00,12:30,4,30
    12,4,753948,TEST,Three,Employee,E3,4/8/2013,,,8,0
    12,5,753940,TEST,Two,Employee,E2,4/12/2013,08:00,13:45,5,45
    12,6,753940,TEST,Two,Employee,E2,4/11/2013,,,8,0
    12,7,753940,TEST,Two,Employee,E2,4/9/2013,,,8,0
    12,8,753940,TEST,Two,Employee,E2,4/8/2013,,,8,0
    12,9,753938,TEST,One,Employee,O1,4/17/2013,,,8,0
    12,10,753938,TEST,One,Employee,O1,4/12/2013,08:00,14:20,6,20
    12,11,753938,TEST,One,Employee,O1,4/9/2013,,,8,0
    12,12,753938,TEST,One,Employee,O1,4/8/2013,,,8,0
    

    I get only 9 rows in the result set when I run your query. Please zip code that you actually run and the results you get in fact.

    DESIREE OUTPUT

    RECORD_COUNT,RN,EMPID,AREA,LNAME,FNAME,INITIALS,STARTDATE,STARTTIME,ENDTIME,HOURS,MINUTES,EMPTOTAL,GRANTOTAL
    12,1                 ,753948,TEST,Three,Employee,E3       ,4/17/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,2,753948,TEST,Three,Employee,E3       ,4/15/2013   ,               ,             ,8        ,0           ,28:30         ,88:35
    12                    ,3,753948,TEST,Three,Employee,E3       ,4/12/2013   ,08:00       ,12:30     ,4        ,30         ,28:30         ,88:35
    12                    ,4,753948,TEST,Three,Employee,E3       ,4/8/2013     ,               ,             ,8        ,0           ,28:30         ,88:35
    

    Do you really want this order, with 'Tw' sorts before 'Th '?

    12                    ,5,753940,TEST,Two,Employee,E2         ,4/12/2013   ,08:00       ,13:45     ,5        ,45         ,29:45         ,88:35
    12                    ,6,753940,TEST,Two,Employee,E2         ,4/11/2013   ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,7,753940,TEST,Two,Employee,E2         ,4/9/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,8,753940,TEST,Two,Employee,E2         ,4/8/2013     ,               ,             ,8        ,0           ,29:45         ,88:35
    12                    ,9,753938,TEST,One,Employee,O1         ,4/17/2013   ,               ,             ,8        ,0           ,30:20         ,88:35
    12                    ,10,753938,TEST,One,Employee,O1       ,4/12/2013   ,08:00       ,14:20     ,6        ,20         ,30:20          ,88:35
    12                    ,11,753938,TEST,One,Employee,O1       ,4/9/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    12                    ,12,753938,TEST,One,Employee,O1       ,4/8/2013     ,               ,             ,8        ,0           ,30:20          ,88:35
    

    I think you want something like this:

    WITH   u      AS
    (
         SELECT  empid,
                    startpp + day_number - 1     AS startdate,
                    NULL                             AS starttime,
                    NULL                    AS endtime,
                    8                    AS hours,
                    0                    AS minutes
            FROM    schedules      s
                JOIN    payperiods     pp  ON   pp.periodid = s.periodid
         UNPIVOT ( v
              FOR day_number IN ( day1  AS  1
                                           , day2  AS  2
                                  , day3  AS  3
                                  , day4  AS  4
                                  , day5  AS  5
                                  , day6  AS  6
                                  , day7  AS  7
                                  , day8  AS  8
                                  , day9  AS  9
                                  , day10 AS 10
                                  , day11 AS 11
                                  , day12 AS 12
                                  , day13 AS 13
                                  , day14 AS 14
                          )
                   )
             WHERE   SUBSTR (v, 1, 4) = 'SHFT'
         UNION ALL
            SELECT  empid,
                     startdate,
                     TO_CHAR (starttime, 'HH24:MI'),
                     TO_CHAR (endtime,   'HH24:MI'),
                     TRUNC ( 24
                         * CASE
                                   WHEN starttime > endtime
                       THEN endtime + 1 - starttime
                             ELSE endtime - starttime
                            END
                    )               AS hours,
              MOD ( FLOOR ( (endtime - starttime)
                             * 24 * 60
                       )
                  , 60
                  )               AS minutes
            FROM    leavereq     l
          WHERE   UPPER (leavetype) = 'XYZSHIFT'
                AND     starttime          IS NOT NULL
                AND     approval         = -1
                AND     canceled         = 0
    )
    ,     join_results     AS
    (
         SELECT  COUNT (*) OVER () record_count,
                        ROW_NUMBER () OVER ( ORDER BY  e.lname          DESC
                                   ,            e.fname           DESC
                             ,            e.initials      DESC
                             ,         u.startdate     DESC
                             )        AS rn,
                    u.empid,
                    a.area,
                    e.lname,
                    e.fname,
                    e.initials,
                    u.startdate,
                    u.starttime,
                    u.endtime,
                    u.hours,
                    u.minutes,
              ( 60 * SUM (u.hours)   OVER (PARTITION BY  e.empid)
              )    + SUM (u.minutes) OVER (PARTITION BY  e.empid)     AS emp_minutes,
              ( 60 * SUM (u.hours)   OVER ()
              )    + SUM (u.minutes) OVER ()                    AS grand_minutes
            FROM     u
         JOIN     employee  e  ON   e.empid     = u.empid
         JOIN     areas        a  ON   a.areaid     = e.areaid
         WHERE     a.configid   = 1000
         AND     startdate    BETWEEN TO_DATE ('4/7/2013',  'mm/dd/yyyy')
                        AND     TO_DATE ('4/20/2013', 'mm/dd/yyyy')
    )
    SELECT       record_count,     rn,        empid,     area,    lname, fname,
           initials,     startdate, starttime, endtime, hours, minutes,
           TRUNC (emp_minutes   / 60) || ':'
                                      || TO_CHAR ( MOD (emp_minutes, 60)
                                       , 'FM00'
                                  )     AS emptotal,
           TRUNC (grand_minutes / 60) || ':'
                                      || TO_CHAR ( MOD (grand_minutes, 60)
                                       , 'FM00'
                                  )     AS grandtotal
    FROM       join_results
    WHERE       rn     BETWEEN      1
              AND     75
    ORDER BY  rn
    ;
    
  • Need help to add the libcurl library in QNX momentics IDE

    Hello

    I am new to the native SDK development for Tablet OS, I'm working on an application that were a part of the user interface, we need to manage the HTTP connections and also need to run in the background.

    I tried, but was unable to download the library libcurl to handle HTTP connections. Can someone give me the link to download the file to library for QNX momentics IDE and a source code example of the use of this library for manipulation of HTTP requests analysis JSON ?

    Also, I need to find a way to run my application in the background. So I'm looking for something to do.

    Thanks in advance .

    libcurl is integrated in the NDK. Simply import the headers in the file "curl" such as . Be sure to refer to the library (curl) in your project.

  • Need help to add serial port to a virtual with "Output to the file" computer in PowerCLI

    I have a requirement where I have to add a serial port to a virtual computer that is an Ubuntu operating system and the port type must be 'output to the file"with a file name specified in a data store on the same ESX host.

    Can anyone provide me with a script of powerCLI for this please?

    Thank you very much

    Suparna

    I advise you to upgrade to 4.1 PowerCLI.

    If this is not possible use the attached script that works for versions pre-version 4.1 PowerCLI.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • I have 2 problems-how can I activate my Add ons and how to uninstall Windows Anti Virus. I need help, please.

    I have Windows XP 32-bit with IE8 Add ons.  I mainly use Firefox Mozilla for my browser and Yahoo as my home page.  Anyway, I have tried all the support and help guide and technicians told me to do to get add ons to open and activate but in vain.  This computer was given to me as a profession, and it was used in a Bank, so I think that the system administrator has disabled the add ons.  I myself as an administrator and use the tips and tricks given windows and Microsoft, but I always run up a wall.  I need help, please.
    I also need to know how to uninstall Windows antivirus software.  I can't find anywhere on my computer.  I feel really stupid and he is probably right in front of my face, but I can't find it to uninstall.  I have McAfee that I paid dearly for if I want to use it until it expires.

    This "Microsoft antivirus' witness (AKA Trojan W32/FakeAlert) hijackware infection!

    If you manage to somehow move to Win7, you will always have an infected computer.

    The ONLY way to solve the problem is by formatting the current hard drive and do a clean installation of Windows, whether it is WinXP or Win7.

    The ONLY way you can do a clean install of Windows XP if you have disks that came with the computer or if by chance, there is a hidden partition restore (not to be confused with the system restore).

    If your kids er - well & their spouses are going to spend money on a new HARD drive, they'be be better spend on a low-end Windows 7 computer and brand-new (for example, a netbook or a mini).

    NB: Any data on your Windows XP computer must be considered 100% reliable! (This includes all of your usernames and passwords, for example, those used for online banking, etc.) You do NOT want to put ALL the data from Windows XP to a new computer or HARD disk.

    Good luck, Grandma. Hope that your grandchildren will treat you better than their parents.

    PS: Time wounds all heels.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • Hello, I need help with my photoshop, rececently the majority of my family disappeared merger options and I cant access AVC and other options ive tried reset preferences and it seems to come back but when I add an image and try add text again

    Hello, I need help with my photoshop, the majority of my family rececently disappeared options fusion and I can't access strokes and other options ive tried to reset the settings of preference and he seems to come back but when I add an image and you try to add text again, they'll only options I have are drop shadow , gradient, Chromakey, shine of satin overlay, inner (I use photoshop cc 2015) Please help, my Skype contact options are: RoblivionM8 and email:[email protected]

    Thanks for your time

    Your first screenshot shows the layer style dialog where not all types of effects are indicated on the left. Bottom left of the dialog box, you see a small icon fx with a menu arrow drop-down. Use drop down the menu and make sure all you click on show all effects or restore the default list. I don't know what you're trying the shoe on the second screen capture.

  • Need help - domain deleted and cannot add-fault domain already exists - website down

    Trying to reconfigure our domain configuration, I removed the main domain name to add again so that it does not point to an external DNS server.

    I deleted the domain and now when I try to add again, I get the following error:

    Domain already exists.  Please delete all the records associated with this domain before adding it again.

    I have no way to present a plane ticket when I go to help and support and our site is now down from the home page.  I need help as soon as POSSIBLE.

    I was able to submit a case when I switched browsers (Chrome apparently does not display the bar/case of research presentation).  The case is

    OBNW5020171

    The area, I'm trying to add is surfaid.org

    Hey Mike.Avocado26,

    I think I erased the field wildwasatchmedia.com in our database. Can you please try adding it again now?

    See you soon.

  • I'm suddenly needing help with my browser Firefox (6.0.2)

    Hello
    I'm suddenly needing help with my browser Firefox (6.0.2)

    (OS: I use Windows XP).

    When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.

    I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.

    This problem started today, September 8, 2011 and has never happened before.

    Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?

    I also noticed that just before I "opened" Firefox, I now get a small box indicating:

    [JAVASCRIPT APPLICATION]
    Handl exc in Ev: TypeError: this oRoot.enable is not a function

    This never appeared before - I hope that it offers a clue has what is wrong.

    The browser not be stuck in Mode safe, said by the way.

    Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
    (A friend sends this request in my name from their pc)

    Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.

    If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
    In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.

    Thanks in advance.

    One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.

    Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.

    See:

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

Maybe you are looking for

  • All-in-one Pavilion 23-Q227C: HP install and download Assistant does not

    Whenever my computer starts up, the HP download and install the wizard tries to run to download a driver Realtek (SP74157) and HP Support Assistant (SP71727).  It fails each time, with a pop up that says "installation HP and download Assistant works

  • Lenovo Thinkpad x 201 display problem

    OK so I probably never have the strangest problem with this laptop, so the problem started when the screen no longer works correctly and would work only at a certain angle or when you apply slight pressure on a certain part of the screen, the correct

  • Error: Hex 0xBFF60492

    Hello together, I wanted to use a video camara Sanyo Xacti CG 10 in LabView. Using the NOR-IMAQ for USB Snap, I get the following error: IMAQ Vision: (Hex 0xBFF60492) Ungultige Blit function of Videoausgangs. Is it possible, that I can not use this d

  • Alert ID: PrintJobDestroyedwindow

    My company is running a Windows 2000 Server as a print server and today I received a warning as follows, causing the service to stop running the application printing: 05/03/2011 07:14:42:389 UTC: 21:14:42:389 05/02/2011Log type: alert level: 1 bytes:

  • on my program closed, the Hibernate feature has disappeared

    How can I get the Hibernate option on my closed proceedures.  I got it and all of a sudden he disappeared