Format of digital data and data mask

(1) is there a way to remove the timestamp of 12:00 a date with TO_CHAR column value? except that the value we should display time value for column, like this
 
             01/12/2009 01:15:01  , 01/12/2009 12:00:00 
             
It should be like
 
             01/12/2009 01:15:01 , 01/12/2009 
             
(2) display decimal '0.' infornt of the numerical value? I used to_char ('0.1 ','9999990.99 '), but his views spaces how can I switch fm for numeric values?

Thank you
HESH.

Published by: Hesh on June 23, 2009 12:27 AM

Hello

Try this query. Change the time of below date of sample of exclusion of the 12:00:00 ' to test it.

This application has been tested and works great.

SELECT
DECODE (TO_CHAR (TO_DATE (JANUARY 12, 2009 12:00 ',' DD/MM/YYYY HH), 'HH'), 12:00:00 ', TO_CHAR (TO_DATE (JANUARY 12, 2009 12:00 ',' DD/MM/YYYY HH), "DD/MM/YYYY"), TO_CHAR (TO_DATE (' 01/12/200912:00:00 ',' DD/MM/YYYY HH), ' DD/MM/YYYY HH')) AS FORMATTED_DATE
OF THE DOUBLE

Output

FORMATTED_DATE
12/01/2009

Output

FORMATTED_DATE
12/01/2009 01:59

Please describe your problem # 2 precision.

Kind regards
Rajesh.

Published by: wissam Rajesh on June 23, 2009 03:29

Published by: wissam Rajesh on June 23, 2009 03:35

Tags: Database

Similar Questions

  • With EM data masking and other utilities of security features available within the DB package

    Hello

    Please let me know your experience of the difference between EM data masking Pack and other security elements such as writing, available in the database Vault.

    Kind regards

    VN

    Hide data are used when you have to clone the database of production for developers. Its purpose is to sensitive data mask in the clone database and you can use several formats of masking (numbers random, random strings, shuffle of data, etc.).

    The masking process is irreversible. (http://docs.oracle.com/cd/E11882_01/server.112/e41481/tdm_data_masking.htm#RATUG04000)

    Writing of data (http://docs.oracle.com/cd/E11882_01/network.112/e40393/redaction.htm#ASOAG596)

    "Starting Oracle 11 g Release 2 (11.2.0.4) database, Oracle data writing allows you to hide (delete) data that are queried by applications or limited users." Drafting occurs in real-time when users query the data. Drafting of data Oracle is part of the Oracle Advanced security features. »

    In a nutshell, you create a policy of writing for a table using DBMS_REDACT package that will redact (mask) data for some users - depending on your political - select.

    For example, a group of users will not be able to view credit card numbers (1234 5678 1235 5690-> * * * 5690). Please note that the data are not hidden within the table.

    Database Vault is used to restrict powerful users (users with system privileges) to access some objects (and not only). Please see the DEMO on this link ( Oracle Database Vault |) Oracle database | (Oracle ) "

  • RealTek HD Audio driver "stdriver64.sys" not digitally signed, and update returns the message "everything is up-to-date.

    Hello

    Recently, I checked my RealTek HD Audio drivers and found that the "stdriver64.sys" driver is not digitally signed.  It can be connected to a crash problem that I have known for two weeks now, so I try to update all the drivers and see if it will solve this problem.  When I click on update drivers for RealTek HD Audio, a message returned quickly saying that all drivers are up-to-date.  But again controlled the pilot "stdriver64.sys" shows that it is not digitally signed.  Is there another way to update this driver or another way to take with this?  Thank you for your help.

    Preston

    * original title - RealTek HD Audio driver "stdriver64.sys" not digitally signed and update returns message "everything is up-to-date. How can I solve this? *

    Go to the website of the manufacturer of your computer/laptop > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.

    See you soon.

    Mick Murphy - Microsoft partner

  • We had to find the date in the format "DD-MM-YYYY" and "DD/MM/YYYY '.

    Hello world

    I need to find the hire_date in the format "dd-mm-yyyy" and "dd/mm/yyyy '. This shows also some errors, I can't found. pls help to solve this problem...

    Hello

    Christine Schnittker says:
    ... It works as well:

    SQL> select to_date('22-02-2012','dd/mm/yyyy') dt from dual;
    
    DT
    ----------
    22-02-2012
    

    (Does anyone know anything that actually says?)

    The Manual of the SQL language , after listing the format items allowed in TO_DATE, says the following:

    Any nonalphanumeric character is allowed to match punctuation characters in the format model. For example, the following statement returns no error:
    SELECT TO_CHAR (TO_DATE('02#07','MM/YY'), ' MM/YY') FROM DUAL;

    TO_CH
    -----
    02/07

  • SQL error: ORA-01840: value not long enough for the format of the date of entry

    It is a delete SQL in a driver of demand, which gives no error, but does remove all the lines either. I have converted the removal 'from' to ' Select * ' and may see the following error:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "CAL_0812")
    Error report:
    SQL error: ORA-01840: value not long enough for the format of the date of entry


    The interesting thing is that if I attach a condition of emplid, then the SQL above does not give an error and return lines:

    Select * FROM PS_GPDE_DV_TRIG40 WHERE EXISTS (SELECT FROM 'X'
    PS_GPDE_DV_ELIG_MO ELG WHERE ELG. EMPLID = PS_GPDE_DV_TRIG40. EMPLID AND
    ELG. EMPL_RCD = PS_GPDE_DV_TRIG40. EMPL_RCD AND TO_DATE (TO_CHAR (ELG. PRD_END_DT
    "YYYY"). TO_CHAR (ELG. PRD_END_DT, "MM"). '01', "YYYY-MM-DD") =.
    PS_GPDE_DV_TRIG40. GPDE_DV_EVT_EFFDT AND ELG. CAL_RUN_ID = "FM_CG_0812")
    and emplid = "1234"

    now, if the number of lines is identified (by giving more number of emplids), it begins to give the error when the number of rows returned is greater than about 30. It is completely independent of what employee is used, so there is no question of data dependence.

    Function optimizer cost is off and a subquery nest is off on the init.ora file

    subquery UNNEST= false

    optimizercost_based_transformation = off


    I don't know if it has something to do with this problem.

    Explanations would be welcome!

    Thank you
    Vikas

    I think it is question of data combined with a not very sensible date format mask (it could fail when the null data, because of your concatenation with '01' and work when not null data).
    Have you tried with a simple TRUNC?

    Your code:

    ...TO_DATE(TO_CHAR(ELG.PRD_END_DT, 'YYYY') || TO_CHAR(ELG.PRD_END_DT , 'MM') || '01' , 'YYYY-MM-DD') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    After change:

    ...TRUNC(ELG.PRD_END_DT , 'MM') =PS_GPDE_DV_TRIG40.GPDE_DV_EVT_EFFDT...
    

    Nicolas.

  • DAQ USB 6363 - generate digital data series through the single DIO line

    Hello

    I'm new with Labview, currently, I bought NI DAQ USB 6363 for generating control signals and signals analog accquire. I would like to send digital data series through one of the digital IOs with throughput of 30 kbps. Please see the attachment for the data frame. Could someone comment the feasibility of this? Y at - it codes for the example that I can refer to? Most of the examples I've looked at so far deals to generate several line instead of 1 single line. How can I achieve this?

    Thank you

    Diem

    Hey diem.

    After looking on your code, I understand what you were trying to do. Here's how I'd do. Usually we do not write code to clients, but you peaked my curiosity of! I hope this helps. Good luck!

    ~ kgarrett

  • Maximize the continuous digital data recording rate

    I'm trying to record digital data clocked outside large amounts quickly.  The data is only for post-processing.  What is the best way to get data from the port on the hard drive at the fastest possible pace?

    I connect using a PCIe 6537 B.  I log on 4, ports of 8 bits to 40,92 Mhz, so a rate of ~ 160MBytes per second.  I have two designs I've tried so far (a producer-consumer architecture and a DAQ.mx configure logging design).  Both models work if I connect only on two ports (effectively halfing the necessary flow) but fail to the width of 32 bits.

    My producer consumer architecture fails after about 30 seconds of recording successful message

    Error - 200613: Acquisition was stopped to avoid a crushing of the input buffer.

    My other DAQ.mx configures logging design fails quickly (~ 1 sec) with

    200361 error: Overflow memory on-board

    .

    I could be set it up incorrectly.  As I said, it works with 16-bit data width.  I don't know if the increase in the width of the data directly is the problem or if the increased flow to fail.

    I use this on a 3 GB ram windows xp using labview in 2012.  I have attached the vi of my two attempts and a picture of the DAQ.mx set the logging design.

    Well, I'd suggest the integrated PDM recording method would probably be you give best results, assuming that it works at all.  This record type opens a DMA channel of the material on the hard drive so it should not produce copies of useless data, which would probably be a producer consumer loop.

    I never tried logging TDMS without reading the data, a Read DAQmx should be used in the loop?  Your file contains TDMS data?

    The challenge of your hard drive?  It is a flat disk of laptop?  I recommend you test on a SSD, if possible, just to see.

    There are also properties to open up to a size of memory buffer.

    Start with one of the logging TDMS basic examples delivered with LabVIEW and work your way up from there.

  • Problem with the digital data to write VISA function

    I have a GE's PowerPC that is running on the VxWorks operating system. I have a tornado application where I run my C code to generate a file .o & .out, then I empty image .o files & .out for PowerPC via FTP, now I need to communicate with PowerPC of LabVIEW (via serial communication using VISA vi) using the VxWorks controls. When I enter orders VxWorks in LabVIEW

    That is to say for Eg: 1 > ls --> the contents of a directory list IE .o & .out files. The problem I'm facing here is, when I run the vi, I am able to read the file in the box to read the string but keep files on speeding up juice,

    2 > ld <> --> load a module object in memory. I face the same problem here.

    3 > then I need to type the name of funtion main c program, after which I can give input to the program.

    4 > I need to enter numeric data as inputs to my program. but the write VISA function accepts the only input string and read VISA function gives only out of string... I want to give digital entries and read the digital output.  Any help would be appreciated.

    Hi Luke,.

    You can try with this reliable hyperterminal VI.

    http://lavag.org/files/file/172-hyper-Terminal/

  • How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?

    I want to integrate the ANSI C sample program ReadDigPort - ExtClk.c in my own big package.

    I want to use the internal clock of the BNC NI USB-6259 (.. 80 kHz 120 kHz).

    In the document:
    High speed M: Series Multifunction DAQ for USB - 16-bit, up to 1.25 MECH built-in BNC connectivity. / s,.
    is written:
    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?
    With what other subsystem on the device can generate a source of the clock? How?

    It is possible to set a clock on an internal counter (for example ' Dev1/ctr0"):
    Creates channels to generate digital impulses that define the freq and dutyCycle and adds the channel of the task that you specify with taskHandle.
    DAQmxCreateCOPulseChanFreq (taskHandle, "Dev1/ctr0" units, clockName, idleState,
    initialDelay, freq, the duty cycle); works

    But it is not possible to drive this internal clock to a terminal (for example "/ PFI0/Dev1"):
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq (taskHandle, "/ PFI0/Dev1", clockName, units, idleState, '))
    initialDelay, freq, the duty cycle); does not work: error DAQmx: measurements: type I/O of the physical channel does not match the type of I/O required for the virtual channel you create. Name of the physical channel: PFI0. Name of the virtual channel: clock

    The sample clock source can be derived from an external terminal (for example "/ PFI0/Dev1"):
    Sets the source of the sample clock, the sample clock rate and the number of samples to acquire or generate.
    DAQmxCfgSampClkTiming (taskHandle, "/ PFI0/Dev1", maximumExpectedSamplingRate, DAQmx_Val_Rising, ")
    DAQmx_Val_ContSamps, bufferSize); works. Acquire or generate samples until you stop the task

    But it is not possible to derive the internal counter of the clock (for example ' Dev1/ctr0"):
    DAQmxCfgSampClkTiming (taskHandle, "Dev1/ctr0", maximumExpectedSamplingRate, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, bufferSize); does not work. Error: Acquire or generate samples until you stop the task: make sure that the name of the terminal is valid for the specified device. See Measurement & Automation explore valid names of terminals. Property: Property of DAQmx_SampClk_Src: DAQmx_SampClk_ActiveEdgeSource device: Terminal Source Dev1: Dev1/ctr0

    Hi datafriend,

    using what it says is correct:

    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    This means that if you do not use an external signal as clock you can use the sample clock to HAVE it on board or at the output of the internal counter.

    There are also 2 ANSI C examples in this regard:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4485

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4488

    So in both cases you have to use a fictitious task you need only for the generation of the internal clock (HAVE or CTR)

  • accuracy of digital data from LabVIEW

    Hello!

    I have a question about the accuracy of data, Labview, is perhaps a silly question, but it drives me crazy.

    If I use a digital constant and I put for example 1 (I mean 1E-6), it looks like 1E-6 but I found that it is not really 1E-6, actually if I raise the precision and I use 17 digits, 1E-6-9, 9999999999999996E-7.

    Could someone explain to me what is happening for digital data?

    Thank you

    It is one of the most frequently asked questions ever.

    The trick is in how computers represent floating point value. I remember a lot of right answers already given in the forum, but I am not able to find the most comprehensive and clearest.

    For example, one of the answers is here.

  • How can I determine what digital data was issued last with the regeneration?

    Is there a way to determine the last digital data output if you are running a quick revival and regeneration?  Right now I use a digital channel not used by the channel with the same clock that I use for other data capture. It works very well and I know that the data I receive are correct, but there is something wrong with burning a channel for that. The data I am regenerating changes several times during the trial for counting samples to determine where I was in the buffer would make my code more complex and the chances of a mistake to increase.

    I have a mixture of material that I use for a cDAQ-9172, a box of series M and a PXI-1033 USB.

    Hello Tom,

    There is absolutely something wrong with having to use one of your channels to monitor what you're out, however, it's the best we can right now.  The problem is, when you set a buffer until the release, the access card to this memory stream location it will regulate.  It's speed leaving and overall card design.  There is no way back on the material for do what you are looking for and no software to interact directly with the location of the buffer.

  • Application of logic gates on digital data... How does it work?

    Hello

    While working with labview, I tried to apply or digital data, he agreed the entry and responded to the output form digital too.

    I did not understand how is - this work on a digital data when entering are supposed to be Boolean for the logical entry doors.

    The outputs are also out of the assumption to 5 | 4 gives results 5.

    Also, I am attaching my VI.

    Please inform what is the logic behind this calculation.

    Concerning

    Hello

    logical operations operate with integers (any will do) too. The integer is used at the level of the ILO...

    The outputs are also out of the assumption to 5 | 4 gives results 5.

    5 is "0101" in binary representation, 4 is "0100":

    0101 OR
    0100
    ____
    0101 result
    
  • What is Western Digital Data LifeGuard Diagnostics?

    Friends-

    I noted in my start/programs, a new piece of software has been added to the list, and I needed to install it. It is called Western Digital Data LifeGuard Diagnostics. I don't know where it comes from, so I guess it's an auto-update from Ms. The problem is that when I Googled it and it raised online on Microsoft.com, all references were too opaque for me to grasp what, exactly, does it.

    Its own pages of support, he said that "it is a version of Windows Data LifeGuard Diagnostics. It will test the internal and external WD drives. In additional, it can provide you with the model and series of WD drives attached to the system. "Huh? Why would I want or need this information?

    I am wary of what he is and does (quite thin on explanation there), but there seems to be so many things about it that I am comfortable, considering that it is not a scam/spam. The problem is, where he comes and what benefit can it give me? Sorry if I am too a novice on this, but I have never heard of him.

    Any information would be welcome. Thank you.

    Hello MDBoy,

    From an internet search, Western Digital Data LifeGuard Diagnostics is a program that performs hard drive diagnostics.

    The utility can make identification of the drive, diagnostics and repairs on a Western Digital FireWire, USB or EIDE drive. In addition, it can provide you the series and model of the player numbers.

    In addition, there is a feature called write zeros: this option can be used to clear the operating systems and file systems.

    So if you do not install this software, I would say you uninstall and remove this diagnostic software. You can go into Control Panel, click programs and features. Western Digital Data LifeGuard Diagnostics must be there. There is a column it installed on. This will give you the date, that the software has been installed, then it can give you a clue.

    Thank you

    Marilyn

  • How can I search for files in a range of digital data

    Is there a way to specify a range of digital data in Windows 7 search for example File1 through deposer10 included

    Thank you

    So you're saying that file names could be, for example, hotdog4.txt for hotdog15.txt?  Well, you can look for in an orderly series, numerically and alphabetically, with two periods between the first and the last item, as in name:hotdog4.txt... hotdog15.txt

    Interestingly, Windows by default notice when the names correspond to a digital frame and so will sort hotdog4 to hotdog10 and so on, despite 4 being a number greater than 1 Prime figure 10.  I found a reference to this topic (but do not disable anything probably, just for the pleasure of reading):

    http://www.askvg.com/how-to-disable-numerical-file-name-sorting-and-enable-classic-literal-sorting-in-Windows-XP-Vista-and-7-Explorer/

  • Cloud Computing database service supports data masking?

    Hello

    Cloud Computing database service supports data masking?

    Thank you

    You can use data masking when using hybrid agent for EM (EM 12 c R5) and the creation of a database of high performance or extreme performance levels.

Maybe you are looking for

  • Error file path CoreTelephony

    Hi all After installation of an SSD and use it as primary disk for my Macbook Pro (running El Captain), after each reboot, I get a "CoreTelephony Trace File Error" with the above message: A file for CoreTelephony tracing operation failed, you might r

  • HP: Mouse frozen.

    HP W2071d desktop WIndows 7.     Logitech mouse will not work.  Battery change and I have tried 3 different mice.   Do you have Windows + R, typed command devmgmt.msc and another window came.     The link for the mice and other pointing devices is no

  • What is the best program to create a Web site?

    I am looking for a website designer friendly user, I use currently an online system, called weebly, but it is a bit limited in what it can provide.

  • EliteBook 8440p: lack of drivers

    My system is missing Base system device. I tried to search the official site of HP, but it does not appear there. My OS is Windows 7 Starter. I tried to update, but it is not updated. I need quick help.

  • I can't connect to Skype or reset my password on my Oneplus One

    Hello So, as I said above, I can't get my Skype to work on my Oneplus One recently and I can't understand how to fix it. He always tells me to check my details. And when I try to reset my password, it happens. The strange thing is, I can sign online