Week of the year number appears out of sync with the day of week the week #

Using the querry below on on a table where the pdate value is a sequential list of dates on an Oracle 11 database the results show the week of the year number changes on the day of the week number 7 not the day of the week number 1. Is there a patch to fix this?
select
pdate,
to_char(pdate,'D') dow,
to_char(pdate,'Day') Day_name,
to_char(pdate,'WW') week_of_the_Year
from daily_period_tab
where pdate >= '07-jan-11'
and pdate <= '09-jan-11'
07-JAN-11     6     Friday      01
08-JAN-11     7     Saturday      02
09-JAN-11     1     Sunday      02

Hi,
Independent of you NLS settings, you can do this:
SELECT     TRUNC ( dt + 1
           , 'IW'
           ) - 1     AS sunday
FROM     table_x;The output in the sunday column will be the Sunday on or before dt. The "magic number" 1 indicates that your week starts 1 day before the ISO week, which starts on Monday.
Or if you want to use your NLS settings:
ALTER SESSION     SET NLS_TERRITORY= 'AMERICA';
SELECT     TRUNC ( dt
           , 'DY'
           )          AS sunday
FROM    table_x; 
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using.

Similar Messages

  • When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    When I watch tv shows in Front Row that I've bought off iTunes the audio gradually falls out of sync with the video. It does not happen with other files that I have converted into mp4s. Any ideas for fixing this? It's a huge bummer...

    I too have the same problem.  The audio drop out of sync in about 5 sec in not uncommon for the audio to be 30+ sec behind video.  Apple needs to fix this!!!!!!!!!!!!!!!!   its a joke,  my iphone is all messed up after the last update as well.  at one time not to long ago apple products and software were top rated, not so much any more, more and more problems are showing up and apple is unwilling or unalbe to fix the many issues.  Apple needs to fix the audio sync problem, it not the computer hardware or other software it ITUNES!!!!,  there is no workaround other then hitting pause and hitting pause and hitting pause to temp fix the problem. 

  • When I watch my tv shows in itunes, the people's voice is out of sync with the picture.  any suggestions???

    When I watch my tv shows on my mac computer thru itunes, the voice is out of sync with the picture.  any suggestions???

    Let's try the following user tip with that one:
    iTunes for Windows 10.7.0.21: "iTunes has stopped working" error messages when playing videos, video podcasts, movies and TV shows

  • Eclipse XQuery expression validation failed: The current configuration is out of sync with the XQuery resource in the repository.

    I created a wsdl based on a dbadapter in jdeveloper, imported into eclipse and created the biz and the proxy and uploaded to oracle service bus, it works fine,
    but happens now that i need to have a xsd and wsdl with business names and not table names, invented to create a xsd and wsdl file in jdeveloper
    and then went to eclipse and tried t xquery tranformation, but when i add the replace in the message flow in the filed in Variable : body and Expression i look for the xquery and in the binding trying to put
    $body/input parameter, get the following error [RouteNode1, Replace action] XQuery expression validation failed: The current configuration is out of sync with the XQuery resource in the repository.
    what im doing wrong or its configuration
    thanks in advance sonia

    thanks
    ok have created a table with only in column varchar2(1)
    then the type object and the procedure to insert it works the proxy in the osb if i test it inserts
    now in jdeveloper i created an xml file with
    <?xml version="1.0" encoding="windows-1252" ?>
    <vessel>
    <barco>a</barco>
    </vessel>
    then i created a xsd based on this xml, and a wsdl based on the xsd
    in eclipse created a xquery transformation and selected source as the xsd created in adf and target the xsd input parameter, dont know why in the purple ball of the input parameter it puts a ?, an a f.
    then in the proxy xpath not writing anything in variable body and in the expression select the xquery and in binding select the parameter

  • HT2729 I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well.  What settings can I change to

    I bought a TV episode from iTunes (I have version 10 installed), but when I try to play it on my laptop, it keeps stopping and starting, with the voices out of sync with the action.  The action is stop/start as well., and occasionally it skips 5 or 10 seconds altogether, making it impossible to watch.  What settings can I change to fix the problem.

    Repair your QuickTime.
    Control Panel > Programs n Features > highlight QuickTime and click CHANGE then REPAIR.

  • Just bought an iMac and use iCloud.  calendar appointments on iMac are displayed 24 hours out of sync with the iPhone.  the iPad and macbook air pick up the same information correctly.  why is this?

    just bought an iMac and use iCloud.  calendar appointments on iMac are displayed 24 hours out of sync with the iPhone.  the iPad and macbook air pick up the same information correctly.  why is this?

    Hi smokeondz,
    Thanks for visiting Apple Support Communities.
    If your iCloud calendar entries are not displaying as expected, start with the troubleshooting steps in this article:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Best Regards,
    Jeremy

  • My iTunes is playing the films with sound out of sync with video

    I bought some films off of the iTunes store and whenever they're playing, the sound is out of sync with the video. Why is this?
    Please help.
    Sam.

    Maybe this will help. My first movie I made in IMovie approached thirty minutes long. I read in a book that any movie made in IMovie that approaches that length or longer will start to lose sound sync. The trick is to extract the audio from the video. Sure enough it worked for me.

  • Why is the sound out of sync with the video on my PC laptop?

    The sound is out of sync with the video, it skips (like the old-fashioned vinyl records) or there is no sound at all. As well, the video portion is jerky.
    I'm travelling and don't have access to a TV so have to watch it on my PC laptop.
    I've rebooted my laptop a couple of times, but the problem re-occurs.

    In what app?
    Have you restarted or reset the device?

  • TS1424 when playing video after downloading program the speak is out of sync with the movie. How do I repair this? I'm using a new toshiba laptop with windows 7. Thanks

    when I playback movies or tv programs I've downloaded the speech is out of sync with the video. I have removed itunes as suggested and tried re installing itunes but the problem still exists. Has anyone experienced this and what can I do to fix this? Thanks

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Why does a blank On-The-Go playlist appear when I sync with iTunes?

    Whenever I create an On-The-Go playlist on my iPod classic, a blank one appears when I sync with iTunes. If I have 2 On-The-Go playlists created, one blank one appears when I sync with iTunes.

    Sorry.  I'm looking now and I'm seeing it in my library.  I just thought it wasn't there since it was downloaded on my phone.  But what you said worked about deleting it from my library.  Thank you so much!

  • Change of Video Frame One Sample Out of Sync with Correct Point on Timeline

    Change of Video Frame One Sample Out of Sync with Correct Point on Timeline.
    It has been found on the author's PC that, in Audition 3 in Multitrack View, a video file displayed in the video window will change its frame one sample later than it should do with respect to the correct point on the timeline. This has led to extra work having to be done by the author, as detailed later.
    To demonstrate this issue:
    Create a new multitrack session. Enable the Time and Video windows. Enable only 'Snap to Frames'.
    Using an external program, render a two-frame video clip at 25fps. Let the first frame contain the letter 'A', and the second frame contain the letter 'B'. Making sure that the Display Time Format is set appropriately, in this case at 'SMPTE 25 fps (EBU)', lock this clip on the multitrack timeline, ensuring that the clip starts at time 00:00:00:00.
    Create a mono audio clip of silence at 48kHz 32-bit that is two frames long. Lock it on an audio track, ensuring that the clip starts at time 00:00:00:00.
    Place the cursor at time 00:00:00:01 and create a cue marker at this point by pressing F8.
    Zoom into the timeline so that approximately twenty samples are visible, with the cursor lying on the cue marker in the middle of the screen. The Time window should display 00:00:00:01. The Video window should display the letter 'A'.
    Move the cursor back in time (leftwards) by one sample. The Time window should change its display to 00:00:00:00, whilst the Video window should still show the letter 'A'.
    Move the cursor forwards in time (rightwards) by one sample, so that it overlays the cue marker again. The Time window should change its display back to 00:00:00:01, whilst the Video window remains showing the letter 'A'.
    Move the cursor forwards in time (rightwards) by one more sample. The Time window's display should remain at 00:00:00:01, but the Video window should now display the letter 'B'.
    As can be seen from the above steps, the video's change of frame content occurs incorrectly one sample later than it should; the change of video frame content should occur simultaneously with the change of the frame number displayed in the Time window, which is at the point that the cue marker has been placed.
    The practical effect of this issue is that it has caused the author a huge amount of extra work on an 89-minute long soundtrack-for-video timeline. There were over 1100 changes of shot which the author wished to mark by placing cue markers at the beginning of every shot. This should have been a quite simple process of enabling 'Snap to Frames', stepping through the video, and laying cue markers down by pressing F8 when the shot was seen to change.
    Because currently the Video window (referencing the cursor laying over a cue marker
    i that has been placed on the timeline using the 'Snap to Frames' option
    ) will actually display the end moments of the previous frame rather than the beginning moments of the current frame, laying down a cue marker when the shot is seen to change will actually place that marker at the beginning moments of the second frame of the new shot, not at the beginning moments of the first frame of the new shot, i.e. the cue marker placed will be one frame later in time than it should be. If it is wished for the cue marker to, as best it can, represent the beginning moments of the first frame of the new shot, it has to be manually repositioned so that it is at least a sample later in time than the time at which the shot has actually changed, in order for the Video window to correctly display the content.
    The author had to manually reposition all 1100+ cue markers.
    Ideally, the Video window should display a change of video frame in synchronization with the change of the frame display in the Time window, which occurs at the position of the 'Snap to Frames' point.
    Part of the PC system's specification is detailed below:
    Windows XP Professional Version 2002 SP3;
    Adobe Audition 1.0 Build 3211.2;
    Ad

    obe Audition 2.0 Build 5306.2;
    Adobe Audition 3.0 Build 7283.0;
    ASRock 775dual-VSTA motherboard, BIOS Version P.3.00;
    2.80 GHz Intel Pentium D Processor 915 2x2MB L2 Cache;
    2GB DDRII 667 RAM;
    Matrox G550 DualHead AGPx4 VGA card for Audition's two main work screens;
    Matrox Productiva G100 MMS PCI VGA for two additional "static" information screens;
    4 x PATA HDDs for OS & programs, swapfile & temp, project file sources, and guide audio;
    Onboard Realtek ALC888 7.1 channel audio CODEC with High Definition audio;
    Lite-On DVDRW LH-18A1P;
    VIA OHCI Compliant IEEE 1394 Host Controller.
    ASIO4ALL version 2.8;
    Via Hyperion Drivers 5.16a - (VIA Chipsets INF Update Utility V3.00A, VIA PATA IDE Driver Package V1.90, VIA SATA IDE Driver Package V2.30A, AGP V4.60A);
    Matrox PowerDesk-SE 11.10.400.03;
    Matrox Millennium G550 Display Driver Version 5.99.005;
    Realtek High Definition Audio System Software Version R1.91, Audio Driver Version 5.10.0.5605;
    DirectX 9.0c March 2008;
    Microsoft .NET frameworks 1.1, 2.0 and 3.0 with all service packs.

  • Video - dialog goes out of sync with video

    When I play Movies or T.V. shows on my iTouch the dialog (or audio) gets out of sync with the video. It starts happening after about 5 minutes of play. I close out of the video, re-open it and it's back in sync again for about another 5 minutes.
    I had a second generation iTouch and have just purchased a 3rd gen iTouch and it does it on both. It happens on every movie or t.v. show I watch.
    Any suggestions?

    I really appreciate your help. I tried it with the link you provided and it appears it's the wrong format type. The one I'm trying to convert is a .wmv file. I think that link was mainly for mpegs.
    I did successfully convert a 3rd movie .wmv file using videora, so I have to think the problem lies with this one movie clip. What could it be? It plays fine on my computer! The video itself is fine after the conversion too, it's just moving too fast as if in fast forward mode. Then when the video ends (before the music, cuz it's not in sync), the video keeps backing up and continuing from later and later previous spots until the song ends.
    If you're out of ideas, I guess I'll try to see if I can find the video somewhere else and download it again (I got this video free from a website). It's super cool.. An F-18 pilot video tapes himself performing aerial maneuvers to the song "magic carpet ride". Darn, I REALLY want that on my ipod!!

  • Audio out of sync with presentation (not using full motion)

    When I preview or publish a project using Captivate 5, the audio is out of sync with the presentation. I am not using any full motion recording, which I know has caused audio/video sync issues in previous versions of Captivate. The audio is slide specific, with a separate audio file for each slide. (In other words, I'm not trying to break a large audio file over many slides.) When each slide is viewed individually -- in the workstation, in the preview window, or in the published version -- the audio is synced just fine. The problem arises only when I try to watch the entire presentation (approx. 10 minutes in length). The audio gradually lags behind the visual.  By about half way through the project, the visual presentation is noticably ahead of the audio. By the end, the audio is nearly 4 seconds behind the video. I cannot detect a noticeable change in pitch or speed of the audio, so if the audio is being altered in any way, the alteration is slight.
    However, if I use the playback controls to advance to a single slide, the audio is fine for that slide and those immediately after, although it does gradually get off again as the project progresses. (So, for example, if I start the playback in the middle of the project, the audio will only be off by about 2 seconds by the end, rather than 4.)
    I have tried various publishing options (although I don't think publishing is the problem, since this happens when I preview the project as well). I have used 2 different computers and also tried viewing the published version locally and streaming. None of these alterations seem to make a difference. By the end of the presentation, regardless of how the project is published or viewed, the audio is several seconds behind the video.
    My specs:
    Captivate 5
    Microsoft XP OS
    2 GB RAM
    Publishing to .swf
    Suggestions?

    Hi Mukul,
    Thank you very much for your careful responses. Here are the answers to the questions.
    First of all, the "slow video" behavior does appear only after adding the slides mentioned in previous post.
    1.    I created a “software simulation” project. It IS a capture+audio recording.
    2.    Since I recorded the audio while doing screen capture, almost every slide has audio, which is not convenient to edit at all. Is there any other better way that I missed so that we can keep the audio and video at the same step while editing them? As I know so far, either insert silence or delete a little audio to one slide, the audio becomes short, but the slide duration time is still the same as before unless we change that manually which normally is not precise enough to match the audio.
    3.    I tried to add the blank slides at where there is a pause of speaking and where they are close to the problem slides. Otherwise, the speaking would sound weird.
    4.    Published SWF file size is 20.6 MB.
    5.    I do have two externalized video files for title and end.
    6.    Unfortunately, it is still slow even if it played on a different system.
    And another problem comes up these days. After publication, the screen resolution is not good (like some grey ink left on screen) wherever click or type something. It did not happen before even if worked on the same computer.
    I am very sorry that there are so many problems. I have been working on this for long time. The project totally drove me nuts. Hopefully you have more ideas about that.
    I really appreciate your help.
    Sincerely,
    Linda

  • Wav file gets out of sync with sequence

    Hello,
    I have a 30min sequence that I sent the dialogue to an audio engineer for clean up as an OMF. He sent it back and it gets out of sync about the first 2 minutes or so. By the 30th minute the audio is out of sync about 47 frames.
    I've tried multiple things, couple of observations: the WAV file's waveforms in the timeline show that all audio is in sync, yet when I playback in the timeline audio its out of sync. I even opened up the wav file on Quicktime player and timecodes from quicktime player and my video timeline do match, its only when i place the wav file in the timeline that it appears out of sync.
    I've sent the whole sequence to Soundtrack Pro as a multitrack project. When I playback there it is in sync with the video!!! I export back and still same issue...
    Editing on a Macbook Pro OS X 10.8.4 2.6GHZ Intel Core i7 on FCP 6.0.6.
    The sequence settings: Apple ProRes HQ 25fps. Audio settings: 48 KHz, 16-bit, channel grouped.
    Wave file (sent by audio engineer): 16bit 48.000KHz. Data Rate: 1528.21 kbits/s
    Any help would be amazing!
    Thanks,

    One possibility
    You need to have your easy setup have a frame rate that exactly matches your sequence settings BEFORE you import the audio file.  Doesn't seem to always cause a problem, but it can happen.

  • Audio Out of Sync with Itunes downloaded Movie

    I have searched on here for an answer, but have found none, so I go to the great Mac experts. I have downloaded two shows from Itunes in the last 4 days and during playback on my G4 the audio is out of sync with the picture. This has never happened before. I just updated Itunes with the latest update about a week ago. Is anyone having this problem, and better yet, any experts out there care to weigh in on a solution? It's very annoying. Any help would be greatly appreciated.

    I downloaded a 90 minute TV show and it becomes out of sync @ 51 minutes in. I have no idea why and this has never happened before. Can't seem to find any explanations online so any solutions you find would be greatly appreciated...

Maybe you are looking for

  • 2048 errors

    I just upgraded qt-pro to the latest version and JUST purchased the mpg $20 component from Apple. Now I can read mpg files normal definition but any of my mpg 2 HD files (HDV 1080i - 60i) generate an "Error -2048: Couldn't open file XXXX because it i

  • Help. My iPhone contact list is a mess.

    I use the iPhone's "mail" App to connect to my Outlook, Yahoo mail, Gmail and also sync with my MacBook.  Now the address books from all 4 sources are on my iPhone and they are all separate entries. I kind of expected the iPhone "Contacts" would have

  • In house apps refusing to start

    Hi Everyone, Crazy situation. Users are installing the iTunes on the machines as instructed. The users are using the applications as instructed, but when they connect the device to the machine with iTunes, and restart the applications on the iPod tou

  • Oc4j version bundled with JDeveloper 9i rc

    Hello, is the oc4j version that is bundled with the just released JDeveloper 9irc the final one? "Oracle9iAS (2.0.0.0) Containers for J2EE" it looks a little different from the "technology preview" which can be downloaded seperatly from the otn site.

  • Connection : Toad to Oracle application

    Hi Team, I have a question here I have installed Toad and Apps on my system. Now I would like to know how to establish a connection of toad with oracle application so that the data can be stored in database. Thank You.