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

Tags: Database

Similar Questions

  • Lost recovery key and need to retrieve the current data

    Yes.

    It's a really bad situation.
    In order to regain sync I have to generate a new recovery key
    But the recovery key generator will mangle the data synchronized.

    Is it possible to recover the data?

    I was not able to sync with Firefox on Android and a few days ago my hard drive gives up so I had to reinstall windows.

    It is amazing that nobody reads the entire post.

    "I was not able to sync with Firefox on Android and a few days ago my hard drive gives up so I had to reinstall windows."

    Where was the big warning sign when I joined firefox sync?.

    Thanks for a useless service. Now, I have a lot of passwords to reset...

  • Retrieve the current year in the list of members

    Hi all

    Is there any function in the member lists to retrieve the current year? Example:

    = Month() Returns current month

    Thanks a lot for your help.

    Benoit

    I do not recommend the use of this code...

    Prior_Month_Date = Now() - 28
    

    IF you want to determine the previous month, use the DateAdd command...

    Prior_Month_Date = DateAdd("m", -1, Date())
    

    Charles

  • Lost admin password, how to retrieve the current password to change it?

    I forgot my Admin password, I connect on my laptop using the scanner print finger all the time and when I try to change the password for Admin it ask the password which I do not remember. How to retrieve the current password and change it in Windows 7 Home premium?

    It's a laptop Acer 5738 G

    You can change your current password as follows:

    1. click on start.
    2. type the three letters cmd in the search box.
    3. press on Ctrl + Shift + Enter
    4. click on "run as Administrator".
    5. type the following command and press ENTER after each:
    NET user "user %%nom" 123456

    Now the password is 123456. While dealing with accounts and passwords: having a single admin account on a PC is about the same as having a unique key for your car. What happens if you lose? He lost? Break it? A robust Windows Setup requires at least the following:

    • Two admin accounts fully tested, with their passwords to record on paper.
    • A password key file. Click Start / Help, then search for help on "password". Follow the instructions to create a key on your USB flash drive file so that you'll never find yourself in this uncomfortable situation.
  • Retrieves the current value

    Hello.

    I use jdev11.1.5
    I had created the Office of evaluation, namely fin_period, rec_dist_doc_hd
    I had also created a VO with readonly querry
    select distinct fp_bu,fp_year,fp_period, decode(gdh_status,'R','Yes','No') distribution,decode (aj_status ,'N','Yes','No') Recursion,
    decode(RSUPHD_STATUS,'P','Yes','No') Supplier,decode(RCDOC_STATUS,'P','Yes','No') Customer
    from gl_dist_hd,fin_periods,appl_journals,rec_suplr_doc_hd,rec_cust_doc_hd
    where fp_bu = gdh_bu(+) and
    gdh_bu = aj_bu(+) and
    aj_bu = RSUPHD_BU(+) and
    RSUPHD_BU = RCDOC_BU(+) and
    fp_year = gdh_year(+) and
    gdh_year = aj_year(+) and
    aj_year = RSUPHD_DOC_YEAR(+) and
    RSUPHD_DOC_YEAR = RCDOC_DOC_YEAR(+) and
    fp_period = gdh_period(+) and
    gdh_period = aj_period(+) and
    aj_period = RSUPHD_DOC_PERIOD(+) and
    RSUPHD_DOC_PERIOD = RCDOC_DOC_PERIOD(+)
    ORDER BY fp_period asc
    My scenario is that I need to get the current value of the finperiod attribute

    links below explains my scneario

    http://www.4shared.com/photo/XyV4inog/D001.html

    Hello.
    If you want to get the attribute value in your ApplicationModuleImpl class
    then try this method

            ViewObjectImpl vo = getYourViewObjectName();
            Row current = vo.getCurrentRow();
            Object val = current.getAttribute("FpPeriod");
    
  • Need to retrieve the BONES but do not have the habit of losing data on the HARD drive

    Dear all!

    For long time now, I tried to disable a Trojan horse or a worm, on my Windows XP Home (Home!) i.e. get rid of the cftmon_.exe, when I decided to follow the instructions from Symantec and pieces manually deleted from the register, I guess she was part USERINIT (turn off the system before restore and put on after the deletion).

    It can be as well as I did not right, something after the fact that I have would be to end the session at the time the logon process has started. This is relatively known issue here, with different options.

    -J' need to keep the data on two HARD drives.
    -I have no other partitions.
    -I don't know what I've got on one of them, which I could use to free space Recovery Expert mode.

    a. the fact that I want to take the option with Toshiba, which is Expert mode (http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=2513&tstart=125) as a last recovery, DVDs on

    b. I have trouble with the installation of the Recovery Console (with Windows XP (Professional!) original CD, 'R' for 'fix), but I would get the message "Setup has not found hard disk units installed in your computer"...
    I understand that I would need to install the driver RAID (http://forums.computers.toshiba-europe.com/forums/thread.jspa?threadID=20093&messageID=73758) but I'm afraid that this may delete the data on the disc.

    My questions are the following:

    1 install the RAID driver (downloaded from the Toshiba off site web http://support.toshiba-tro.de/tools/updates/raid-drv/raid-drv-qog20-xp-1380.zip and installed on the floppy drive I guess) so we hope to install the Recovery Console, and do the rest of the work, make data disappear my 2 (remove) HARD drives?

    2. If I use Toshiba Recovery DVD, Expert mode that is finally what is the size of partition should be recorded for the mirror on the half vacuum 1.HDD?, should I partition 2 HDD, after it backup and count data will be lost? Choose any setings special during the process, apart from those mentioned in the link above? What should I do after wards? The registry damaged when you logged in and how can I build? I will be able to use personal and archive data from Microsoft Outlook?

    3. is there a alternative with UBCD4Win and UBCD? What is the best? What is the procedure of after the start of the CD after reboot? How to copy/repair the userinit files?

    I'm sorry for the load of information, but I am pretty stuck. All the necessary data for my normal life are buried here!

    A big thank you JohnnyS, tw, Quad, Eldorado and many others!

    See you soon!

    Hi friend

    I would like to respond on comments like yours, it s a good exercise for my work and my s really cool to have a few topics which will help all the people here.

    JohnnyS is a friend of mine who works with me at our office and we talked a bit about your problem.
    If his opinion is to use the UBCD4Win and work with this option.

    The advice from him were:

    Take a USB - HDD enclosure and put a disk in it and start with UBCD4Win. Copy any important data in a folder on the external HARD drive, then remove the uneeded data on this subject. Only important data!
    Make a backup of your data on the external hard drive for two HDD´s I hope that you have enough free space.

    Format the drive in your machine and get it back. Install the system as usual on your first HARD drive.
    Then put the data anywhere.

    So I don't know if I have it just ask, a little more explanation would be useful. I think that this is a long thread. ;)

    Welcome them

  • Retrieve the current month

    Hi guys,.

    I'm recovering from the current month. The code is as follows:

    Calendar.getInstance (TimeZone.getTimeZone ("GMT")) .get (Calendar.MONTH)

    It works very well... I expect instead, he returned 11, not 12! He is 0-based? I don't think, because I have found no reference to this subject in the docs or here in the forums. Application for the work number current date as expected in fact.

    It returns 11 on the Simulator and real phones (a "BOLD" and a 8310). The system calendar is set correctly to December, of course.

    Any clue?

    Use no comparison with what is called "magic" numbers

    He has months constant defined in the Calendar class:

    public static final int DECEMBER
    

    Compare the return value with the constants that represent the months.

  • I need to download the current verson of Adobe camera raw, where can I download this?

    I need to download camera raw for photoshop cs5 Adobe, where can I download this plug in?

    Camera Raw plugin and Adobe application compatibility

    The latest version of Camera Raw compatible with CS5 is the version 6.7.

    Win: Adobe - Photoshop: for Windows: Camera Raw 6.7 update: thanks

    Mac: Adobe - Photoshop: for Macintosh: Camera Raw 6.7 update: thanks

    What camera and model are your Raw files? That could have a latest version of Camera Raw in which case CS5 will not be able to open the Raw files.

    You will then have to convert to DNG

    Digital Negative (DNG), Adobe DNG Converter | Adobe Photoshop CC

  • Need to retrieve the values of a column


    Hi Experts,

    I need extract values and store them in a separate column. Can someone help me to write the function to extract the data from the column.

    I have a DOC_NO of column I need to extract the date of birth, sex, nationality

    Doc_no: 080 9005070288

    Date of birth: 900507-yyddmm

    Sex: 0288-if less than 5000 can male other female

    Nationality: 080 - 0 means the India 1 forgiener.

    Thank you

    Emmeline

    Simply this:

    Select substr (doc_no, 1, 6) Date of birth, case where 5000 > to_number (substr (doc_no, 7, 4)) fitting and "masculine" of other 'female' gender, then substr (doc_no, 11) nationality

    from table_name

    Don't know what 0 you have been pointing to nationality, but you can certainly change the last substr to deduce from this area.

  • Need to retrieve the records whose salary is higher than the max of avg salar

    I wrote a query to retrieve the data whose salary exceeds the maximum salary of the avg of all departments
    SELECT * FROM EMP WHERE SAL>
    (SELECT MAX(AVG (SAL)) FROM EMP
    GROUP BY DEPTNO)
    I would like to write that this query using the associates.

    I tried
    SELECT EMPNO,ENAME,SAL FROM EMP E1
    WHERE SAL > ANY( SELECT MAX(AVG(SAL)) FROM EMP E2
    WHERE E1.DEPTNO  = E2.DEPTNO)
    It gives me error that we cannot use a function nested in the collateral.

    What is the solution of the present?

    Thnks

    This?

    select * from emp a
    where exists
    (select 1 from emp b
    where a.deptno=b.deptno
    and a.sal>(select round(max(avg(sal))) from emp group by deptno));
    
  • Need to retrieve the text of a URL and store in a variable

    Looking for advice here, I can do this in PHP, but I'm too new to CF doesn't know it yet. To spend of PHP to the CF would mean sending these variables in the URL of the web that I want to avoid.

    Basically I have a precompiled java module I should use referring a Y or N to verify authentication.
    I need to create the next scenerio:

    Display with the username and password form;
    Enter the name of the user as user name and password as password
    From the screen of the http:/intranet/servlet/WebLogin URL, get Y or N? UserID = XXX & Password = YYY
    Store the results of the verification as a global variable

    My attempt of CF:
    < cfform = "loginform" action = "http:/intranet/servlet/WebLogin" name
    method = "Get" >
    < table >
    < b >
    user name < td >: < table >
    < td > < cfinput type = "text" name = "UserID" required = "yes".
    message = "a user name is required" > < table >
    < /tr >
    < b >
    password < td >: < table >
    < td > < cfinput type = "password" name = "Password" required = "yes".
    message = "a password is required" > < table >
    < /tr >
    < /table >
    < br >
    < input type = "submit" value = "Log In" >
    < / cfform >

    -This code works to redirect the display URL displays Y or N, but how can I not enter the result and store =)


    : My PHP code to do this (works completely)
    <? PHP

    $url = ' http:/intranet/servlet/WebLogin? UserID = XXX & Password = YYY';
    $html = file_get_contents() ($url);
    If (preg_match ('/ Y /', $html, $matches))
    {
    echo "success."
    }
    on the other
    {
    ECHO 'no success ';
    }
    ? >


    Thank you all

    Quote:
    Posted by: nborton
    ... ...
    From the screen of the http:/intranet/servlet/WebLogin URL, get Y or N? UserID = XXX & Password = YYY

    Galloping gargoyles! There are so many things wrong here!

    Anyway, if you're stuck with this approach, you will need to use cfhttp to get the result.

    Something like the attached code should help you get started.

    Edit: fixed error of syntax IsDefined...

  • Need to retrieve the Satellite L450D-14V

    Hello

    computer laptop first time user
    I recently bought the laptop aboe on windows 7, and unfortunately, I need to recover the system and do not have a disk to

    So I was wondering if you could please help
    Total novice here.

    Hi Kristy

    If you check the [Toshiba product Recovery | http://forums.computers.toshiba-europe.com/forums/forum.jspa?forumID=49&start=0] area here in this forum, you will get a lot of discussion on this topic

    The laptop can be recovered using the recovery disk or recovery disk that you can create using the preinstalled software called Toshiba Recovery Media Creator.

    As I said above: more details could be found in different threads a user manual.

  • Retrieve the current user info

    Hello

    I have a dynamic form created using the LC Designer. Is it possible to extract the details of the current user who looks at the form in the form itself?

    Hi Pierre,.

    If you create a file with the following code .js and place in the JavaScripts folder under the directory of installation of the reader (or Acrobat), it's C:\Program Files (x 86) \Adobe\Reader 11.0\Reader\Javascripts on my machine and I called my getIdentityLoginName.js file, then all defined functions will be available as a global function in your JavaScript forms and will also have access to secure items such as identity.  The code is so;

    var getIdentityLoginName = app.trustedFunction (function () {}

    app.beginPriv ();

    return (identity.loginName);

    app.endPriv ();

    });

    And can be called from a form as;

    App.Alert (getIdentityLoginName ());

    Concerning

    Bruce

  • Programming logic needed to retrieve the records for the last month/week

    Hi all

    I need assistance in programming SQL logic.

    Oracle database version: 10.2.0.3.0

    Requirement

    In an environment of DW, I need to program to weekly and monthly automated batch insert the data from Data_tbl to Reporting_tbl to generate reports. Descriptions of paintings are given below.

    Table 1 - Data_tbl (Source of table - this table is updated daily).

    Record_dt first name last name


    Table 2 - Reporting_tbl_ (the target table)

    Cycle_dt first name last name

    1. monthly report

    In the SQL query, I where clause conditions.

    Where Record_dt > = 1 November 08 ' and record_dt < = 30 November 08 '

    Using the above condition in development, I'm pulling over the last months data source table data. This will be repeated every month, and it should be automated.
    that is, if I run this report at any time in December 2008, he should choose documents dates from Nov 01 to November 30, 2008. If I run this report at any time in January 2009, he should choose documents dates to Dec. 01 to December 31, 2008.
    Date values must be assigned for the last month. Value of Cycle_dt in the target table must be the date of the end of last month as on November 30, 2008, 31-dec-2008.


    2 weekly Report

    In the SQL query, I where clause conditions.

    Where Record_dt > ='01-dec-08' and record_dt < ='' 07-dec-08

    Monday week start date and end date is Sunday.
    If I run the report between the 08 Dec-14 Dec, it should make records of the dates of Dec. 01 to December 7, 2008.
    On 15 December, he should seek from 08 Dec-14 Dec.
    Value of Cycle_dt in the target table must be the date of last weekend, as on December 7, 2008, December 14, 2008.
    Please help me with the logic for both monthly and weekly reports.

    Thank you

    Hello

    TRUNC (dt, 'W') is the beginning of the week, which may be different days, according to the NLS parameters in your session. Unless you want something that varies from one session to the next, you should stick with the weeks of ISO.

    TRUNC (SYSDATE + 1, 'IW') - 1
    

    is the Sunday of the week underway Sunday to Saturday, which starts and ends in 1 day before the ISO week.
    To find the precedent of the week from Sunday to Saturday:

    WHERE   record_dt >= TRUNC (SYSDATE - 6, 'IW') - 1
    AND     record_dt <  TRUNC (SYSDATE + 1, 'IW') - 1
    

    If you were interested in a week from Saturday to Friday (either 2 days earlier than the ISO week):

    TRUNC (SYSDATE + 2, 'IW') - 2
    
  • Need to retrieve the password for Xbox 360 Windows Live ID.

    Original title: password retrieve

    In my xbox 360 windows live ID, I have my password and it was removed, I have to contact microsoft windows but nothing.what do I do?

    Hi ElvisKiekebosch,

    ·         Remember to make changes to the computer, after which the issue started?

    ·         What operating system is installed on the computer?

    ·         You get the error message?

    Try the steps from the following links and see if it helps:

    Error: The e-mail address or the password entered is not valid

    The Windows Live ID management

    The problems of connection to your Xbox LIVE account

    I hope this helps.

Maybe you are looking for

  • Transfer the data url option gone

    I use Firefox 3.6.26 > 10.4.11 OS > Mac G5 I use to be able to look at a Web site was loading along the bottom of the web page, that is to say the transfer data: I miss this feature. Please tell me how to get it back.

  • What is my iMac worth?

    How is it going. I'm strongly considering selling my iMac and use this money to build my own system. I'm curious to know how it would be interesting. Here are the specs: -iMac (retina 5K, 27 inches, end of 2014) -4 GHz Intel Core i7 -16 GB 1600 MHz D

  • Add LaserJet 1525nw to the wireless network

    Hello Since I update my router for the Cisco E3200, it seems that my printer laser color 1525nw spray can not register to the router. I tried the router WPS button to find the printer and the PIN method, but both failed. Can someone please help me ge

  • Update error: 0x800A0046

    Can't get updates 0x800A0046 error.  I did everything what I read, but does not work. all the answers?

  • Vista; When you use the cursor on laptop auto function appears and takes over. How to get rid of?

    using my laptop mouse pad, when draggin my cursor up/down and side, there is an automatic feature of "panoramic" which takes in charge do what im and moves my view page. How can I get rid of it, or at least turn it off? Thanks for any help