Shows only date to timestamp

Hello!
First of all, - sorry for my really bad English - I'm going to try my best ;-)

A field in a table of our (very large) DWH showes a timestamp. A query on it displays only a Date.
But a "group by" didn't work.

Same query with toad has solved the problem. Toad shows Date AND time for the same domain...

What can I do, than data hidden showes SQL Developer (my favorit tool) like this?

Kind regards
Bernd paulus

Published by: user13169869 on 10.01.2013 23:04

Bernd,

I just put these values:
Date format: AAAA-MM-JJ HH24:MI:SS
Timestamp format: YYYY-MM-DD HH24.MI. SSXFF
TZ Timestamp format: YYYY-MM-DD HH24.MI. SSXFF TZR

and these queries:

SELECT cast(SYSDATE as date) FROM dual;

SELECT cast(sysdate AS TIMESTAMP) FROM dual;

select cast(sysdate AS TIMESTAMP WITH LOCAL TIME ZONE) from dual;

has given this result:

CAST(SYSDATEASDATE)
---------------------
2013-01-16 20:21:02   

CAST(SYSDATEASTIMESTAMP)
------------------------------
2013-01-16 20.21.02.000000000  

CAST(SYSDATEASTIMESTAMPWITHLOCALTIMEZONE)
-----------------------------------------
2013-01-16 20.21.02.000000000          

Can you please test with these values and select statements?
I can even imagine (more or less unlikely) situations which may also create your described behaviour without fiddling with parameters of the session, but first we will create a few easy baselines?

Best regards
Martin

Tags: Database

Similar Questions

  • Sidebar calendar shows only orange... not the data either

    My calendar loads in the bar but shows only an orange page.  There is nothing else... no data at all. I tried the tools without result; It only allows me to remove the calendar.

    If it's just the calendar gadget that gives you trouble, you should be able to simply re - record a single. DLL to rectify a calendar gadget that looks like this,


    First remove the existing calendar gadget, and then click Start or press on the key and type cmd but don't hit. Search for CMD in the list above and right-click and select run as administrator. Confirm the warning of the DSU and provide credentials if requested.

    The open command window, type.

    Regsvr32.exe vbscript.dll
    ... and click on . You will receive a popup confirmation as follows,

    Restart the computer and add the calendar on the desktop gadget. It should now work as follows,

    If the gadget still does not work, you can try a much more aggressive approach to my solution on this page.
  • Calendar guest - display Date only - no. Timestamp

    Is there a way when you use the calendar control type in a command prompt to force do not display the timestamp of the date part? I tried to use a column with any type of DATE as the quick column but it always shows the full date and timestamp after I select my calendar values and hit go. I tried a few other casting here and there but nothing works as expected. Any thoughts?

    Thank you

    K

    Published by: user_K on April 20, 2010 17:18

    Hello

    This is the bug

    See Bug #: in the following link 9280334. There patch according to the link below.

    http://obiee101.blogspot.com/2010/03/OBIEE-patches-101341-part-4.html

    Concerning
    Kishore Guggilla

  • 4 s phone shows only Apple icon & black screen.

    4 s phone shows only Apple icon & black screen. Computer message said: my phone cannot be updated and I should delete the data to create the space,.

    But how if she will not activate?

    If your iPhone or iPad does not respond, try the steps here:

    https://support.Apple.com/en-us/HT201412

  • Satellite C660: HARD drive space shows only 20 GB of free?

    Toshiba Satellite c660 with 320 GB of disk space, it shows that 2 hard drives or 2 partitions, one called data shows only 20.6 GB of free on 148, but when I go in there I can only find at maximum approximately 50 GB even with all the backups?

    Hello

    There are more partitions on the HARD drive.
    You can see it in disk management.
    Right click on computer and select manage.
    Now you should be able to go to the disk management which will show you all the available partitions.

    A hidden partition is used for the Windows 7 backup files that are needed to fix the Windows 7 in the case where something goes wrong with the OS.
    Then, you can find a Windows partition and the other partition is used for HARD drive recovery. The point is that you are able to run the system recovery from the HARD drive without the use of the recovery disc (recover disk must be created using the recovery disc creator)

  • The family safety activity log shows no data for Facebook

    Original title: Family Safety + Chrome + Facebook

    The latest version of Live Essentials is installed on Windows 7

    Parental controls will not register the Chrome Facebook activity.
    I see in the activity that children use, for example, 0.5 hours of chrome, but there is no granular information.
    My daughter spent 2 hours on Facebook and the Family Safety activity log shows no data to Facebook.
    The computer is a new installation of Windows 7
    Live essentials have been installed yesterday.
    All web links for accounts for children have been created yesterday
    Does anyone have a suggestion on how to see real activity?
    Also, before someone suggests using another browser, is not an option, IE is uninstalled.
    Chrome is the only browser used because of all the android devices, we have.
    Thank you

    Client Windows Live Family Safety currently not reported HTTPS traffic unless the web of the child, filtering mode is set to "notify on the adult.  Facebook who worked in HTTP mode has recently moved that the HTTPS site and that's the reason to not see, Facebook or any other site that is HTTPS in the progress report on Windows 7 machines.

    It is resolved in Windows 8 and activity reports should show HTTPS traffic.

    Current work around that for Windows 7 client

    -Set the mode of web filtering to ' warn on adult "- child will receive a warning message if they go to all the adult sites and the parents will be informed in the annual report if the child decides to go to the site.

    Sorry for the inconvenience.

    Thank you

    Shankar

  • my Windows xp pro computer was working fine, but after five days, when I stat from my computer I could show only the information of the bios on the screen and then the screen freezes

    my Windows xp pro computer worked fine but after five days, when I stat my computer I could show only the bios information on the screen then the screen freezes, then I started ahead of time the computer starts at mode, but once again he the disply frozen. I couldn't start my computer. I have a lot of data in my hard drive. What can I do to start computer or recover my data?

    First run Memtest86 +:
    It runs from a floppy disk or CD and should eliminate or confirm if your one or more of your memory
    sticks are bad or the values of the SPD in the BIOS are correct.
    Let it run for as long as you can: 2,4,6,8 or several hours (at least 3 full passes), if no errors, then your RAM is OK.
    http://www.memtest.org/
    Memtest86 + Guide/How To (use the.) ISO to create a bootable CD)
    http://www.overclockers.com/forums/showthread.php?t=409152

    Test your player - create a Bootable CD:
    Ranging from 5 to 20% (depending on the manufacturing) new hard disks are defective.
    Test your drive with the car manufacture utility.
    If you have a new hard drive Seagate the very next thing would be to download Seagate Seatools
    (bootable CD) and check bad sectors:
    http://www.Seagate.com/WW/v/index.jsp?locale=en-us&name=SeaTools&vgnextoid=720bd20cacdec010VgnVCM100000dd04090aRCRD

    For Western Digital readers to download the .iso from WdDiag file: http://support.wdc.com/product/download.asp?groupid=611&sid=30&lang=en

    Samsung Estool: http://www.samsung.com/global/business/hdd/support/utilities/ES_Tool.html
    Samsung Disk Manager software: http://www.samsung.com/Products/HardDiskDrive/utilities/shdiag.htm
    Hitachi Drive Fitness Test Software: http://www.hgst.com/hdd/support/download.htm#DFT
    Diagnostic tool available for use by customers who feel their Toshiba brand Fujitsu hard drive:
    http://SDD.Toshiba.com/main.aspx?path=ServicesandSupport/WarrantySupport/SoftwareUtilities
    Notice of suport Fujitsu disk utility: http://www.fujitsu.com/us/services/computing/storage/hdd/
    Toshiba CD bootable: (BACK Diagnostic Tool version 7.0 for IDE/ATA/SATA hard disks)
    http://SDD.Toshiba.com/main.aspx?path=ServicesSupport/FujitsuDrivesUSandCanada/SoftwareUtilities#diagnostic

    J W Stuart: http://www.pagestart.com

  • Toshiba TransMemory 4 GB USB Flash Drive shows only 4 MB

    My Toshiba TransMemory 4 GB USB Flash Drive shows only 4 MB

    I'm trying to solve this problem, but I can't

    Please someone give me a solution...

    thanx.

    device class GUID: {4d36e967-e325-11ce-bfc1-08002be10318}

    Hello

    Thanks for posting your question on the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    Flash DRIVE shows 4 MB when it is connected to another computer?

    Thank you for details on the issue.

    This problem can occur because the parameters or corrupt device drivers.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run the hardware and devices Troubleshooter and check.
    Reference:
    Open the hardware and devices Troubleshooter
    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    If this does not help, use method 2.

    Method 2:
    The USB key format and check the issue. Please follow these steps:

    a. Click Start and type cmd in the start search box.

    b. right click on cmd , and then click on run as administrator.

    c. type the following command at the command prompt and press ENTER.

    format (the drive letter):

    Note: "(Driver Letter):" as "E:" is the letter assigned to the USB key in Windows Explorer.

    d. now, type and press ENTER.

    Note: Formatting a USB drive will destroy data stored in it. Please make sure that you back up the data you want to keep before you begin.

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Show only items returns Null while watch value

    Hello

    I have a single display element (P1_ID) on my page in which:

    Source: replacement always, value that exists in session state

    Source type: SQL (return the unique value) query

    Select Max (ID) from User_table

    I have a process that will remove data in another table based on the value of this element. (ID is PK in User_table and FK in my_table)

    DELETE FROM MY_TABLE WHERE ID =: P1_ID;

    Zero or lines will be deleted

    However, : P1_ID is null, while this is to show the value... when I do the point as hidden and protected the deletion will work... but I need to show the value on my page as show only...

    I use APEX 4.2

    so could someone please help me?

    Minoo.TK wrote:

    Hello

    I have a single display element (P1_ID) on my page in which:

    Source: replacement always, value that exists in session state

    Source type: SQL (return the unique value) query

    Select Max (ID) from User_table

    I have a process that will remove data in another table based on the value of this element. (ID is PK in the User_table and is FK my_table)

    DELETE FROM MY_TABLE WHERE ID =: P1_ID;

    Zero or lines will be deleted

    However,: P1_ID is null when it indicates the value... when I make the point as hidden and protected the deletion will work... but I need to show the value on my page as show only...

    I use APEX 4.2

    so could someone please help me?

    case 1:-IF you use session state - YES

    and dynamically change its value it give error protection session state in the future.

    Reference:--

    Session state protection violation

    display only the item and save session state

    case 2:- but if your session set State = no. it ends the session state protection error

    but you will not be able to use the value defined in the feature display

    Solution:-in your case if you want to use the value in the element displayed only as you say

    It works with the value of the hidden Yes it will be.

    either use your display for viewing only, and also set the value of element element hidden to remove from the table

    because

    NOTE:-you cannot set save no. session and its value used in parallel (or it can be used to remove or add that I tested and faced this thing too)

    one last thing keep hidden protected point value NO otherwise, it will give error:-manually editing the protected point

    Reference:--

    HI, Patrick:

    We had the same problem that ' "violation of Page protection: this can be caused by a manual editing of a protected page items." " If you don't know what caused this error, contact the administrator of the application for assistance. Contact your administrator for the application. ».

    APEX 4.1.1.00.23 page protection violation

  • Filter to show only the batteries

    Sorry to ask this question. The answer may be very simple, but I was not able to know how to filter only to show fireplaces or filter not not to display the battery. I see no option to create a smart collection that shows only the batteries. Any suggestions?

    You will need to use a third-party plugin: DevMeta, Data Exploreror any filter.

  • Show only user information after the connection

    Hello world

    I hope someone can help me please, I'm new to databases and programming.

    OK, I just created my first page of the login of the user (using the dreamweaver builtin functions).  Nowi have successfully built a MySQL database, insert a table with username, userPass and e-mail.  The login page works correctly and redirects to the authorized page

    Now, this is where I get lost.  On the authorized page, I want that it lists the information related to that user only, IE display their username and your email address.  What I can't work.  I'm sure you must filter to show only the logged-in user, but I can't see anything at all.

    Help, please

    My login page

    <?php require_once('Connections/connection.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    mysql_select_db($database_connection, $connection);
    $query_users = "SELECT * FROM tbl_users";
    $users = mysql_query($query_users, $connection) or die(mysql_error());
    $row_users = mysql_fetch_assoc($users);
    $totalRows_users = mysql_num_rows($users);
    ?><?php
    // *** Validate request to login to this site.
    if (!isset($_SESSION)) {
      session_start();
      if (isset($_POST['userName'])) {$_SESSION['userName'] = $_POST['userName'];}
    }
    $loginFormAction = $_SERVER['PHP_SELF'];
    if (isset($_GET['accesscheck'])) {
      $_SESSION['PrevUrl'] = $_GET['accesscheck'];
    }
    if (isset($_POST['username'])) {
      $loginUsername=$_POST['username'];
      $password=$_POST['password'];
      $MM_fldUserAuthorization = "";
      $MM_redirectLoginSuccess = "index.php";
      $MM_redirectLoginFailed = "login.php";
      $MM_redirecttoReferrer = false;
      mysql_select_db($database_connection, $connection);
      
      $LoginRS__query=sprintf("SELECT userName, userPass FROM tbl_users WHERE userName=%s AND userPass=%s",
        GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text")); 
       
      $LoginRS = mysql_query($LoginRS__query, $connection) or die(mysql_error());
      $loginFoundUser = mysql_num_rows($LoginRS);
      if ($loginFoundUser) {
         $loginStrGroup = "";
        
        //declare two session variables and assign them
        $_SESSION['MM_Username'] = $loginUsername;
        $_SESSION['MM_UserGroup'] = $loginStrGroup;       
        if (isset($_SESSION['PrevUrl']) && false) {
          $MM_redirectLoginSuccess = $_SESSION['PrevUrl']; 
        }
        header("Location: " . $MM_redirectLoginSuccess );
      }
      else {
        header("Location: ". $MM_redirectLoginFailed );
      }
    }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction; ?>">
      <label>User Name:
      <input type="text" name="username" id="username" />
      </label>
      <p>
        <label>Password:
        <input type="password" name="password" id="password" />
        </label>
      </p>
      <p>
        <label>
        <input type="submit" name="submit" id="submit" value="Submit" />
        </label>
      </p>
    </form>
    </body>
    </html>
    <?php
    mysql_free_result($users);
    ?>
    
    

    My page authorized

    <?php require_once('Connections/connection.php'); ?>
    <?php
    //initialize the session
    if (!isset($_SESSION)) {
      session_start();
    }
    // ** Logout the current user. **
    $logoutAction = $_SERVER['PHP_SELF']."?doLogout=true";
    if ((isset($_SERVER['QUERY_STRING'])) && ($_SERVER['QUERY_STRING'] != "")){
      $logoutAction .="&". htmlentities($_SERVER['QUERY_STRING']);
    }
    if ((isset($_GET['doLogout'])) &&($_GET['doLogout']=="true")){
      //to fully log out a visitor we need to clear the session varialbles
      $_SESSION['MM_Username'] = NULL;
      $_SESSION['MM_UserGroup'] = NULL;
      $_SESSION['PrevUrl'] = NULL;
      unset($_SESSION['MM_Username']);
      unset($_SESSION['MM_UserGroup']);
      unset($_SESSION['PrevUrl']);
     
      $logoutGoTo = "login.php";
      if ($logoutGoTo) {
        header("Location: $logoutGoTo");
        exit;
      }
    }
    ?>
    <?php
    if (!isset($_SESSION)) {
      session_start();
    }
    $MM_authorizedUsers = "";
    $MM_donotCheckaccess = "true";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { 
      // For security, start by assuming the visitor is NOT authorized. 
      $isValid = False; 
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. 
      // Therefore, we know that a user is NOT logged in if that Session variable is blank. 
      if (!empty($UserName)) { 
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. 
        // Parse the strings into arrays. 
        $arrUsers = Explode(",", $strUsers); 
        $arrGroups = Explode(",", $strGroups); 
        if (in_array($UserName, $arrUsers)) { 
          $isValid = true; 
        } 
        // Or, you may restrict access to only certain users based on their username. 
        if (in_array($UserGroup, $arrGroups)) { 
          $isValid = true; 
        } 
        if (($strUsers == "") && true) { 
          $isValid = true; 
        } 
      } 
      return $isValid; 
    }
    $MM_restrictGoTo = "login.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {   
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($QUERY_STRING) && strlen($QUERY_STRING) > 0) 
      $MM_referrer .= "?" . $QUERY_STRING;
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo); 
      exit;
    }
    ?><?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
    {
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;    
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      }
      return $theValue;
    }
    }
    $colname_Recordset1 = "-1";
    if (isset($_SERVER['MM_Username'])) {
      $colname_Recordset1 = $_SERVER['MM_Username'];
    }
    mysql_select_db($database_connection, $connection);
    $query_Recordset1 = sprintf("SELECT * FROM tbl_users WHERE userName = %s", GetSQLValueString($colname_Recordset1, "text"));
    $Recordset1 = mysql_query($query_Recordset1, $connection) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <p align="center">WELCOME <strong><?php echo $row_Recordset1['userName']; ?></strong>,</p>
    <p align="center">IF YOU ARE VIEWING THIS PAGE THEN YOU HAVE SUCCESSFULLY LOGGED IN</p>
    <p align="left"> <a href="<?php echo $logoutAction ?>">Log out</a></p>
    </body>
    </html>
    <?php
    mysql_free_result($Recordset1);
    ?>
    

    You have selected the wrong option in the fields of the Recordset dialog box filter. You have chosen Server Variable. It is expected the Session Variable.

  • Extracts the Date of Date part /Timestamp part

    Hello

    How to extract the party only date without the timestamp value in SQL. For example, from 2008-05-13 01:34:20, I need to extract only the 2008-05-13...


    Thank you...

    Hello

    Try

    Select to_char(SYSTIMESTAMP,'YYYY-MM-DD') DATE_EXT FROM DUAL;
    

    * 009 *.

    Published by: 009 March 14, 2010 23:30

  • DATE in TIMESTAMP data type conversion

    Hello

    My question is this:

    1. I have a variable of type DATE, which I attribute the value of SYSDATE
     mydatevar DATE:= SYSDATE;
    2. I want to find * «today» *, truncated to DATE
      TRUNC (mydatevar, 'DD')
    TRUNC function returns the DATE data type. So I get to the point for example 2 *'2010-01-13 00:00:00 ' *.

    3. I want to assign the value of the point 2, to a variable of type TIMESTAMP
      mytimestampvar TIMESTAMP := mydatevar;
    implicitly that will convert the variable DATE to TIMESTAMP.

    Problem: when converting (implicit and explicit conversion with a format mask), I lose hours "00" and "00" minutes and receive something like this: "10 January 13 * 12 *. 00.00.000000000 AM.

    Question: How can I convert a DATE to TIMESTAMP keeping the hours and minutes zeros?

    Why I need this conversion: I have a table with one "column1" TIMESTAMP column (0) and I take only the rows of the table, where 'column1' is in the range of today 12:00 in the morning until now (what time it is).

    Features of the database NLS:
    PARAMETER                           VALUE
    NLS_LANGUAGE                           AMERICAN
    NLS_TERRITORY                   AMERICA
    NLS_CURRENCY     $
    NLS_ISO_CURRENCY                    AMERICA
    NLS_NUMERIC_CHARACTERS     .,
    NLS_CHARACTERSET                    AL32UTF8
    NLS_CALENDAR                            GREGORIAN
    NLS_DATE_FORMAT                    DD-MON-RR
    NLS_DATE_LANGUAGE            AMERICAN
    NLS_SORT     BINARY
    NLS_TIME_FORMAT                     HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT             DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT             HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY              $
    NLS_COMP                             BINARY
    NLS_LENGTH_SEMANTICS               BYTE
    NLS_NCHAR_CONV_EXCP             FALSE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_RDBMS_VERSION             10.2.0.4.0
    Session settings are the same.

    DBTIMEZONE is "+ 02:00".

    Verdi wrote:
    Problem: when converting (implicit and explicit conversion with a format mask), I lose hours "00" and "00" minutes and receive something like this: "10 January 13 * 12 *. 00.00.000000000 AM.

    I don't think you lose necessarily any information whatsoever. It is probably more a function of your NLS_TIMESTAMP_FORMAT and NLS_DATE_FORMAT. For example, your NLS_DATE_FORMAT could be default setup for a HH24 (24 hours) which would report to midnight as hours of "00". However, it seems that your NLS_TIMESTAMP_FORMAT is configured with "HH" format with a Meridian indicator that means 12 hours time.

    Your comparisons should use date/timestamp data types anyway, so as long as the input value is correctly converted to date type that shouldn't matter in any case.

    You can see what is actually stored by using the DUMP function:

    SQL> SELECT  DUMP(TO_TIMESTAMP(TO_CHAR(TRUNC(SYSDATE,'DD'),'MM/DD/YYYY HH:MI:SS AM'))) AS TSTAMP
      2  ,       DUMP(TRUNC(SYSDATE,'DD')) AS DT
      3  FROM DUAL
      4  /
    
    TSTAMP                                                                      DT
    --------------------------------------------------------------------------- --------------------------------------------------
    Typ=187 Len=20: 218,7,1,13,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0                  Typ=13 Len=8: 218,7,1,13,0,0,0,0
    

    As you can see the TSTAMP and DT store almost the same values (218,7,1,13), but the TSTAMP has more precision because of fractions of a second.

    HTH!

    Published by: Centinul on January 13, 2010 07:23

  • Sorting the columns showing only a line

    Hello

    I have a report of sql query that I helped sort on all columns. When I click on the header to sort a column report shows only one line.
    If anyone can help me, I would really appreciate it!

    Thank you!

    Once I met a similar problem like the one you describe. I suspect that the problem was related to the data that the report was released.
    I was able to make the problem disappear by disabling "Partial Page Refresh" for the report. Define 'NO' for the attribute "Activate partial Refresh of Page" in the page 'Report attributes' disable PPR for the report.

    CITY

  • make a text box show only after a branch of the page

    Hello

    I have a form on apex 3.0 page. This form has a 2 textarea element and configuration of width for 110 and the maximum width is 500. After a user to enter data on all points, when he clicks on support I branch to another page that has been copied from the page of the form, but this time I want to make the textarea elements and other elements appearing on this page read-only, I have no success with making the textarea a readonly. I changed the readonly condition point to say always, it worked bu it shows the data on a long line it does'nt keep the same width as the text box has.

    I hope that I can get an answer soon. Thank you.

    Kind regards
    Sofia.

    In the attributes of your text box HTML form elements put disabled = "yes" or readonly = "readonly".

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for