Get latest date in table

Hello to all Professionals,
How do i get the latest date on the list listed below?
TABLE: ACTIVITIES
FIELDS USER_ID ACTIVITY CREATED_DATE
1 get paper 07.05.2009 08:57:24
1 get pencil 06.08.2008 05:06:22
2 get shoes 11.08.2008 03:23:44
2 get sandal 01.08.2008 03:24:43
EXPECTED OUTPUT IS:
FIELDS USER_ID ACTIVITY CREATED_DATE
1 get paper 07.05.2009 08:57:24
2 get shoes 11.08.2008 03:23:44
Thanks to all.

Hello
try this,
SELECT user_id
     , activity
     , CREATED_DATE
  FROM (SELECT user_id
             , activity
             , CREATED_DATE
             , rank() over(Partition BY USER_ID Order BY CREATED_DATE Desc) Rn
          FROM Tab)
WHERE rn = 1or
SELECT a.user_id
     , a.activity
     , a.CREATED_DATE
  FROM tab a
WHERE a.CREATED_DATE = (SELECT Max(CREATED_DATE)
                           FROM tab b
                          WHERE a.user_id = b.user_id)Regards,
Christian Balz

Similar Messages

  • How to get latest date

    If there are two dates for a P O and i want to get latest date how to giv the condition in select stmt.kindly ctell me pls.from EKET table.

    Hi Sameer,
    Try using this code.
    IF NOT it_ekpo[] IS INITIAL.
      SELECT ebeln
             ebelp
             etenr
             eindt
             menge
             wemng
        FROM eket
        INTO TABLE it_eket
        FOR ALL ENTRIES IN it_ekpo
        WHERE ebeln EQ it_ekpo-ebeln
        AND   ebelp EQ it_ekpo-ebelp.
      IF sy-subrc EQ 0.
        SORT it_eket BY ebeln ASCENDING
                        ebelp ASCENDING
                        eindt DESCENDING.
        DELETE ADJACENT DUPLICATES FROM it_eket COMPARING ebeln
                                                          ebelp.
      ENDIF.
    ENDIF.

  • Fm to get archived data from table bseg

    hi ,
    what is the FM to get archived data from table bseg

    Hi Friend,
    Here is the FM you need,
    FAGL_GET_ARCH_ITEMS_BSEG.
    Regards,
    Lakshmanan

  • Converted access app to apex when run get no data found; table does have da

    COnverfted MS Access app to apex. WHen I run the appliation I get no data found.
    However the table does have data. HOw do I see what is actually running?
    The pre-converted form saids its based on a query. The form and the query shows up as valid. I then converted the form. When I run it I get no data found. If I take the query that the form is based on and run in sqlplus I get data.
    Another confusing thing is when I look at the page for the converted form, there is nothing in the source area for the region where the converted query results should be.
    Did the conversion not work? How can I tell what is the source? Where should the results from the query be located?

    Its a standard SQL query:
    SELECT xtbl_MSDS_to_CAS.msds_id,
    xtbl_MSDS_to_CAS.cas,
    xtbl_MSDS_to_CAS.alias,
    xtbl_MSDS_to_CAS.amount,
    xtbl_MSDS_to_CAS.veh_prod,
    xtbl_MSDS_to_CAS.compliance
    FROM xtbl_MSDS_to_CAS
    The name of the above query lets say for example purposes is MYQUERY.
    After looking at the page def I see that the way the conversion tool worked is that in the page definition it has this in the Processes Section:
    After Header:
    Fetch Row from MYQUERY.
    Then it says automated Row fetch.
    I compared this to another form that was converted thru the migration APex tool as well and on that form that does work I found that:
    The query(form) was converted and placed in a region and the source has the query. THat is, it was not in the process section but in the region: source section.
    So why does the conversion tool decide to convert one and populate as a region source and the other as a process in the page definition?
    THis is all very confusing.
    Hope you were able to follow me.

  • JTable not getting latest data (unless mouse is focussed out of the cell)

    Hi,
    I am using JDK 1.4.2. I am having a basic problem of reading the data present in a JTable.
    JTable table = new JTable(9, 9);
    JButton solveButton = new JButton("Solve");
    solveButton.addActionListener(new DumpListener(table));The dump listener just dumps the data in the table.
    I have a 6*6 jtable where each value is a number. Now i focus the mouse on say square (1,2) and enter some data, then on square (5,5) and enter data say "4". There is a button in this panel, and which on being clicked, gets the table data and does some operation on it.
    Problem is when i use the "getValueAt" API, it gives correct data for square(1,2) but not for (5,5). This is because the mouse focus is still on square (5,5). However if i focus out of square (5,5) using my mouse (to some other random square) then the data comes up properly. Am i missing something here?
    I understand it is to do with the data model getting altered only when the mouse if focussed out? But this seems to be very trivial. Is there a way of getting the data out without focusing the mouse out of the cell?

    My solution uses a JFrame instead of a JApplet.
    But I think the effect is the same.
    First of all, the setVisible(true) should be put after all components are added.
    Secondly, when you retrieve data in the table, you'd synchronized() the model.
    Thirdly, I didn't find any problem when I call stopCellEditing(). Perhaps I'm using Java 5. Anyway, please try whether the following code works.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.TableModel;
    public class DummyFrame extends JFrame {
         public static void main(String[] args) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        DummyFrame frame = new DummyFrame();
                        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                        frame.pack();
                        frame.setVisible(true);
         public DummyFrame() {
              JTable table = new JTable(9, 9);
              JButton data = new JButton("DATA");
              data.addActionListener(new SimpleButtonListener(table));
              JPanel panel = new JPanel();
              panel.setLayout(new BorderLayout());
              panel.add(table, BorderLayout.CENTER);
              panel.add(data, BorderLayout.SOUTH);
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(panel);
    class SimpleButtonListener implements ActionListener {
         JTable table;
         public SimpleButtonListener(JTable table) {
              this.table = table;
         public void actionPerformed(ActionEvent e) {
              synchronized (table) {
                   if (table.isEditing()) {
                        System.out.println("Is Editing!");
                        table.getCellEditor(table.getEditingRow(), table.getEditingColumn()).stopCellEditing();
              printArray(getData());
         String[][] getData() {
              synchronized (table) {
                   TableModel model = table.getModel();
                   synchronized (model) {
                        String[][] question = new String[9][9];
                        for (int i = 0; i < 9; i++) {
                             for (int j = 0; j < 9; j++) {
                                  question[i][j] = model.getValueAt(i,j) == null ? null : model.getValueAt(i,j).toString();
                        return question;
         void printArray(String[][] question) {
              int rows = question.length, columns = question[0].length;
              for (int i = 0; i < rows; i++) {
                   for (int j = 0; j < columns; j++) {
                        System.out.println("[" + i + ", " + j + "] -> "
                                  + question[i][j]);
    }And ... please don't forget to give me the 5 Duke dollars if it works.
    Thank you!
    Asuka Kenji (UserID = 289)
    (Duke Dollars Hunting now ...)

  • Application process is not getting the data from table

    I have created the following application process based on AJAX select value but using a pop up LOV
    DECLARE
    my_det VARCHAR2 (200);
    BEGIN
    SELECT DM_00010_CUST_NAME INTO my_det
    FROM ODM_MD_00010
    WHERE DM_00010_CUST_CODE = nvl(:P11_DT_00020_CUST_CODE,21);
    exception when no_data_found then null;
    HTP.prn (my_det);
    END;
    the process is getting no data found error ( hence the exception) so I am getting NULL in the name field on screen.
    any help ?

    the javascript I have in the region header is:
    <script language="JavaScript" type="text/javascript">
    function f_getDet ()
    var get = new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=getDet',0);
    get.add('P11_DT_00020_CUST_CODE',html_GetElement('P11_DT_00020_CUST_CODE').value)
    gReturn = get.get();
    if(gReturn)
    {  html_GetElement('P11_DT_00020_CUST_NAME').value = gReturn  }
    else
    {  html_GetElement('P11_DT_00020_CUST_NAME').value = 'null'  }
    get = null;
    </script>

  • How to get the data of table from JSP to Servlet?

    Hi,
    I have a dynamic editable table of 3 columns on a jsp. On click on any cell the usr can edit the data. Now on click of submit button on the jsp I need to submit or get the whole data of all the rows to a servlet which would further process it.
    How do I do that?
    TIA.

    I am not sure whether u r getting my doubt or not
    properly. I am populating the table data in an
    arraylist of DO. with this arraylist I am displaying
    the data on the Screen.
    <%
    for(int i=0;i<alList.size();i++)
    DO d = alList.get(i);
    %>
    <Table>
    <tr>
    <td><%=d.getfirstField()%></td>
    <tr>
    </Table>
    <%
    %>
    The above code sniipet displays the data on screen.
    But as table being editable i would change the data
    in the cell and submit .
    So how do i capture this data? I cannot name the cell
    becos I am not sure how many rows would be displayed.
    In servlet I would use request.getParameter(?);
    TIAIf you table is editable nad has input field to edit then "malcolmmc's " answer will work perfectly.
    you can also use hidden form fields to use those vaues at servlet like this
    <input type="hidden" name="UniqueName' value="<%=d.getfirstField()%>'>
    Here UniqueName should be the unique for each cell value so that on servlet you can fetch these values using request.getParameter("UniqueName").

  • Unable to get the data from table controller

    Dear All,
    I am facing the following problem in BSP tableview,
    I am having tableview on page as below
    <htmlb:tableView id              = "reportsTable2"
                           headerVisible   = "true"
                           headerText      = "Pending PANs:"
                           footerVisible   = "true"
                           design          = "standard"
                           visibleRowCount = "20"
                           width           = "100%"
                           fillUpEmptyRows = "false"
                           columnWrapping  = "false"
                           columnWidth     = "200"
                           sort            = "server"
                           keyColumn       = "panid"
                           onRowSelection  = "alternate()"
                           selectionMode   = "SingleSelect"
                           iterator        = "<%= tv_itr %>"
                           table           = "<%=IT_DATE_RANGE_PAN %>" >
          </htmlb:tableView>
    I want  collect the table view data in DO_REQUEST method, when i press the sort option on any column in table.
    i used the code in DO_request,
    if lv_button_id NE '0'.
          tv ?= cl_htmlb_manager=>get_data(
                 request =   runtime->server->request
                 name    =  'tableview'
                 id      =  'reportsTable2' ).
          tv_data = tv->data .
    but , I found no table content  in tv_table.
    even i tried with export, import .. normally we will dod in ABAP.   not wotking.
    export IT_DATE_RANGE_PAN2 from IT_DATE_RANGE_PAN to memory id memid1.
    import IT_DATE_RANGE_PAN2 to IT_DATE_RANGE_PAN from memory id memid1.
    Can any body help me to solve the above issue.
    Regards,
    Kishan

    Hi,
    Refer your earlier forum...
    how to collet data from tableview in MVC
    Thnx
    suriya

  • In which transactions do i get the data for tables COEP

    Hello;
    I am trying to retrive some archived data from this table. I need to know which transactions correspond to this table. thx
    Sumanta

    COBK (doc head) & COEP (line items)
    Transaction S_ALR_87005050 - IMG Activity: SIMG_ORK3_COEP_SM30
    Transaction KAID - Delete ALE-COEP(L) Line Items
    Transaction TJ01 - Journal of transactions

  • Getting specific dates from table

    hi all, i have the following data in a table.
    WITH monthends AS
    SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
    my output should be as follow
    CID       DT           PID
    3333     1/31/2010     10
    3333     2/28/2010     10
    3333     3/31/2010     10
    1111     2/28/2010     11
    1111     4/30/2010     11
    1111     5/31/2010     11basically i just want to display all the month end dates only from the table. can someone help write a query for this?
    i tried using case and last_day function (case when dt=last_date(dt) but the case statement will display the rest of rows even if no else statement is specified.
    i just want to output the months ends for specific cid,pid combination

    This...
    WITH monthends AS
    SELECT 3333 cid, To_Date('1/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/1/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 3333 cid, To_Date('2/2/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('2/4/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION ALL
    SELECT 3333 cid, To_Date('3/31/2010','mm/dd/yyyy') dt, 10 pid FROM dual UNION all
    SELECT 1111 cid, To_Date('2/28/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/1/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/2/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('4/30/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('3/4/2010','mm/dd/yyyy') dt, 11 pid FROM dual UNION ALL
    SELECT 1111 cid, To_Date('5/31/2010','mm/dd/yyyy') dt, 11 pid FROM dual
    select cid, dt, last_day(dt) ldy, pid from monthends
    where dt = last_day(dt)
    3333     1/31/2010     1/31/2010     10
    3333     2/28/2010     2/28/2010     10
    3333     3/31/2010     3/31/2010     10
    1111     2/28/2010     2/28/2010     11
    1111     4/30/2010     4/30/2010     11
    1111     5/31/2010     5/31/2010     11vr,
    Sudhakar B.
    Edited by: SudhakarB on May 13, 2010 1:46 PM
    Added CID

  • Hello in which transactions do i get the data for tables COSS and COSP

    Hello i have these two tables. i need to know which transactions correspond to them .thx

    Hi Antish,
    try with transactions KOAO & KOAP
    Thanks,
    Syf

  • MAX function to get recent date doesn't work as expected

    Hi,
    I recently started working on Oracle and came across this problem. I coded below given query to get the latest date from table and compare it with Sysdate + 1 timestamp. I am not able to understand what I coded wrong but the query gives me wrong results as explained below :
    select NVL(MAX(to_char(max(last_update),'mm/dd/yyyy hh12:mi:ss AM')), to_char(sysdate + 1,'mm/dd/yyyy')||' 12:00:00 AM')
    from Audit_Table_Name
    where col1 = 'AA'
    and location_type = 'STATE'
    and original_flag = 'Y'
    group by col1,location_type,original_flag;
    Here Max(last_update) from Audit Table Contains value --> 08/25/2009 12:00:00 AM
    Note : Data type of last_update is Date
    so ideally speaking it should give 08/26/2009 12:00:00 AM but surprisingly it is giving 08/25/2009 12:00:00 AM as output. Anyone can explain why this is happening and what we need to do to get correct results?
    Regards,
    Amol

    1) Why would you expect this to return a date of 8/26? NVL returns the first parameter unless it is NULL. If the first parameter is NULL, it returns the second parameter. Since
    MAX(to_char(max(last_update),'mm/dd/yyyy hh12:mi:ss AM'))returns a non-NULL value, that value will be returned. Oracle never needs to evaluate the second parameter
    to_char(sysdate + 1,'mm/dd/yyyy')||' 12:00:00 AM'You state that you want to compare the MAX( last_update ) to SYSDATE + 1. Your code isn't doing a comparison now. And it's not clear from your description what comparison you actually want to do. Can you elaborate a bit on what you want to compare and what the output should be depending on the result of that comparison?
    2) You almost certainly want to do as much of the logic as possible using dates and only convert to a string at the very end. Otherwise, you risk comparing two strings that represent dates using string comparison semantics and getting a result you don't expect.
    3) My guess (and it is just a guess) is that you want something like
    SELECT GREATEST( max(last_update), trunc(sysdate+1) )or
    SELECT TO_CHAR( GREATEST( max(last_update), trunc(sysdate+1) ), 'mm/dd/yyyy hh12:mi:ss AM' )Justin

  • Get UiElement from ADF table

    Dears,
    I have a problem. I need get an UI Element (for example input text field in row number three). this Element is in a ADF table.
    I tried use the Get Children method but i can't get the input text field from table.
    Thanks for your help.

    LEFT OUTER JOIN will get all data from table A and all related data from table B.
    A standard JOIN will only get data that is related between tables.
    <cfquery datasource="dsnName" name="sampleLOJ">
    SELECT a.columnA, a.columnB, b.columnA, b.columnB
    FROM tableA a LEFT OUTER JOIN tableB b ON b.colunnA = a.columnA
    </cfquery>
    This will get all data from tableA and all related data from tableB, where columnA in both are identical.
    <cfquery datasource="dsnName" name="sampleJOIN">
    SELECT a.columnA, a.columnB, b.columnA, b.columnB
    FROM tableA a JOIN tableB b ON b.colunnA = a.columnA
    </cfquery>
    This will get only the data from tableA and related tableB data that have identical columnA entries.
    ^_^

  • How to insert row in table control and save the data in tables

    Hi,
    I have one table control i am displaying data into table control ,
    my problem is : i want to display data into read mode in table control.
    but when i click on insert button on the same screen i want one blank line should inserted into table control , then i want to insert some data into table control on that row , when i click the save button . the new data inserted into the table control is insert that data into ztable ,
    please give me solution
    main problen is  how can know inserted line in table control and pass that data into ztable.

    Hi,
    Follow the below logic,
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0001.
      MODULE POPULATE_TABLE_CONTROL. --> Get the data from table store in 
                                                                          ITAB
      LOOP AT GT_CTRL_LP_D516 INTO GS_WA_CTRL_LP_D516
           WITH CONTROL CTRL_LP_D516
           CURSOR CTRL_LP_D516-CURRENT_LINE.
      The following module moves data to control
        MODULE MOVE_TO_CONTROL.--> Move data from ITAB to table control
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT GT_CTRL_LP_D516.
      ENDLOOP.
      MODULE EXIT AT EXIT-COMMAND.
      MODULE USER_COMMAND_0001.  --> Here you have to take out the values from table control and update database table
    Reward points if helpful.
    Thanks and regards,
    Mallareddy Rayapureddy,
    Munich, Germany.

  • How to Get Missing Dates for Each Support Ticket In My Query?

    Hello -
    I'm really baffled as to how to get missing dates for each support ticket in my query.  I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
    in a table.  Let me explain a bit further here -
    I have a query which has a list of support tickets for the month of January.  Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
    updated.  So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07.  Each time the ticket is updated a new row is inserted into the table.  I need a query which will return the missing dates per
    each support ticket.
    I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all.  My team has tried and they won't give 'em.   So proposing a function or storable solution will not work.  I'm stuck with doing everything
    in a query.
    I'll try and provide some sample data as an example -
    CREATE TABLE #Tickets
    TicketNo VARCHAR(4)
    ,DateUpdated DATE
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
    INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
    INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
    So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th.  A set-based solution would be best.
    I'm sure this is easier than i'm making it.  However, after playing around for a couple of hours my head hurts and I need sleep.  If anyone can help, you'd be a job-saver :)
    Thanks!!

    CREATE TABLE #Tickets (
    TicketNo VARCHAR(4)
    ,DateUpdated DATETIME
    GO
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-01'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-05'
    INSERT INTO #Tickets
    VALUES (
    '44BS'
    ,'2014-01-07'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-03'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-09'
    INSERT INTO #Tickets
    VALUES (
    '32VT'
    ,'2014-01-11'
    GO
    GO
    SELECT *
    FROM #Tickets
    GO
    GO
    CREATE TABLE #tempDist (
    NRow INT
    ,TicketNo VARCHAR(4)
    ,MinDate DATETIME
    ,MaxDate DATETIME
    GO
    CREATE TABLE #tempUnUserdDate (
    TicketNo VARCHAR(4)
    ,MissDate DATETIME
    GO
    INSERT INTO #tempDist
    SELECT Row_Number() OVER (
    ORDER BY TicketNo
    ) AS NROw
    ,TicketNo
    ,Min(DateUpdated) AS MinDate
    ,MAx(DateUpdated) AS MaxDate
    FROM #Tickets
    GROUP BY TicketNo
    SELECT *
    FROM #tempDist
    GO
    -- Get the number of rows in the looping table
    DECLARE @RowCount INT
    SET @RowCount = (
    SELECT COUNT(TicketNo)
    FROM #tempDist
    -- Declare an iterator
    DECLARE @I INT
    -- Initialize the iterator
    SET @I = 1
    -- Loop through the rows of a table @myTable
    WHILE (@I <= @RowCount)
    BEGIN
    --  Declare variables to hold the data which we get after looping each record
    DECLARE @MyDate DATETIME
    DECLARE @TicketNo VARCHAR(50)
    ,@MinDate DATETIME
    ,@MaxDate DATETIME
    -- Get the data from table and set to variables
    SELECT @TicketNo = TicketNo
    ,@MinDate = MinDate
    ,@MaxDate = MaxDate
    FROM #tempDist
    WHERE NRow = @I
    SET @MyDate = @MinDate
    WHILE @MaxDate > @MyDate
    BEGIN
    IF NOT EXISTS (
    SELECT *
    FROM #Tickets
    WHERE TicketNo = @TicketNo
    AND DateUpdated = @MyDate
    BEGIN
    INSERT INTO #tempUnUserdDate
    VALUES (
    @TicketNo
    ,@MyDate
    END
    SET @MyDate = dateadd(d, 1, @MyDate)
    END
    SET @I = @I + 1
    END
    GO
    SELECT *
    FROM #tempUnUserdDate
    GO
    GO
    DROP TABLE #tickets
    GO
    DROP TABLE #tempDist
    GO
    DROP TABLE #tempUnUserdDate
    Thanks, 
    Shridhar J Joshi 
    <If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'>

Maybe you are looking for

  • Can't connect to router to configure and setup cd software crashes when ran

    I have recently been having a series of blackouts at my appartment. That last one seemed to have messed my router. I tried powering down everything and restarting it. When I do so the lights on the router and my dsl modem light up as usual. The probl

  • Firefox 20.0 doesn't work for secure sites - it hangs up. Just upgraded to Mountain Lion.

    I try to login to a secure site, but Firefox 20.0 doesn't return the login page. The busy wheel just goes around and around for a long time, but nothing happens.

  • Raid BIOS Gone (KT4 Ultra-BSR)

    I recently bought a Serial ATA Hard Drive wanting to install it on the raid controller.  But when I went to enter the Raid Controller's BIOS FastBuild Setup (at boot-time), it never shows up. I have the KT4 Ultra-BSR, and I can see the RAID Controlle

  • 2G iPod touch. Itunes can't update, can't restore

    I've been getting random app crashes on my ipod touch and wanted to to first try a restore, and if that didn't work update to 4.1. When I click the Restore button, there are two progress bar in sequence: - Extracting software - Verifying ipod restore

  • Sample color with LR5

    I cannot seem to accurately sample a color using the eyedropper in the adjustment brush section.  The color (shade) that LR5 returns is always WAY lighter than the actual color.  I want to sample a color off a piece of furniture and brush it over a s