Quick question for the QUARTER (DATE)

Hello
I need to display the quarter of a specified date.
I can see that the only possible output can be 1,2,3,4.
I need to display 01,02,03,04

Unfortunatelly QQ will give twice the qurter (44) instead of 04
SELECT TO_CHAR (TRUNC (sysdate), 'QQ') FROM DUAL;

Is it possible to display the desired output, such as the MM will display for example 03 March?

Thank you in advance!
SELECT lpad(TO_CHAR(TRUNC(sysdate), 'Q'),2,'0') FROM DUAL;

Tags: Database

Similar Questions

  • Quick question for the owner of the device - can paste you the pictures in BBM, text msg, or by e-mail to body?

    Hey there BB10 dev device owner, can quickly check and see if it is possible to copy and paste a photo/image in BBM, text or e-mail message?

    I checked via the Clipboard API I am successfully load a picture on the Clipboard, but I make a big assumption that the user has the possibility to share in the sticky in a message. If that assumption is wrong, I need boot into the path of Messages API.

    Secondly, how can I get a dev device? Is a sufficiently similar PlayBook for me to test it on in a store?

    Thanks for the help.

    Kurt

    This is not supported.  You can use the framework of the call to share images by email, BBM, SMS, etc...

    Details are here:

    Here is an example it does: the essential of Invoking applications

    We will have more applications added to this list next week.

    InvokeActionItem {
        title: "Share Image Over BBM"
        query {
            invokeActionId: "bb.action.SHARE"
            uri: "file:///accounts/1000/shared/photos/image.png"
        }
    

    Who will send the image as an attachment.

  • Anyone know if there is no CC or BC apps or other alternatives that allow a way to create an online survey consisting of 3 questions for the participants to a trade appear to fill out and submit for the purposes of data collection?  Offlin data collection

    Anyone know if there is no CC or BC apps or other alternatives that allow a way to create an online survey consisting of 3 questions for the participants to a trade appear to fill out and submit for the purposes of data collection?  Offline data collection is a must. Ability to export data to Excel would be an added bonus. Thanks for the tips.

    Hi Nathan,

    This link might help: Create PDF fillable, creative forms of PDF form. Adobe Acrobat DC

    Kind regards

    Sheena

  • Just a quick question about the appearance of the cluster

    Hello, this is Matthew, just a quick question about the appearance of the cluster

    Is there anyway to rearrange the order of the elements? I know cutting automatic resizing, I could move the items by hand. But if I use the cluster somewhere else, I have to move the items again...

    What I want is of the order of "Mx My Mz Ax Ay Az Temp voltage CS".

    Is there a quicker way to deal with?

    THz so much!

    You can right-click the border of the cluster and choose "arrange control cluster...". "The user interface is not as intuitive as it could be, but it will allow you to reorder items. If you use the cluster in several places, you should make the cluster in a type definition and replace all current uses of the latter with the type definition, so that they all match. They will also update automatically when you make changes to the type definition. Otherwise, you could have a situation where you have multiple groups with the same data types, but with elements in a different order, and your data will be getting a new denominated, when wire you the whole clusters. The data will be in the same order, but given that the item labels are in a different order, you can't get the data you want, when ungroup you by name.

  • Difference in the number of records for the same date - 11 GR 2

    Guy - 11 GR on Windows2005 2, 64-bit.

    BILLING_RECORD_KPN_ESP - is a monthly partitioned table.
    BILLING_RECORD_IDX #DATE - is a local index on "charge_date" in the table above.

    SQL > select / * + index (BILLING_RECORD_KPN_ESP BILLING_RECORD_IDX #DATE) * /.
    2 (trunc (CHARGE_DATE)) CHARGE_DATE;
    3 count (1) Record_count
    4. IN "RATOR_CDR". "" BILLING_RECORD_KPN_ESP ".
    where the 5 CHARGE_DATE = January 20, 2013.
    Group 6 by trunc (CHARGE_DATE)
    5 m

    CHARGE_DATE RECORD_COUNT
    ------------------ ------------
    2401 20 January 13-> > some records here.

    -> > Here I can see only '2041' records for Jan/20. But in the query below, it shows "192610" for the same date.

    Why is this difference in the number of records?

    SQL > select / * + index (BILLING_RECORD_KPN_ESP BILLING_RECORD_IDX #DATE) * /.
    (trunc (CHARGE_DATE)) CHARGE_DATE,
    2 count (1) Record_count
    3. FOR "RATOR_CDR." "" BILLING_RECORD_KPN_ESP ".
    "4 where CHARGE_DATE > 20 January 2013."
    Group of 5 by trunc (CHARGE_DATE)
    6 order by trunc (CHARGE_DATE)
    5 m

    CHARGE_DATE RECORD_COUNT
    ------------------ ------------
    192610 20 January 13-> > more records here
    JANUARY 21, 13 463067
    JANUARY 22, 13 520041
    23 JANUARY 13 451212
    JANUARY 24, 13 463273
    JANUARY 25, 13 403276
    JANUARY 26, 13 112077
    27 JANUARY 13 10478
    28 JANUARY 13 39158

    Thank you!

    Because in the second example you also select rows that have a nonzero component.

    The first example selects only rows that are 00:00:00

    (by the way, you should ask questions like this in the forum SQL)

  • I have a simple question about the meta-data.

    Hello. It is a simple question about the meta-data. How can I get the video bitrate of a flv or mp4 (video playing via NetStream file) file

    right now I have this:

    Code
    var netClient:Object = new Object();
    netClient.onMetaData = function(meta:Object)
    {
    for (var in meta props) {}
    trace (props + ":" + meta [props]);
    }
    MovieClip (root) .durations = meta.duration;
    trace (MovieClip (root) .durations);
    };
    NS.client = netClient;

    And my output is:

    videocodecid: avc1
    audiocodecid: m4as
    aacaot: 2
    Width: 960
    AudioChannels: 2
    videoframerate: 23.976
    TrackInfo: [object Object], [object Object]
    moovposition: 32
    avcprofile: 77
    audiosamplerate: 48000
    avclevel: 31
    seekpoints: [object Object], [object Object], [object Object], [object Object]
    height: 540
    Duration: 221.312

    As you can see, there is nothing of video bitrate.

    I know that the video bitrate of my videos, but then I have to manually type each number of bitrate into my flash project, and it would be such a fuss when I have a lot of videos. Would be nice if flash can detect the video bitrate.

    It's for my online portfolio.

    Why you divide by 8?  If you want to convert bytes into bits, multiply by 8.

  • Question for the geniuses of pictures only.

    Question for the geniuses of pictures only.

    You see, I started with iPhoto and later began to use Aperture.  With iPhoto and Aperture, you can have ALL the metadata below the thumbnails, (nice).  Well, I put all my images descriptions in the keywords section because it didn't really matter, because these programs could show them as thumbnails.

    Now, I use this wonderful program of Photos and I found out that it will ONLY show the title of"the image in the thumbnails.  I've got on 30 000 images with keywords but no title.  I want to move / copy the text in the keywords section in the section of the title. I'm not a computer scientist, I guess that my skills are in average.  But I can follow directions.

    Suggestions appreciated.

    Member of ASC compiled some useful on Photos AppleScripts. Maybe one of them will be sufficiently close to your needs.

    http://www.oldtoadstutorials.NET/no.P01.html

  • Need to create a structure for the target data store?

    Hi Experts,

    If I create a structure for the target data store, and then load the data from source to target works fine. If I make mistakes.

    Is necessary to create a structure for target?

    Please help me...

    Thanks in advance.

    A.Kavya.

    I found the answer. No need to create the structure for target temporary data store. and we need to create the structure for the permanent target data store.

  • Need to retrieve the data for the current date.

    Hello

    I have a table which then retrieves information when using this command.

    Select ta_acct, shift, created_on track_alerts;

    Technicolor A 24 March 14

    Technicolor A 24 March 14

    Technicolor A 24 March 14

    Technicolor A 24 March 14

    Manitoba telecom a 24 March 14 system

    Technicolor A 24 March 14

    I used this statement to retrieve the data for the given date.

    Select ta_acct, shift, created_on track_alerts where created_on = 24 March 14 ';

    Its not data recovery.

    Need help.

    Kind regards

    Prasad K T,.

    984002170

    Prasad K T wrote:

    Yes the created data type is date.

    CREATED_ON DATE

    Partha thanks it works now.

    Select ta_acct, shift, created_on in track_alerts where to move is: Shift and TRUNC (created_on) = TO_DATE('24-MAR-2014','DD-MON-YYYY');

    Still, I made a small change to my querry.

    Select ta_acct, shift, created_on track_alerts where to move is: shft and TRUNC (created_on) = TO_DATE (select double sysdate,'MON-DD-YYYY "");

    For this statement, it does not work.

    of course not...

    first: sysdate returns a date so no need of conversion here

    and

    second SYSDATE includes time, so your application should look like this:

    Select ta_acct, shift, created_on in track_alerts where to move is: Shift and TRUNC (created_on) = trunc (sysdate)

    or

    Select ta_acct, shift, created_on in track_alerts where to move is: shft and created_on > = trunc (sysdate) and created_on<>

    HTH

  • The number of heartbeat for the host data warehouses is 0, which is less than required: 2

    Hello

    I have trouble creating my DRS cluster + storage of DRS, I have 3 hosts esxi 5.1 for the task

    First, I created the cluster, no problem with that, so the DRS storage was created and now I can see in the Summary tab

    "The number of heartbeat for the host data warehouses is 0, which is less than required: 2".

    I search the Web and there are similar problems when people has only a single data store (the one that came with ESXi) and need to add another but in my case... vcenter detects any...

    In the views of storage I see the store of data (VMFS) but for some strange reason the cluster not

    In order to achieve data warehouses minimum (2) can I create an NFS and map it in THE 3 esxi hosts? Vcenter which consider a play config?

    Thank you

    You probably only have local data warehouses, which are not that HA would require for this feature (pulsations datastore) to work properly.

    You will need either 2 iSCSI, FC 2 or 2 NFS volumes... Or a combination of the any of them, for this feature to work. If you don't want to use this feature, you can also turn it off:

    http://www.yellow-bricks.com/2012/04/05/the-number-of-vSphere-HA-heartbeat-datastores-for-this-host-is-1-which-is-less-than-required-2/

  • ESXi is unable to install 'his place on the disk for the dump data' no ideas?

    It is an older server.

    Data sheet:

    GOING Linux 2200 series

    Intel P3 700 MHz x 2

    768 MB OF RAM

    9.1 GB SCSI x 3 (configured in RAID 5 now)

    I have attached a picture of the error message that is received and typed most of the message below.

    NOT_IMPLEMENTED /build/mts/release/bora-123629/bora/vmkernel/sched/sched.c:5075

    Frame 0x1402ce0 ip = 0x62b084 cr2 = cr3 = 0 x 0 = ox3000 cr4 = 0 x 20

    are is 0xffffffff ds is 0xffffffff fs = 0xffffffff gs = 0xffffffff

    EAX = 0xffffffff = 0xffffffff = 0xffffffff edx ecx ebx = 0xffffffff

    = 0x1402e3c = 0xffffffff edi esi EBP = 0xffffffff err =-1 eflags = 0xffffffff

    * 0:0 / & lt; NULL & gt;  1:0 / & lt; NULL & gt;

    0x1402e3c: battery: 0x830c3f, 0x1402e58, 0x1402e78

    VMK availability: 0:00:00:00.026 TSC: 222483259709

    No space on disk for the dump data

    Waiting for debugger... (World 0)

    Debugger is listening on the serial port...

    Press ESC to enter the local debugger

    This could be a simple problem or not, I'm not sure. I spent several hours already trying to reconfigure the readers to try to get the installation to recognize.

    Any help is greatly appreciated.

    I agree with Matt, the material can be simply too old-

    If you find this or any other answer useful please consider awarding points marking the answer correct or useful

  • Recommended value for the BAM data expiration time

    Hello

    Can someone tell me what is the recommended value for the BAM data expiration time?

    Enterprise Server default is 24 hours, but I would like to be able to raise the average runtime instance after several months. Is it reasonable to the value of the time-out value a high value? Or it will have an impact on the performance of BPM/BAM?

    Thanks in advance.

    Best regards
    CA

    Normally, we keep the BAM data expiration time at halfway with 24 to 72 hours. For historical reports that you are looking for the Data Mart / Data Warehouse DB are more logical. This database stores the data forever and takes pictures at longer intervals, normally 24 hours. These data are not in time real normally then because a capture instant is only taken once per day but will give you historical reports that you are looking for. The data from this database structure is almost identical to the BAM DB.

  • Not able to start agent cache for the requested data store

    Hello

    This is my first attempt in TimesTen. I am running TimesTen on the same host Linux (RHES 5.2) running Oracle 11 g R2. TimesTen version is:

    TimesTen Release 11.2.1.4.0


    Trying to create a simple cache.

    The DSN entry section for ttdemo1 to. odbc.ini is as follows:

    + [ttdemo1] +.
    Driver=/home/Oracle/TimesTen/TimesTen/lib/libtten.so
    Data store = / work/oracle/TimesTen_store/ttdemo1
    PermSize = 128
    TempSize = 128
    UID = hr
    OracleId = MYDB
    DatabaseCharacterSet = WE8MSWIN1252
    ConnectionCharacterSet = WE8MSWIN1252

    With the help of ttisql I connect

    Command > Connect "dsn = ttdemo1; pwd = oracle; oraclepwd = oracle;
    Successful login: DSN = ttdemo1; UID = hr; DataStore = / work/oracle/TimesTen_store/ttdemo1; DatabaseCharacterSet = WE8MSWIN1252; ConnectionCharacterSet=WE8MSWIN1252;DRIVER=/home/oracle/TimesTen/timesten/lib/libtten.so;OracleId=MYDB; PermSize = 128; TempSize = 128; TypeMode = 0; OracleNetServiceName = MYDB;
    (Default AutoCommit = 1).
    Command > call ttcacheuidpwdset ('ttsys', 'oracle');
    Command > call ttcachestart;
    * 10024: could not start agent cache for the requested data store. Could not initialize Handle.* Oracle environment
    The command failed.

    The following text appears in the tterrors.log:

    15:41:21.82 Err: ORA: 9143: ora-9143 - 1252549744-xxagent03356: database: TTDEMO1 OCIEnvCreate failed. Return - 1 code
    15:41:21.82 Err: 7140: oraagent says it failed to start: could not initialize manage Oracle environment.
    15:41:22.36 Err: 7140: TT14004: failed to create the demon TimesTen: couldn't reproduce oraagent for "/ work/oracle/TimesTen_store/ttdemo1 ': has not been initialized Handl Oracle environment

    What are the reasons that the demon cannot happen again to another agent? FYI, the environment variables are defined as:

    ORA_NLS33=/U01/app/Oracle/product/11.2.0/Db_1/ocommon/NLS/Admin/data
    ANT_HOME = / home/oracle/TimesTen/ttdemo1/3rdparty/ant
    CLASSPATH=/home/oracle/TimesTen/ttdemo1/lib/ttjdbc5.jar:/home/oracle/TimesTen/ttdemo1/lib/orai18n.jar:/home/oracle/TimesTen/ttdemo1/lib/timestenjmsxla.jar:/home/oracle/TimesTen/ttdemo1/3rdparty/jms1.1/lib/jms.jar:.
    Oracle@rhes5:/Home/Oracle/TimesTen/ttdemo1/info% echo $LD_LIBRARY_PATH
    /home/oracle/TimesTen/ttdemo1/lib:/home/oracle/TimesTen/ttdemo1/ttoracle_home/instantclient_11_1:/u01/app/oracle/product/11.2.0/db_1/lib:/u01/app/oracle/product/11.2.0/db_1/network/lib:/lib:/usr/lib:/usr/ucblib:/usr/local/lib


    See you soon

    I see no problem here. The ENOENTs are superfluous because it locates libtten here:

    23302 open ("/ home/oracle/TimesTen/11.2.1.4.0/TimesTen/ttimdb1/lib/libtten.so", O_RDONLY) = 3

    without doubt, it does the same thing trying to find the libttco.so?

    23302 open ("/ home/oracle/TimesTen/11.2.1.4.0/TimesTen/ttimdb1/ttoracle_home/instantclient_11_1/libttco.so", O_RDONLY) =-1 ENOENT (no such file or directory)

    Thank you for taking the trace. I really want to have a look at the complete file if you can send it to me?

  • I have 2 quick questions on the Adobe Creative Cloud membership. I currently have 2 children in high school.  (1) is the license for 1 or can it covers 2 users? (2) can they access it from PC or MacBook this year? Thanks for your help.

    Adobe community, I have 2 quick questions on Adobe Creative Cloud membership. I am considering the Adobe Creative Cloud 'Plan of the student' for 2 children currently in high school.  (1) is the license for 1 or can it covers 2 users? (2) can they access it from PC or MacBook this year? Thanks for your help.

    each single-user license, it's just that, for a single user and can not (legally) be shared between two different users.

    programs of CC can be installed on pc or mac.  each user can install on an unlimited number of computers, but can only connect to, at most, two computers at a time.  These 2 computers can be 2 pcs, 2 macs, or one of each.

  • Question of validation for the field date/calendar

    I want to use the regular Date field, but not sure what is the best way to validate user input.

    The display Format that I use is "DD MMM YYYY",

    If the user is using the calendar to select the date, no problem.

    However, the user can also type things in this area without using the built-in calendar,

    What should I do when the user types "MM/DD/YYYY" (eg. "19/09/2011")?

    How to validate that?

    If I put a validation schema "DD MMM YYY" in the validation tab, it doesn't seem to work.

    so, please help.

    Add the same schema in the Validation model/edit section and make sure that you include a model of Validation Message text in the dialog box informing the user that forms await you. If they enter the wrong format your message text appears then make it informative.

    Paul

Maybe you are looking for