To retrieve previous day's data-ods

Hi friends,
i got a requirement like we should get the previous days data in to our ods.
i.e. we are extracting the data daily into our ods from crm (the data related to the daily complaints.i.e. if the user enters the complaint on 25.06.2008, then the officer who is related to that particular department can see the report on 26.06.2008)
now my requirement is if the user enters the data on 25.06.2008 the should see the corresponding data on 27.06.2008).
we are extracting the data using function module.
is there any way to extract the data od day before's.
please help me
regards
sridath
Edited by: sridath on Jun 27, 2008 11:28 AM

Hi Sridath,
Are u talking about the backend side or from the report side of issue..
If its from the backend side then u cannt get the day before yesterdays data to load.. unless is there is no load has happend yesterday.. If there is no load has happend yesterday .. then u can delete the data before yesterdays load from ur ODS and then take a repeat delta.. in this repeat u can get total 3 days data including the new postings which is there in RSA7.
Or u can look at the PSA data anyway will load only that particular day load only..
Let us know the details..
Thanks
Assign points if this helps

Similar Messages

  • SQL Server - Previous day data retrieval + conditions

    Hi Guys,
    I am retrieving data from a view for a dashboard and I need some help with my query to retrieve yesterday's data where the following conditions meet:
    When 'Monday' retrieve JUST friday's data. When 'Tuesday' retrieve data from Saturday until Monday, When 'other days' JUST retrieve previous day,
    But there is another condition: Exclude 'previous day' data WHERE "DESP_PostedDate..." column is empty. (as this will skew the percentages)
    This is what I have so far:
    SELECT CORD_DocumentCode
    ,OpenDate
    ,datedue
    ,DESP_PostedDate
    ,COUNT(CORD_DocumentCode) AS Order_Count
    ,SUM(CASE WHEN InFullAndOneTime = 2 THEN 1 ELSE 0 END) AS Difot_count
    ,SUM(CASE WHEN InFullAndOneTime = 2 THEN 1 ELSE 0 END) * 1.0 /COUNT(CORD_DocumentCode) AS DIFOT
    FROM DIFOTIS_View
    WHERE (OpenDate >= CASE
    WHEN DATENAME(dw, CONVERT(CHAR(8), GETDATE(), 112)) LIKE 'Monday' THEN CONVERT(CHAR(8), DATEADD(dd, - 2, GETDATE()), 112)
    WHEN DATENAME(dw, CONVERT(CHAR(8), GETDATE(), 112)) LIKE 'Tuesday' THEN CONVERT(CHAR(8), DATEADD(dd, - 3, GETDATE()), 112) ELSE CONVERT(CHAR(8),
    DATEADD(dd, - 1, GETDATE()), 112) END) GETDATE(), 112))
    GROUP BY OpenDate
    ,CORD_DocumentCode
    ,datedue
    ,DESP_PostedDate
    ORDER BY OpenDate
    This will show you last week's date from "Wednesday" and the result is 15.4 % (or 4/26) whereas I would like it to show 80% (or 4 / 5)
    I have tried adding
    ((Datediff(day,Opendate,getdate())=1) and DESP_PostedDate is not null)
    but it shows then ONLY data from the previous day.
    What do you suggest I should do? Please find below Data from friday for your perusal.
    All help is appreciated. Thanks
    Eric
    CORD_DocumentCode OpenDate datedue DESP_PostedDate Order_Count Difot_count DIFOT
    CASW92195 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
    CASW92196 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
    CASW92197 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
    CASW92198 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
    CASW92199 2014-10-19 2014-10-19 2014-10-20 1 1 1.000000000000
    CASW92200 2014-10-19 2014-10-19 NULL 1 0 0.000000000000
    CASW92201 2014-10-20 2014-10-20 2014-10-20 1 1 1.000000000000
    CASW92202 2014-10-20 2014-10-20 2014-10-20 1 1 1.000000000000
    CASW92203 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CASW92204 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CASW92205 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CASW92206 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CORD37188 2014-10-20 2014-10-20 NULL 1 0 0.000000000000
    CORD37189 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37190 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37191 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
    CORD37192 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37193 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37195 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37196 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37197 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
    CORD37198 2014-10-20 2014-10-20 2014-10-21 1 0 0.000000000000
    CORD37199 2014-10-20 2014-10-20 2014-10-20 1 0 0.000000000000
    CORD37200 2014-10-20 2014-10-20 NULL 1 0 0.000000000000
    CORD37211 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CORD37216 2014-10-20 2014-10-20 2014-10-21 1 1 1.000000000000
    CASW92207 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
    CASW92208 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
    CASW92209 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
    CASW92210 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CASW92211 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CASW92212 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CASW92213 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37218 2014-10-21 2014-10-21 2014-10-21 1 1 1.000000000000
    CORD37220 2014-10-21 2014-10-20 2014-10-21 1 0 0.000000000000
    CORD37221 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37222 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37225 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37227 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37228 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37229 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37230 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37231 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37232 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37233 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37234 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37235 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37236 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37237 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37238 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37239 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    CORD37241 2014-10-21 2014-10-21 NULL 1 0 0.000000000000
    Thanks
    Eric

    Hi Eric,
    Pleas try below code ,Hope this help you
    As per My understanding you were looking for below logic
    If Monday --> Friday only
     Tuesday --> Saturday,sunday, Monday
    Rest Days-->only Preovious Day
    plus additional rule desp_posted date is null then exclude yestreday's data.
    /*Main Query */
    declare @ReportDate datetime
    set @ReportDate='2014-10-22 00:00:00.000'
    select
    OpenDate,cast(datepart(dw,OpenDate) as varchar),DESP_PostedDate
    from base
    where cast(datepart(dw,OpenDate) as varchar)
    in ( SELECT * FROM dbo.CSVToTable(
    case
    when datepart(dw,@ReportDate) =7 then '6'
    when datepart(dw,@ReportDate) =6 then '5'
    when datepart(dw,@ReportDate) =5 then '4'
    when datepart(dw,@ReportDate) =4 then '3'
    when datepart(dw,@ReportDate) =2 then '6'
    when datepart(dw,@ReportDate) =3 and DESP_PostedDate is not null then '7,1,2'
    when datepart(dw,@ReportDate) =3 and DESP_PostedDate is null then '7,1'
    when datepart(dw,@ReportDate) =1 then '7' Else NULL END )) and opendate>=DATEADD(day, -7,@ReportDate)
    /* Table Creation & Sample data */
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE FUNCTION [dbo].[CSVToTable] (@InStr VARCHAR(MAX))
    RETURNS @TempTab TABLE
    (id int not null)
    AS
    BEGIN
    ;-- Ensure input ends with comma
    SET @InStr = REPLACE(@InStr + ',', ',,', ',')
    DECLARE @SP INT
    DECLARE @VALUE VARCHAR(1000)
    WHILE PATINDEX('%,%', @INSTR ) <> 0
    BEGIN
    SELECT @SP = PATINDEX('%,%',@INSTR)
    SELECT @VALUE = LEFT(@INSTR , @SP - 1)
    SELECT @INSTR = STUFF(@INSTR, 1, @SP, '')
    INSERT INTO @TempTab(id) VALUES (@VALUE)
    END
    RETURN
    END
    GO
    /****** Object: Table [dbo].[base] Script Date: 10/28/2014 6:07:17 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    SET ANSI_PADDING ON
    GO
    CREATE TABLE [dbo].[base](
    [CORD_DocumentCode] [varchar](50) NULL,
    [OpenDate] [datetime] NULL,
    [datedue] [datetime] NULL,
    [DESP_PostedDate] [datetime] NULL,
    [Order_Count] [int] NULL,
    [Difot_count] [int] NULL,
    [DIFOT] [numeric](18, 2) NULL
    ) ON [PRIMARY]
    GO
    SET ANSI_PADDING ON
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92195', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92196', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92197', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92198', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92199', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92200', CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3C900000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92201', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92202', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92203', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92204', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92205', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92206', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37188', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37189', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37190', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37191', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37192', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37193', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37195', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37196', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37197', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37198', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37199', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37200', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37211', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37216', CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92207', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92208', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92209', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92210', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92211', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92212', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CASW92213', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37218', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37220', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CA00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37221', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37222', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37225', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37227', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37228', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37229', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37230', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37231', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37232', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37233', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37234', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37235', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37236', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37237', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37238', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37239', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37241', CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37985', CAST(0x0000A3C800000000 AS DateTime), CAST(0x0000A3C800000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 2, 0, CAST(1.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD379865', CAST(0x0000A3C700000000 AS DateTime), CAST(0x0000A3C700000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 1, CAST(3.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37875', CAST(0x0000A3C600000000 AS DateTime), CAST(0x0000A3C600000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37241', CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 1, 0, CAST(0.00 AS Numeric(18, 2)))
    GO
    INSERT [dbo].[base] ([CORD_DocumentCode], [OpenDate], [datedue], [DESP_PostedDate], [Order_Count], [Difot_count], [DIFOT]) VALUES (N'CORD37263', CAST(0x0000A3C400000000 AS DateTime), CAST(0x0000A3C500000000 AS DateTime), CAST(0x0000A3CB00000000 AS DateTime), 2, 0, CAST(3.00 AS Numeric(18, 2)))
    GO
    Shiv
    please mark as Answer if helpfull

  • Getting the date for the previous day

    How do I get the previous day's date with LabView 7.0? Is there a built in function that will allow me to do this (taking into account the number of days in a month, leap years etc) or do I have to write my own vi?
    Thank you,
    KB

    All you have to do is use the Get Date/Time in Seconds and then subtract the number of seconds in a day. The result is a time stamp that should account for everything.
    Attachments:
    Subtract_Day.jpg ‏4 KB

  • Symcing Previous Day to Outlook

    I use my calendar for historical reference and just noticed that when I enter a previous day's data into my blackberry and sync - - it doesn't sync to my outlook.  I really need to be able to do this.
    Solved!
    Go to Solution.

    Hi Hi and welcome,
    Are you synchrozing with desktop manager?  By default, desktop manager only sync with all future items, but you can certainly change the settings.  From your desktop manager,  go to Synchronize > select synchronization ont he left and click on synchronization on the right > highlight Calendar > setup > next, next, and now you can see Calendar date range.
    Hope this help
    If someone give you helpful hints, please click on Kudos.
    If you issue is resolved, mark Accept Solution next to the resolution post.
    Feel free to search www.blackberry.com/btsc to find your answers.

  • Function to retrieve all days of the previous month.

    Hi,
    Yes, it's a monthly report i've been given the task to achieve.
    So, all I need is all days of previous month (even if there is no data for this day)
    I've been instructed to use the following code, but it does not return any value:
    DECLARE
       CURSOR CUR_LAST_DAY IS
          SELECT TO_CHAR (LAST_DAY (ADD_MONTHS (SYSDATE, -1) ), 'DD')
            FROM DUAL;
       VVA_LAST_DAY   VARCHAR2 (2);
       VNU_JOUR       NUMBER       := 0;
    BEGIN
       OPEN CUR_LAST_DAY;
       FETCH CUR_LAST_DAY
        INTO VVA_LAST_DAY;
       CLOSE CUR_LAST_DAY;
       WHILE VNU_JOUR <= TO_NUMBER (VVA_LAST_DAY) - 1
       LOOP
          VNU_JOUR := VNU_JOUR + 1;
       END LOOP;
    END;
    --CLOSE CUR_LAST_DAY
    --DEALLOCATE CUR_LAST_DAY-----
    On the other end, i've developped this code:
    SELECT TO_CHAR(SYSDATE,'dd')
    FROM DUAL
    WHERE TO_CHAR(SYSDATE,'dd') >= to_char(to_date(to_char(ADD_MONTHS(SYSDATE, -1),'yyyy-mm')||'-01'),'yyyy-mm-dd')
    AND TO_CHAR(SYSDATE,'dd') < to_char(LAST_DAY(to_date(to_date(to_char(ADD_MONTHS(SYSDATE, -1),'yyyy-mm')||'-01'),'yyyy-mm-dd')));Which is returning a null value. :(
    Regards

    Hello,
    You want to retrieve complete days of last month from one query...so here it is..
    SELECT
    TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY') COMP_DATE,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'DD') ONLY_DD,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'MM') ONLY_MM,
    TO_CHAR(TO_DATE(LEVEL||'-'||TO_CHAR(ADD_MONTHS(SYSDATE,-1),'MON-YY'),'DD-MON-YY'),'YY') ONLY_YY
    FROM DUAL
    CONNECT BY LEVEL <= TO_NUMBER(TO_CHAR(LAST_DAY(ADD_MONTHS(SYSDATE,-1)),'DD'))I am not at database machine so therefore not tested.
    But one thing keep in mind that this forum only for reports there is separate forum for sql and pl/sql.
    Function to retrieve all days of the previous month.
    -Ammad
    Edited by: Ammad Ahmed on Apr 22, 2010 10:53 PM
    Spelling Mistake

  • How to get previous day data if i dont have current day data.

    Hello Gurus,
    I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS.
    Could you please help me in this regard.
    Thanks in advance,
    Rama

    Rama -    
            0CALDAY can't help us in this scenario .
    Step 1 :
        To do this - You have to add one ZDATE (InfoObject ) to 1st ODS. ZDATE is updated by itself from current date of system  when ever you are loading data to 1st ODS.
    Step 2:
       You have to do full update to 2nd ods.At the selection screen of InfoPackage  (from 1st ODS to 2nd ODS ) you have to write following code for ZDATE.
    pseudo Code:
    1) Select fields "Rec_INSERT","Time stamp","Request Status" and "Request ID"  where ICUBE = ODS1 from table "RSMONICDP"
    2) Populate above selected fields data in INTERNAL TABLE
    3) Sort INTERNAL TABLE by Time stamp .
    4)
         If (Record Count = ' 0 ' for current date in internal table )
         update records from  ODS1 to ODS2 where ZDATE = "yesterday date"
         else
         update records from ODS1 to ODS2 where ZDATE= "today date"
         endif.
    Make sure this is full update not delta update from ODS1 to ODS2
    I am sorry, I m not good in Coding but I am sure if  u use this logic,You can meet your requirement.
    I hope you can understand my logic. Let me know if you have any questions,
    Anesh B .

  • How to get previous day of the date

    Hi,
    for a given date I need one day minus as a result date
    my input would be any date
    for example :
    Input Date : 2006-03-22 ( yyyy-mm-dd)
    Output should be : 2006-03-21
    If my input is 1st of April 2006, output i would expect is 31st March 2006
    Please suggest how to achieve this
    Thanks in advance
    Nilesh

    Find below the code to get previous day of the current date
    import java.util.Date;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Calendar;
    public class PreviosDay
    public static void main(String[] args)
    DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy");
    Calendar cl = Calendar.getInstance();
    // you can use a Date object's getTime() method , which is initialiazed
    // to desired date here directly ex: Date dt = new Date("10/10/2004");
    // cl.setTimeInMillis(dt.getTime());
    cl .setTimeInMillis(System.currentTimeMillis());
    cl.add(Calendar.DAY_OF_MONTH, -1);
    System.out.println("Previous date : "+dateFormat.format(
    new Date(cl.getTimeInMillis() ) ) );
    }

  • How to fetch the data records in summary format based on previous day

    drop table T1;
    create table T1(Class, Fees_Collected, Submit_Date) as select
    'MBA', 100000, '7/30/2012' from dual union all select
    'Btech', 20000, '7/10/2012' from DUAL union all select
    'MBA', 45000, '8/1/2012' from dual union all select
    'Btech', 55550, '7/31/2012' from DUAL union all select
    'BBA', 250660, '7/30/2012' from dual union all select
    'MBBS', 44556000, '7/31/2012' from DUAL union all select
    'BDS', 420050, '8/1/2012' from DUAL union all select
    'BBA', 30450, '7/30/2012' from DUAL union all select
    'MBBS', 120450, '7/31/2012' from DUAL union all select
    'BDS', 45950, '7/30/2012' from DUAL union all select
    'MBA', 252450, '8/1/2012' from DUAL;My requirment is to fetch the records based on summary format to display the data with following columns -
    Class |Prev Day Traded Value |Prev Day % of Total |Prev Day % MBA
    Note - Previous Day definiton (Buisness Day) = calendar days - (weekends + US Holidays)
    Kindly help me, as i want to keep it customized so that without specifying the hard coded dates ( Previous Day) it runs through and provide me the resultset....
    All of your help and time is highly appericated.

    You mean business days I guess ?
    I use a function (I had to write it myself) <tt><b> next_business_day(p_start_date in date,p_days_count in number) return date </b></tt>
    where I loop forward/backward from p_start_date according to the sign of p_days_count the required number of steps skipping weekends and holidays as the absolute value of p_days_count is mostly under 30 for the rest (at least around here) Oracle's <tt><b> add_months </b></tt> gets it done.
    Regards
    Etbin
    Edited by: Etbin on 6.8.2012 17:55
    Year till date: <tt><b> your_date between trunc(sysdate,'year') and sysdate </b></tt> is it ? http://en.wikipedia.org/wiki/Year-to-date ?
    Edited by: Etbin on 6.8.2012 18:27
    NOT TESTED!
    function next_business_date(p_start_date in date,p_count_days in number) return date is
      steps  number := abs(p_count_days);
      retval date := p_start_date;
    begin
      if p_start_date is null or p_count_days is null then
        return to_date(null);
      end if;
      while steps > 0
      loop
    /* skipping weekends and (yet to be implemented) holidays */
        while to_char(retval,'dy') in ('sat','sun') /* or is_holiday(retval) */
        loop
          retval = retval + sign(p_count_days);
        end loop;
    /* retval contains a business day now */
        retval = retval + sign(p_count_days);
        step := step - 1;
      end_loop
      return retval;
    end;

  • Previous days data based on passing parameter and date

    Hi,
    i have one rek..that requirement to to show the previous days data based on the number passing to the parameter parameter.
    lets suppose if user enters the date '25 Mar 2012 in one dashboard prompt and in another prompt user enters the no.of days(Ex: 5).then report should display the last 5 days data i.e 25 mar 2012,24 mar 2012,23 mar 2012,22 mar 2012,21 mar 2012.
    can anybody tell me how can i achieve this..
    Thanks in advance...

    user12255470 wrote:
    Hi,
    i have one rek..that requirement to to show the previous days data based on the number passing to the parameter parameter.
    lets suppose if user enters the date '25 Mar 2012 in one dashboard prompt and in another prompt user enters the no.of days(Ex: 5).then report should display the last 5 days data i.e 25 mar 2012,24 mar 2012,23 mar 2012,22 mar 2012,21 mar 2012.
    can anybody tell me how can i achieve this..
    Thanks in advance...Read the article and adapt it to what you are doing. It's very similar...
    http://oraclebizint.wordpress.com/2008/03/11/oracle-bi-ee-101332-rolling-yearmonth-and-date-filters-moving-window-filters/

  • Alert on Today's Data Compared with Previous Day Data

    Hi All,
    I've a report with multiple tabs having data like,
    Tab:1                                   Tab:2                                 Tab:3                          Tab:4
    Franchise: ABC                   Franchise                          Franchise                    Same as Tab:3
    Start Date:                           Start Date                          Month
    Operator: XYZ                     Operator                            Operator
    Incoming Node:N01            Outgoing Node                  Incoming Node
    Incoming Path:P01             Outgoing Path                    Incoming Path
    Incoming Count:2                Outgoing Count                 Incoming Count
    Incoming Mins: 10.63          Outgoing Mins                   Incoming Mins
    My requirement here is, I've want an alert on Percentage of Mins comparing its data with the previous day(Month for Tab 3 & 4) mins data. For now I've done this by creating a variable(with Relative Value Function) that stores the previous day or month's mins and stored the difference of these two data into another variable as Variation. I've put a percentage on the Variation variable and put a alert on it. It went well till here but, my requirement also has graphical alert on percentage. I tried adding the Variation variable and percentage and all available measures. But an error showed up with every try saying "Error in dataset values :#COMPUTATION"
    Is there any other to do this report?
    Note: I'm using WebI Rich Client v4.1 SP1

    I tried using Franchise(Dim) and with that i've used Incoming Count, Incoming Mins, Variation separately. But nothing worked.

  • ST03 - Previous day data???

    Hi Guru's,
    I have a query on ST03. My Question is when I log onto a server and try to get the ST03 data for the previous day, I do not get the data until 3AM server time. ie if I want the data for 3/12/08, the data does not reflect on the system till 3AM 3/13/08. Why is it I do not get the data of the previous day at 12.10AM on 3/13/08.
    Useful answers will be rewarded.
    Cheers
    Shankam

    Hi Praveen,
    1) SAP standard job SAP_COLLECTOR_FOR_PERFORMANCE must be schedule hourly in each SAP system. The job must always be scheduled in client 000 with user DDIC or with a user with the same authorisation.
    2) If you want to schedule the SAP_COLLECTOR_FOR_PERFORMANCE job daily. Can you check when SAP_COLLECTOR_FOR_PERFORMANCE job has been scheduled. If you can change the schedule time of SAP_COLLECTOR_FOR_PERFORMANCE job, i think it should resolve your problem.
    Kindly refer below sap notes
    *Note 12103 - Contents of the TCOLL table*
    *Note 16083 - Standard jobs, reorganization jobs*
    Cheers
    Kanthi Kiran

  • Restore Data from Previous Day

    I have my SQL Database Web Edition hosted on Azure, some stupid user deleted his data, how can I restore from previous day data? 
    TIA
    SV

    Hi vai,
    According to your description, as Mekh’s post, Microsoft Azure SQL Database service has built-in backups to support self-service Point in Time Restore ,Geo-Restore, Point in Time Restore and Geo-Restore are enabled for Basic, Standard, and
    Premium service tiers.
    In a SQL Azure Web database, you need to create a backup, then it will restore and protect your data from application or users errors.
    There is an article about how to setup a backup and restore strategy for a Windows Azure SQL Database. You can review it.
    http://www.mssqltips.com/sqlservertip/3057/windows-azure-sql-database-backup-and-restore-strategy/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • How do I retrieve previous versions of a word document I created? The meta data shows 4 previous versions and I need to retrieve all of them. Any help?

    How can I retrieve previous versions of a document I created? The meta data shows that there are four previous versions and I would like to retrieve all four. Any help?

    vlekkas wrote:
    How can I retrieve previous versions of a document I created? The meta data shows that there are four previous versions and I would like to retrieve all four. Any help?
    Word is a Microsoft Program, you will get more knowledgable answers at Microsoft Support for Office

  • Previous Days Date

    I am looking for a formula that will give me just the date from the current date in Crystal Reports 2008.  I need to produce reports from the previous day for publishing to the users.  So if I am producing reports today "May 5, 2009" and want to select records based on those posted the previous day "May 4, 2009" how would I do that

    I assume you have a posting date field, if so then use this statement in your selection criteria.
    {posting.date} = currentdate - 1
    That should pick up only those records that were posted the previous day, if you run the report today and so on...

  • How can I retrieve and print a previous day,s puzzle?

    Is it possible to retieve and print  a previous day,s Universal crssword puzzle?

    Unfortunately you are only able to print the puzzle on the day it is available.
    If I helped you at all it would be great if you clicked the blue kudos star!
    If I solved your post please mark it as solved to help others.
    I'm a printer tech with HP.

Maybe you are looking for

  • Cannot delete photo where no Original File is available

    I would like to delete some photos, I have discovered that the ones I am unable to delete do not have an original file associated with them, how can I delete these from within iPhoto I know I can go to the iphoto file and delete that but then I'm jus

  • Be Warned - Mavericks is not compatible with Microsoft Office 365!!!!!!!!!!!!!!!

    Be Warned - Mavericks is not compatible with Microsoft Office 365!!!!!!!!!!!!!!!  I upgraded to Mavericks on 4 seperate computers, an 2 iMacs, MBPro and an MBAir and ALL four no longer connect to Microsoft Office 365 email accounts either with Office

  • BPM  - Status always in "In Process"

    Hi Experts, I have implemented a simple BPM for a Message Split pattern - where the source message will be split into 10-2000 messages. And these messages are sent to target system using a ForEach block with Send step. I'm facing two problems here...

  • Macbook Pro 15 2.4 boot problem

    Hi I've recently replaced my keyboard after a coffee spill (quite straightforward) and it's been working fine ever since... However, since this morning, it has refused to boot properly.  I hangs at the apple logo screen for ages (20/30 minutes) and o

  • Audio sync not consistent in FCE4.0

    I have a copy of Final Cut Express.  I am using a Zoom H1 as an external audo recorder in conjunction with a Canon SX30is.  When I attempt to sync the audio in final Cut Express, the begining of the clip remains in sync however toward the end of the