Text Date in sort order of date

Hi All;
Below is my expression in SQL 
(CONVERT(CHAR(4), e.createdon, 100) + CONVERT(CHAR(4), e.createdon, 120) as createdon
its gives output Oct 2013
I need to sort this expression in date order
Is this possible?
Any help much appreciated
Thanks
Pradnya07

No. But why not simply sorting by date?
SELECT CONVERT(CHAR(4), e.createdon, 100) + CONVERT(CHAR(4), e.createdon, 120) AS createdon
FROM yourTable e
ORDER BY e.createdon;
btw, using SQL Server 2012+:
SELECT FORMAT(e.createdon, 'MMM yyyy')
FROM yourTable e
ORDER BY e.createdon;

Similar Messages

  • How do I delete duplicate songs in my iTunes? I have hundreds and I don't want to delete them one by one. They were all added on the same date, so sorting by the date won't help.

    How do I delete duplicate songs in my iTunes? I have hundreds and I don't want to delete them one by one. They were all added on the same date, so sorting by the date won't help.

    Hi, if this is in regards to your library simply open up itunes and do the following steps:
    Click File
    Scroll down to "show duplicates"
    A list will then appear of your duplicate song titles.
    Be sure to CAREFULLY review each song to make sure it is a duplicate ( as I have some music that is the same song but live, acoustic etc...)
    Proceed to manually delete each song from the list and leave alone any song that you wish to keep.
    Best of luck,
    Cait

  • Req. delivery date and plan order finish date relationship

    Dear Experts,
    I have a question on setting the req. delivery date and plan order finish date relationship. Now, I want the plan order finish date is one day before the req. delivery date, is it possible to set it in configuration? Please advised! Many thanks!
    Regards,
    Matt Yim

    Matt,
    Please use a schedule margin key(SMK) in the material master MPR2 view which has float after production defined as 1day.
    If there are no SMK with that defination then you can define you own in customisation and assign the same in the material master. (SPRO--->Production ->MRP->Planning ->Scheduling and Capacity Parameters->Define Floats).
    Regards,
    Prasobh

  • Copy Sales Order delivery date to Delivery Order delivery date

    Hi,
    Is there a way to create a FMS to copy the sales order delivery date to delivery order delivery date?
    Thanks
    Fabian

    Hi Fabian,
    I am not sure whether I have understood your requirement correctly.
    CopyTo also works for creating a delivery document from more than one sales order as base documents and base ref is available in line table than in parent table.
    The work around could be to create a UDF in marketing documents & update this UDF in sales order using FMS or using SBO stored procedure.
    Now, once after sales order is copied to delivery the UDF value is available in delivery and u can create one another FMS to get the UDF value into Delivery's Delivery Date.
    Hope this helps.
    Best Regards
    Satish

  • "Date Added" sort order problem when importing folders

    I sort by "Date Added" to view my iTunes library, and use the middle "view" button to view tracks grouped as albums with artwork. This works mighty well except when I'm importing folders containing the files in an album, such as those I get from eMusic--the tracks are displayed out of order when I do this. The only solution I've found so far is to import one track at a time. Any ideas how I can get those tracks in there in the right order when importing a folder? Any scripts hanging around that will do it right? Thanks to all....

    What sort order do you have selecting in the sort drop-down?  There is no "correct" sort order.  You can sort on any metadata you can show in the Browser.  The sort drop-down is located in the top border of the Browser, near the left corner.  Every container in Aperture retains the sort order it last had.  When you manually move an Image in the Browser, the sort order is changed to "Manual".

  • How to change Finder View Arrange Date Created sort order

    When yoo go to a list of photos in a file under Finder, they can be sorted in different ways, but the most common one for me is by Date Created.  That's all good, but they come out with the latest date first on the list and the earliest at the bottom.  I prefer the opposite to be ideal, but I can find no way or information on how to reverse the sort order.  Any help out there? Thanks.

    Hi, Richard -
    Look for a small triangle in the column's title bar/button. Click on that triangle - it should switch from pointing down to pointing up (or vice versa), indicated the sort order has been reversed.

  • Setting "Date Received" sort order via Applescript?

    For my 86-year-old Mom, I want to create an applescript that will always ensure upon launch that her Apple Mail's inbox is always the selected mailbox, and that the sort order is set to Date Received with the newest email at the top. (I'm assuming that would be Descending?) She keeps clicking on the column heads by accident which messes up the inbox's sort order -- and then she doesn't know what to do to correct it. (Well, I've shown her, but her memory isn't such that she can remember it tomorrow after drilling her on it today.)
    I found a way to make sure the sort order is by "Date Received" but I haven't been able to determine if I can ensure the sort order or not.
    Any help would be greatly appreciated!
    Message was edited by: BrianJohns

    Dimaxum,
    Thanks for your thoughts and the link. I've been there and boy, if there's a solution in there I haven't found it yet! Lots to look at.
    I would love to be able to freeze the UI settings in Mail and prevent Mom from messing up the sort order. Haven't figured out how to do that or even if it's possible. Short of that I'm thinking that running an Applescript to correct anything that might have been changed last time she was in the Mail application is the best I can do. I have the Applescript set to run at login, and it takes care of launching Mail when she boots up her computer. I also need to reset the position of the mail window on her screen and the size of the window and whether or not the preview pane is showing. If she accidentally resizes her window, or gets it off the screen, or loses the preview pane -- she's totally lost.
    I've found Applescript examples that let me perform a menu action, but there's nothing to check the state of "toggle" items -- for example, command-1 both closes and opens the Activity window. I'd like for it to only make sure that Activity window is open. Mom keeps closing it and then she wonders where it went.
    I could do all this stuff "back in the day" with QuicKeys. I'm thinking I should be able to do it with Applescript -- but I've never found Applescript (or automator) to be as understandable and usable as the old QuicKeys was. I do OK with Applescript as long as I can find an example -- but coming up with syntax and stuff like that out of the blue requires more experience with it than I'll ever have.
    I just looked up the price for QuicKeys. $60 -- wow, I'd love to have it again but that's just too pricey for this single application.
    Any more ideas or pointers, anyone??
    Message was edited by: BrianJohns

  • Delivery date and sales order creation date

    Dear all
    Can you please explain the relation between delivery date and sales order date. In my case i can create delivery with delivery date as before the sales order date... how it is possible that i can create delivery before the sales order date.??
    Please explain.........
    Warm Regards
    Inder Pal

    Hi,
    Sales order date: Date on which the customer officially places an order to your company.
    All the commitment and product allocation counting starts with reference to this date.
    e.g. customer says that the goods are required from 20 days of placing order, then from this date the calculation starts.
    Delivery date: Date on which after the system goes through material availability date, replenishment time, calculates the date on which physically the goods can be delivered to the customer.
    e.g. customer orders 100 qty of material X in 15 days, you will hve to check this delivery date through availability check which can be done in sales order and also delivery.
    payment date is based on this delivery date.
    regards,
    Siddharth.

  • How to fetch post goods issue date and sales order creation date

    Hi All,
    How to find out the difference between SD Sales Order Item Creation Date and final Post goods issue Date. I would like to know how to fetch those dates and what is the relationship between the tables from which i will get the dates.
    Please let me know the solution .
    Thanks in advance.

    Hi,
    Sales order creation date is when u raise a sales order in favor of the customer using VA01.......using ATP logic system purposes the material availability date....
    after saving ur sales order...when u raise the Delivery using VL01n  w.r.t to OR...than u have to perform picking ....In the picking Tab...specify the amount to be picked than press Post Good Issue....means the goods left the company premises ..
    You can the fetch the values using tables-  Use T code   SE12  or SE16
    Vbak-----order header
    Vbap-----order item
    Vbek-----order schedule line
    Likp-----Delivery header
    Lips----Delivery item

  • How to back date the sales order document date

    Hi Expert,
    Can i change the document date in the VA01 to back date from time to time?
    the document date can be forwarded to future date however not allow to back date.
    If can kindly let me know where is the control or configuration.
    Thank you.
    Regards,
    Yong Kok Wah

    Hi
    I checked and changing date to past one is allowed in Sales order. Once date is changed, the billing date changes to past date. But this is not copied to schedule line and also to pricing date. Hence then re availability check and pricing determination will be needed.
    Furthermore i m not able to understand why back dating is needed. According to me if production allocation is used then incoming order qty will not be updated again or may show discrepancy.
    Hope this helps. Reward accordingly.
    Kind regards
    sandeep

  • Importing videos: rename uses correct date but sorted to incorrect date folder

    Hello
    I know there is an issue with importing photos directly from a device, that's not what's happening here.
    I  import photos from my camera's SD card and I rename them as they import.  Photos and video are both renamed correctly, but only the photos are sorted correctly.  The videos seem to sort based on the additional time zone adjustment, so mostly they end up in the folder for the next day (corresponding to an additional +12 hr, as though lightroom was adding the time zone correction to the local time rather than to the GMT time).  In gallery view I need to sort by name in order to sort by capture time because the renaming is the only feature that reads the correct capture time.  Sorting by capture time uses the capture time displayed in the metadata (in the right panel in the library module), which seems unrelated to the capture time.  I think it might have somethign to do with the import time, but it doesn't match any of the properties in windows explorer.
    For example:
    I took a video at 2015-02-07 1509, and that time/date appears in it's name
    It was taken in New Zealand in a +12 hr time zone (so GMT time 2015-02-07 0309, and if we apply the time zone correction to the local time it would be 2015-02-08 0309)
    When is was auto-sorted during the import it ended up in the 2015-02-08 folder
    The lightroom metadata capture time is listed as 2015-02-08 2158
    The windows explorer date modified is 2015-02-08 1509 (the correct capture time)
    The windows explorer date created and date accessed are 2015-02-08 11:27
    Note that the camera has GPS and photos are GPS tagged, so they are linked to the time zone.  As far as I can tell the videos are not GPS tagged (no GPS coordinates in properties in windows explorer).
    I'd like for the metadata to show the correct capture time and for the videos to be sorted by that correct capture time.  Lightroo obviosuly has the ability to read the capture time correctly, because it does so for the naming.  I have no idea what's going on here and would be heaps grateful for help from the wonderful adobe forums community (you guys haven't let me down yet, you beat any customer support line I've ever tried).
    PS: This is the first of a few issues I'm having with lightroom and capture time and  videos, so if you like a challenge stay tuned as I post them all up.  I'm still going through them but briefly:
    - similar video-only issues with videos from another camera: I have to double check to see if the details are the same
    - I'm having time zone issues with screenshots and saved snapchat photos from my iphone even when they are imported from a separate folder
    - accessing the capture time of iphone screenshots/snapchat photos: they get renamed based on a capture time (either the correct or time zone offset, but always something meaningful and not a blank or random time) but lightroom won't display the capture time metadata when looking at only those images, making the time zone adjustment very difficult

    LR's support for video metadata is incomplete and buggy.  Add your vote and opinion to this thread: Lightroom: Metadata applied to videos in Lightroom isn't available in other applications.

  • Help with excel grouped data and sorting to keep data intact

    I have a master spreadsheet with lots of data. I am trying to grouped the data based on physical address/city, add the values and once done sort it by valuation based on descending order by valuation but my data keep messing up.
    So in Row 1/col A: Address 1; Col B City: XXX; Col C: Valuation $$$
    Row 2/col A: Address 1; Col B City: XXX; Col C: Vauation $$$
    Row 3/col A: Address 2; COl B City: YYY; Col C:  Valuation $$$
    SO I sort by city and in ROw 1/2 same city with same address, I grouped it.  THen I created a new row below Row 3 and add up the grouped data (i.e. ROw 1 and 2).  I go through the entire list to finalize the grouped locations.  
    But when I am done and I sort by Valuation, all my data messed up coz I created a new row with addition of grouped location valuation and the formula gets messed up.
    Any one with ideas please help.  My deadline for this project is just a week away and I am freaking out.
    THanks in advance.

    it seems upload a sample is more clearly about the required.
    KR

  • List View: How to force update of *actual* file dates when sort by date?

    List View: How do I force and update of actual file dates when sort by date?
    When I go in, I often see the sort order and dates from 12-15 hours ago!
    not good

    Hi, did you ever get that Windows® Sharing thing worked out?
    On this problem, If it's just that you need the Finder to wake up to the fact that it needs to update the window give a try with Refresh Finder - 1.3...
    http://www.versiontracker.com/dyn/moreinfo/macosx/33066

  • Display dropdown by key data with sorting

    Hi,
    My requirement is to display dropdown by key data with sorting getting this data from XML in KM.
    Tell me different possibilities to sort the data.
    Regards,
    surya.

    Hi,
    Use DropDownByIndex instead of DropDownByKey
    Create a node with a attribute for eg. Colors node with Color attribute and add the values in the elements of the node, Bind attribute to DropDownByIndex UI.
    Create a custom comparator class like below
    import java.util.Comparator;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.progmodel.repository.enums.WDComponentLifecycleEnumInfo;
    public class CustomComparator implements Comparator {
         String attribute;
         public CustomComparator(String attrib) {
              this.attribute = attrib;
         public int compare(Object o1, Object o2) {
              try
                   IWDNodeElement units1 = (IWDNodeElement) o1;
                   IWDNodeElement units2 = (IWDNodeElement) o2;
                   return units1.getAttributeAsText(attribute).compareTo(units2.getAttributeAsText(attribute));
              catch (Exception e)
                   e.printStackTrace();
              //arbitrary order
              return 1;
    Once you read values in the Colors node, call the sortElements method of the node as below to sort the elements of the node
    wdContext.nodeColors().sortElements(new CustomComparator("Color"));
    Regards,
    Amol

  • Production order - Master data explosion date

    Dear Team,
    I am creating the production order in CO01. While creating the production order, i am choosing the backward scheduling. Since i have selected the backward scheduling, i have given the finish date as "27.02.2012". And in the tab "Master Data", i was refering the field "Explosion Date". The explosion date is been displayed as 20.02.2012 (Routing and BOM explosion date).
    How this explosion date been determined based on the scheduling types (forward scheduling, backward scheduling)?. Is any configuration to be done to calculate this explosion date?
    What is the importance of explosion date in production order? will it affect the production order? Because in my production order the explosion date occurs in future ie, 20.02.2012. (as mentioned above).
    thank you
    psk

    Dear PSK,
    The explosion date refers to the date when the BOM & Routings are exploded on the orders i.e. applied. The explosion date can be controlled based on the settings in the SPRO.
    Go to SPRO - Production - MRP - Plant parameters - Carryout overall maintenance for plant parameters  (Transaction: OPPQ).
    In the plant pameters for a particular plant and in the tab 'BOM Explosion' we can determine how the system should can calculate the explosion date.
    Explosion date is controlled based on the order start date or finish date. If  the production order is added manually the system determines the explosion date as follows:
    Case 1:
    If you have specified the order start date on order creation the system takes this date as the explosion date for the bill of material.
    Case 2:
    If you have specified the order finish date on order creation the system calculates the explosion date from the order finish date minus the in-house production time defined in the material master.
    As per your example it looks like in your system the explosion date is controlled by the 'Start Date' due to which the explosion date equals the order start date.
    Hope this is helpful. Pl let me know if you need further help.
    Thanks,
    Satya

Maybe you are looking for

  • How can I compress the audiofiles on my hard drive as it is full.

    I have just bought a Classic and have been busy converting my audiofiles to AAC files to sync to my iPOD. However, my hard drive is now full but I am under the impression that if I copy any files back to my external hard drive I will lose them when I

  • Get current Action in a GP process in using GP API

    I want to get the current Action or all list of action in a GP process in a web dynpro callable object. Can anyone help me.

  • Why does Find not see a visible file at Volume level?

    I recently searched (Find) my iMac's internal hard drive for a file that I knew I had created ("MAC addresses.doc"), but it found no such file, either by File Name or Contents. I had to try to remember where I filed it, and then I found it in [Macint

  • Popping up Disco portlet in portal?

    Hi folks. This is a Discoverer portlet question for 9iAS. In short, it seems that you can't set a portlet to pop up. (I am not trying to pop up Disco Plus or the Viewer -- I am trying to pop up a portlet specifically. In the tar I've entered at Oracl

  • Items align in region

    Hi all, I have 2 regions in my application one is html form region and another is tabular form . I created 6 items in html region and created DA for the items to hide according to the value of items and then created tabular form find below the sample