Data for weekedays only

Dear All,
I have Production environment I want to write a SQL query which should only return rows in database for weekdays only. There is one column in the table which contains transaction date. Is it possible if we skip weekend transaction for example on Saturday and Sunday or in Middle East weekend Friday and Saturday.
Need help please..............
Regards,

The to_CHAR format D or DAY will work for you.
SUNDAY is 1, MONDAY is 2 and so on.
sudhakar@ORCL>ed
Wrote file afiedt.buf
  1  with sampledata as
  2  (
  3  select (sysdate-level) sdt from dual connect by level < 16
  4  )
  5  select sdt,
  6  to_char(sdt,'DAY') dayn, to_char(sdt,'D') dsy1
  7* from sampledata
sudhakar@ORCL>/
SDT       DAYN      D
22-MAY-10 SATURDAY  7
21-MAY-10 FRIDAY    6
20-MAY-10 THURSDAY  5
19-MAY-10 WEDNESDAY 4
18-MAY-10 TUESDAY   3
17-MAY-10 MONDAY    2
16-MAY-10 SUNDAY    1
15-MAY-10 SATURDAY  7
14-MAY-10 FRIDAY    6
13-MAY-10 THURSDAY  5
12-MAY-10 WEDNESDAY 4
11-MAY-10 TUESDAY   3
10-MAY-10 MONDAY    2
09-MAY-10 SUNDAY    1
08-MAY-10 SATURDAY  7
15 rows selected.
sudhakar@ORCL>vr,
Sudhakar B.

Similar Messages

  • "Use cellular data for" is only showing a few apps

    Hello,
    I just got a new 5S.  I have installed and used maybe 15 or so apps, but when I go to
    Settings -> Cellular -> "Use cellular data for"
    it only shows 5 apps: Calendar, FaceTime, Find iPhone, Passbook, & Skype.
    I would like to see all the apps so that I can control what is using cellular data.  When I read other posts online, it seems like this should show all apps.  Does anybody have any idea why I only see a few apps here or what I can do to display all apps?
    Thanks for any help!

    This troubleshooting guide helped me. Had to try up to step 7...
    iPhone: Troubleshooting a cellular data connection

  • I got the new iPhone 5C. In my cellular settings, under "Use cellular data for", it only show passbook and facetime. How can I add other apps? Also, my carrier is AT&T

    I got the new iPhone 5C. In my cellular settings, under "Use cellular data for", it only show passbook and facetime. How can I add other apps? Also, my carrier is AT&amp;T

    Hello Sophie59
    You should be able to see two different tabs when setting up the email if you go to Other > Add Mail Account. Once you enter in the email address and password, you should be at the next screen to provide more details about the email as far as incoming and outgoing servers and at the top there will be a blue section to add it in as a POP or IMAP email account. Check out the article below for further troubleshooting and emails setup options.
    iOS: Troubleshooting Mail
    http://support.apple.com/kb/ts3899
    iOS: Adding an email account
    http://support.apple.com/kb/ht4810
    Regards,
    -Norm G.

  • How can I upload text master data for attribute-only Charactertic?

    I can't create infosource for attribute-only Charactertic via direct update from Infoobject, because attribute-only Charactertics you can't choose from available infoobject.
    How can I upload text master data for attribute-only Charactertic?
    Thanks!

    Hi roberto,
    I soloved the problem. I can input the attribute-only char directly in the text box instead of choosing from list of infoobjects, but I still can't find the char in infoobject selection dialog even using search.

  • Iphone 5 - "use cellular data for" option only shows Facetime and Passbook

    I have an iphone 5 and I am trying to manage my cellular data usage,
    When I go into Settings - Cellular and I look at the "use cellular data for" option, there are only 2 apps on the list Facetime and Passbook.
    I have seen other posts online that show a long list of apps that you can toggle Cellular data on and off.
    How can I see a longer list of apps.

    In Settings/General/Restrictions if you tap on Cellular Data Use there should be 2 options: Allow Changes or Don't Allow Changes. If you don't see these options is that where you see "Cellular data is turned off for 'Setting'?
    Do you have a corporate MS Exchange email account on your phone? If so your administrator may have added an override on this setting.

  • Please make instagram application for ipad - whatsapp application also we didn't buy cellular data for browsing only :S

    please make stretched official instagram application for ipad -also whatsapp application for ipad we didn't buy ipad with cellular data for browsing only

    Apple only makes/sells a few apps like iWork. Other apps like games, instagram, whatsapp are made by private developers, and are just sold by Apple.
    Whatsapp is a phone app, however, look at these links:
    Install WhatsApp On iPad And iPod touch
    http://tinyurl.com/lp6tsud
    Install WhatsApp to the iPad
    http://ipadwhatsapp.com/
     Cheers, Tom 

  • Design ideas for retrieving Data for Read Only

    Hi All,
    Currently I am in the process of evaluating different design ideas for the search functionality of my application. I am looking for a best option for retrieving the data by executing some complex sql queries with huge query criteria and showing the single or multiple records to the user. But the data is read only. This may involve pagination if the number of records exceeds the page limit.
    There are various options to implement this like JDBC and JDO or using some persistance framework to retrieve the data objects. Please suggest me about a good option for this.
    Thanks in Advance
    Durga

    Currently I am in the process of evaluating different
    design ideas for the search functionality of my
    application. I am looking for a best option for
    retrieving the data by executing some complex sql
    queries with huge query criteria and showing the
    single or multiple records to the user. But the data
    is read only. This may involve pagination if the
    number of records exceeds the page limit. This can typically be handled with a Fast Reader, though this is a coding ideom rather than a true design pattern.
    http://java.sun.com/blueprints/patterns/FastLaneReader.html
    Please suggest me about a
    good option for this.Apache Lucene is worth considering,
    http://lucene.apache.org/java/docs/

  • Source List validity dates for MRP only

    Hi.
    Is there a way to do the following:
    Set purchasing view "source list required" so that the material must be purchased from ANY of the sources on the source list...  AND...
    Setup the source list so that there are no overlaps, and MRP sources from consecutive contracts based on the source list validity dates.
    For example, 1/1/10 to 5/1/10 -> Contract A (mrp relevant);  5/2/10-10/1/10 -> Contract B (mrp relevant).  But on 5/3/10 I want to be able to manually change the requisition away from "B" and release against Contract A.  In other words, I want MRP to get the sourcing close to correct, but allow the user the ability to override the MRP sourcing, AND still ensure that the source the user picks is on the source list somewhere.
    When I try this now, the system generates "Source list not included in list despite source list requirement."  The source list checking seems to be done all the way at the validity period level.

    hi,
    I understood your concept. Please explain it  clearly so that why this message
    is appearing " Source list not included in list despite source list requirement"
    can be found out
    Regards
    G.Ganesh Kumar

  • Red dates for birthdays only in January all the rest are in black

    I have set my calendar up and I can't find a way to make all the birthdays in red for the rest of the months. I can change the text but not the date..

    i got red birthday dates on the January page, but black birthday dates on the other 11 months. please help..

  • How to only show data for a certain period of time for cumulative data?

    I need to show cumulative data for the past 12 months on a chart (e.g. # of accounts). But in order to get the cumulative data for Month 1, I need to cum the data starting from the very first month when we started to add new account which can be Jan 2006. If I put a filter to limit the data to only last 12 months, then my Month 1's cum data will not include any account prior to Month 1. So how do I do this?
    Edited by: user637947 on Feb 5, 2009 2:02 PM

    Hi,
    Try this Filter....
    Opportunity."Close Date" >= TIMESTAMPADD(SQL_TSI_MONTH, -11, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE) - 1), CURRENT_DATE)) AND Opportunity."Close Date" <= TIMESTAMPADD(SQL_TSI_MONTH, 1, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE) + 0), CURRENT_DATE))
    Thanks and Regards,
    Amit Koul

  • After the last up date for Safari (Mac OS X 10.8.5 in a iMac mid 2011 21.5 inch 2.8GHz Intel Core i7) The window don't open or they are there  and only in an outline, kind of like they're behind the screen. I have also done a system update and then a syst

    After the last up date for Safari (Mac OS X 10.8.5 in a iMac mid 2011 21.5 inch 2.8GHz Intel Core i7)
    The window don't open or they are there  and only in an outline, kind of like they're behind the screen.
    I have also done a system update and then a system reinstall.
    What now? incident nr, 526941222.

    After the last up date for Safari (Mac OS X 10.8.5 in a iMac mid 2011 21.5 inch 2.8GHz Intel Core i7)
    The window don't open or they are there  and only in an outline, kind of like they're behind the screen.
    I have also done a system update and then a system reinstall.
    What now? incident nr, 526941222.

  • Problem to calculate the coherence (using NetworkFunction-VI) with only 1 row of data for each, the stimulus and response input

    Hello,
    I am trying to calculate the coherence of a stimulus and response
    signal using the Network Functions (avg) VI's. The problem is that I
    always get a coherence of "1" at all frequencies. This problem is
    already known (see KnowledgeBase document: Why is the Network Functions (avg) VI's Coherence Function Output "1"?).
    My trouble is that the described solution (-> the stimulus and response input matrices need to have at least two rows to get non-unity coherence values) doesn't help me much, because I only have one array of stimulus data and one array of response values.
    Thus, how can I fullfil the 'coherence-criteria' to input at least two rows of data each when I just have one row of data each?
    Any hint or idea is very much appreciated. Thanks!
    Horst

    With this weird board layout, I'm not sure whether you were asking me, but, on the assumption that you were, here goes:
    I found no need to use the cross-power spectrum and power spectrum blocks
    1... I was looking for speed.
    2... I already had the component spectral data there, for other purposes. From that, it's nothing but addition and multiplication.
    3... The "easy" VIs, assume a time wave input, as I recall. Which means they would take the same spectrum of the same timewave several times, where I only do it once.
    I have attached PNGs of my code.
    The PROCESS CHANNEL vi accepts the time wave and:
    1... Removes DC value.
    2... Integrates (optional, used for certain sensors).
    3... Windows (Hanning, etc. - optional)
    4... Finds spectrum.
    5... Removes spectral mirrors.
    6... Scales into Eng. units.
    7... From there, you COULD use COMPLEX-TO-POLAR, but I don't care about the phase data, and I need the MAG^2 data anyway, so I rolled my own COMPLEX-TO-MAG code.
    The above is done on each channel. The PROCESS DATA vi calls the above with data for each channel. The 1st channel in the list is required to be the reference (stimulus) channel.
    After looping over each channel, we have the Sxx, Syy, and Sxy terms. This code contains some averaging and peak-picking stuff that's not relevant.
    From there, it's straightforward to ger XFER = Sxy/Sxx and COHERENCE = |Sxy|^2 / (Sxx * Syy)
    Note that it uses the MAGNITUDE SQUARED of Sxy. Again, if you use the "easy" stuff, it will do a square-root operation that you just have to reverse - it is obtained faster by the sum of the squares of the real and imag parts.
    Hope this helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks
    Attachments:
    ProcessChannel.png ‏25 KB

  • Output does not match data sheet as only 1 report was available for selecti

    Output does not match data sheet as only 1 report was available for selection in hyperion planning.Can anyone help me in resolving this issues.Its very urgent.

    You will need to provide much more detailed information before anybody can help.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Can i add data for current month only

    can I add data for current month only?

        Knowing your plan options is important marlingut! So that we are able to provide correct information, what make and model phone are you trying to add data too? Is this device already activated on your account?
    Thank You,
    MichelleL_VZW
    VZW Support
    Follow us on Twitter @VZWSUPPORT

  • Tree node retrieving data for the 1st node only for 3 data blocks ?!

    Hello alllll
    i have 3 DATA BLOCKS MAster-Detail-Detail ; GL_TYPES -< GL_ACCOUNTS -< GL_COMPANIES
    The Rel between 1 & 2 is
    GL_ACCOUNTS.TYPE_ID = GL_TYPES.TYPE_IDThe Rel between 2 & 3 is
    GL_COMPANIES.ACCOUNT_ID = GL_ACCOUNTS.ACCOUNT_IDi also have a Treewhich is retrieving data in the opposite data blocks the following code used in WHEN-TREE-NODE-SELECTED Trigger and it works fine but not for every node ;
    the node selected shows data for the first node only; Say Assets but if i selected any other node it doesn't return any data ?
    could any boady pls explain to me why is that happening ?
    The following code is:
    DECLARE
            htree ITEM;
            NODE_VALUE VARCHAR2(100);
    BEGIN
    IF :SYSTEM.TRIGGER_NODE_SELECTED = 'TRUE' THEN 
    -- Find the tree itself.
    htree := FIND_ITEM ('BL_TREE.IT_TREE');
      NODE_VALUE := FTREE.GET_TREE_NODE_PROPERTY( htree, :SYSTEM.TRIGGER_NODE ,  Ftree.NODE_VALUE );
      GO_BLOCK ('GL_ACCOUNTS');
       set_block_property('GL_ACCOUNTS', DEFAULT_WHERE, 'GL_ACCOUNTS.ACCOUNT_ID = '  ||
       ftree.get_tree_node_property('BL_TREE.IT_TREE', :SYSTEM.TRIGGER_NODE, FTREE.NODE_VALUE));
    EXECUTE_QUERY;
    END IF;
    END;
    Regards,
    Abdetu...

    Hello Ammad Ahmed
    Thanks really for reply ,i appreciate... :)
    Can you explain little more what is the meaning of this?a tree block on canvas beside 3 data blockS out of 2 tables as follows
    SQL> desc GL_ACCOUNTS
    Name                                      Null?    Type
    ACCOUNT_ID                                NOT NULL NUMBER(10)
    TYPE_ID                                   NOT NULL NUMBER(1)
    ACCOUNT_NAME                              NOT NULL VARCHAR2(100)
    IS_CLOSED                                 NOT NULL NUMBER(1)
    ACCOUNT_ID_PARENT                                  NUMBER(10)
    SQL> desc GL_COMPANY_COA
    Name                                      Null?    Type
    ACCOUNT_ID                                NOT NULL NUMBER(10)
    COMPANY_ID                                NOT NULL NUMBER(2)only table GL_ACCOUNTS has a self rel so on data blocks on forms i have out of these 2 tables 3 data blocks in the following order
    GL_ACCOUNTS_PARENT on GL_ACCOUNTS has a where clause on it's property;
    account_id in ( select distinct account_id_parent from gl_accounts ) on GL_ACCOUNTS_PARENT block i am displaying on 1 row:
    1. the account_id ,
    2. the account
    3. name and account_type_name in a LOV
    on the second block GL_ACCOUNTS depending on the GL_ACCOUNTS table also am displaying muti rows :
    1. the account_id ,
    2. the account
    and a relation on form
    GL_ACCOUNTS.TYPE_ID = GL_ACCOUNTS_PARENT.TYPE_ID AND
    GL_ACCOUNTS.ACCOUNT_ID_PARENT = GL_ACCOUNTS_PARENT.ACCOUNT_IDon the third block GL_COMPANY_COA depending on the table GL_COMPANY_COA
    am displaying the company_id & company_name in multi_rows
    GL_COMPANY_COA.ACCOUNT_ID = GL_ACCOUNTS.ACCOUNT_ID
    how the data will be looking in data blocksam using the following link -> Large trees - using partial tree population
    http://andreas.weiden.orcl.over-blog.de/article-29307730.html
    PROCEDURE PR_FILL_TREE IS
        CURSOR crTop IS
          SELECT ACCOUNT_ID VALUE,
                 ACCOUNT_NAME LABEL
            FROM GL_ACCOUNTS
           WHERE ACCOUNT_ID_PARENT IS NULL
           ORDER BY type_id, ACCOUNT_id;
        nd FTree.NODE;
      BEGIN
          Ftree.DELETE_TREE_NODE(itTree, FTree.ROOT_NODE);
          FOR rec IN crTop LOOP
              nd:=FK_ADD_NODE(Ftree.ROOT_NODE, rec.VALUE , rec.LABEL);
              PR_QUERY_DETAILS(nd, rec.VALUE);
          END LOOP;
      END;
      if any unclear... pls notify me...!
    Regards,
    Abdetu...

Maybe you are looking for

  • Error while running DI post inst template in CRM 2007

    Hi all, I am running DI post installation template in my CRM system.I am getting the below error at the 8th step. Element 'SAPConfigLib.CR7.Unclassified.addUserToGroup':!BrokerImport.import_of_element_failed!!BrokerImport.Fehler!com.sap.tc.lm.ctc.cul

  • Repair root file system

    Is there a way to repair/reinstall Solaris 10 without touching the /export/home fs? fsck keeps complaining that the filesystem is bad, please rerun fsck. smc can not start and there is some strange message that hardware digits:and:numbers is trying t

  • Mail messages sometimes displaying twice

    Lately, Mail sometimes displays new messages that have just arrived twice. There don't seem to be 2 actual copies of the message in the inbox, just the same messages displayed twice. It's kind of an odd behavior, really. If a message is clicked on an

  • RoboHelp6 vs RoboHelp server6

    Hello all, I just received my installation CD for RoboHelp 6! Yippee do da! I am all excited... However I am having some doubts on whether I was delivered the correct software and the Adobe support team (sorry guys) are absolutely useless at giving m

  • Error : Illegal semicolon, not in group in string

    I use Javamail 1.4.1 in order to read messages from a server. When I get the message I execute message.getRecipients(xpRec) in order to get recipients but sometime I get an error javax.mail.internet.AddressException: Illegal semicolon, not in group i