How to display "No data for yesterday" in a scheduled report on Webi
Hi All,
In Webi, I am working on scheduling reports and was asked by a user if the scheduled report on Webi can display "No data for yesterday/no orders for yesterday" when the report returns no data due to No Orders submitted or a business holiday. This sounded a good idea to me as this report only looks for previous days orders/sales and there are many instances when the report will return blank page due to no activity the day before.
Can anyone please guide me on the possibility of achieving something like this on Webi using Bex query.
Any help will be appreciated .
Thanks
Gaurav
Hi,
You can format the blocks in the report as "Hide When Empty" or "Hide When [some formula]" and have a blank cell added behind these blocks with a text "No Data for Yesterday"
Need to set the relative position and ordering for this accordingly.
Similar Messages
-
How to display the data of a structure in a report
i want to display the data of a structure resbd.
i know it does not have data.
but it contains data at runtime
plz help
thanxHi,
For displaying the data of a structure you can use the write statement.
WRITE : structurename - fieldname.
eg : write : resbd-rsnum.
Before that you need to declare the structure name inside the report.
Please refer the following code for your querry
REPORT ZSTRUCTDATA .
Table Declaration
tables : resbd.
Assigning Values to Structure Fields
resbd-rsnum = 1234.
resbd-rspos = 12.
Displaying Values
write : / resbd-rsnum.
write : / resbd-rspos.
This report will give the output like this.
0000001234
0012
Regards,
LIJO JOHN. -
How to populate the data for additional fields in custom report of fbl5n tr
hallo friends,
i ha ve to add some fields to the output of custome report of transaction FBL5N.
Till now i have only added the fields to the output.
Now i have to write the code to populate the data for those fields in the program.
1. Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
2. Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
3. Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
4. Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
5. Risk Category: (Table: KNKK; Field Name: CTLPC)
6. Credit Info Number: (Table: KNKK; Field Name: KRAUS)
7. Rating: (Table: KNKK; Field Name: DBRTG)
8. Payment Index: (Table: KNKK; Field Name: DBPAY)
9. Credit control area: (Table: KNKK; Field Name: KKBER)
10. Company code: (Table: KNB1; Field Name: BUKRS)
11. Sales Organization: (Table: KNVV; Field Name: VKORG)
These are al fields i have to populate in the program..
MY ATTEMPTS:
I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
Can anybody tell me how should i proceed..
thanks in advance.Thnx Andreas,
i have following doubts again..
I have to add sales organisation field to the selection screen...(this is given in the req.)
now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
And what about the KNVV-VKORG ,because the KNVV is not present in the LDB. -
How to display different text for labels in Group Above Report Oracle Repor
Hello,
Is there a way to change the text that is displayed in Labels in a Group Above Report? For example, I have a Group Above report with my columns of data and above the columns I have my column labels, but I would like to be able to display various text, i.e. different labels based on condition. In other words, Column1 label could say Column 1 or This is Column1, based on a condition. This is Oracle Report Builder 10.1.2.0.2.
Thank you.968277 wrote:
I'm thinking it is possible with a Format Trigger, but I've only ever returned (TRUE) or (FALSE). I am very new to Oracle Reports Builder. Thanks.Hi,
Yes it's possible. and your are in the right place. use this true and false. For example
/*true means display, false means don't display */
if your_criteria_or_condition is ok then
return (TRUE);
else
return (FALSE);
end if;create as many label as your need and control with the code..
Hope this works..
Hamid
Mark correct/helpful to help others to get right answer(s).* -
Hi All. I live outside of the USA and have an iPhone 4s. I'm going to Fort Lauderdale, FLA and want to data service for my iPhone ( navigation using google or imaps, browsing and voip ing when no wi fi available). I browsed the net but seems almost impossible. When I visited Toronto I was able to get data thru Koodo but I don't think this is offered in the USA. Anyone who has real experience with this please help. This is a situation that is best aided by persons who have experienced it. Thanks
Have a look here:
http://forums.macrumors.com/archive/index.php/t-982315.html -
How to display balance days for annual leave in payslip report
hi all,
cn sm1 let me know how i can display the leave balance days of each employee on their payslip.
please let me know the tables where i can find the info of the employee annual leave days balance.
The leave defined is decreasing.
Plz i need your assistance gurus.
All comments are welcomed!No one out there to response buddies?
-
SVG Pie chart : how to display no dat found message
Hello,
I have a SVG pie chart and written a message 'no data found' under charts attributes.
If there is no data for the chart,
In IE :the chart region will be blank . chart heading will be displayed and . no 'no data found ' message is displayed.
In mozilla : in the chart region, i can see ,the part of whole page where i display the chart ,is filled . Chart region heading is also displayed.
Could you please reply , how to display 'no data found ' in svg pie chart?
Thanks in advance.
Regards,
ArchanaHello,
I have a SVG pie chart and written a message 'no data found' under charts attributes.
If there is no data for the chart,
In IE :the chart region will be blank . chart heading will be displayed and . no 'no data found ' message is displayed.
In mozilla : in the chart region, i can see ,the part of whole page where i display the chart ,is filled . Chart region heading is also displayed.
Could you please reply , how to display 'no data found ' in svg pie chart?
Thanks in advance.
Regards,
Archana -
How to display current date in query header?
Hi,
How to display current date in query header?
I use Query Designer for development.
Thanks,
Arun KKHi Arun,
You can define fixed header lines and footer lines so that when you generate the query list, they can receive current values of certain fields. When you define a header line or a footer line, you must specify a character string of the type &field, where field is the short name of a field.
This function allows you (for example) to place a sort criterion in the header line.
You can include the following fields as variables in the headers directly:
%NAME
Name of the user processing the query
%DATE
Current date
%TIME
Current time
%PAGE
Current page number (6 characters)
%P
Current page number (3 characters)
These fields can be used in the short forms N,D,T and P. If you want to use these letters as short names for query fields, the field values from the query are used.
You can also see the link
[http://help.sap.com/saphelp_nw70/helpdata/EN/6e/dd68721faf11d6b1d500508b6b8b11/frameset.htm]
Regards,
NR -
S_ALR_87013611 is not displaying any data for GL
Hi,
THe report S_ALR_87013611 is not displaying any data for GL. How to go about this
Regards
SMHi,
S_alr_87013611 is a report where we can see the planned and actual costs in cost elements in cost center wise for a specific controlling are for a given period.
Please check if your GL accounts are assigned with the cost elements in FS00.
If not create them.
You can assing all cost elements to many GL at a time using
OKb2_ Give the range and the cost element for each range eg, expenses range - cost element 1, incomeange _Cost element as 11 etc.
OKb3 _Create the batch input session
SM30_ Run the batch input session created
Also please check if you have given the cost center group costt senter range while you entered the ranges in the selection screen in this report.
Similarly please check the cost elements and cost elements group also.
Thanks,
Shilpa. -
How to display retrieved data from DB on web page
Dear all,
how to display retrieved data from oracle database on web page,Does anyone can give me an simple example?
thanks
WJHi,
I use JRun tags but you can use Oracle tags or just JDBC... First u need to install jdbs connection and set e connection by using JMC (For JRun) named nomad.
U can also try the link below for JRun tags..
http://wds.its.uiowa.edu/cache/docs/jrun/html/JRun_Custom_Tag_Library/contents.htm
<%@ page import="java.sql.*,javax.sql.*,java.text.*,allaire.taglib.*" %>
<%@ taglib uri="jruntags" prefix="jrun" %>
<%@ page contentType="text/html; charset=ISO-8859-9" %>
<html>
<head>
<title> Test Page </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
</head>
<body>
<BODY BGCOLOR="#FFFFFF" LEFTMARGIN=15 TOPMARGIN=20 >
<jrun:sql datasrc="nomad" id="q1">
select empno,
ename
from emp
order by ename
</jrun:sql>
<center>
<table border = 0 cellpadding = 3 cellspacing = 1>
<th>EmployeeNo</th><th>Name</th>
<jrun:param id="q1" type="QueryTable"/>
<jrun:foreach group="<%= q1 %>">
<tr>
<td> <%= q1.get(1) %> </td>
<td> <%= q1.get(2) %> </td>
</tr>
</jrun:foreach>
</table>
</center>
</body>
</html>
---------------------- -
How to display no data found in RTF template ? XML Publisher
Hi
I have xml file, how to display no data found in RTF template ? XML Publisher ?
This is the XML File
<?xml version="1.0" encoding="UTF-8"?>
<INVALIDSERIALPRODUCT>
<P_ORG_CODE></P_ORG_CODE><P_DATE_RANGE_FROM></P_DATE_RANGE_FROM><P_DATE_RANGE_TO></P_DATE_RANGE_TO><P_ITEM_NUMBER>VIR</P_ITEM_NUMBER><P_LOT_NUMBER></P_LOT_NUMBER><P_RMA_NUMBER_FROM></P_RMA_NUMBER_FROM><P_RMA_NUMBER_TO></P_RMA_NUMBER_TO><P_CUSTOMER_NAME></P_CUSTOMER_NAME><P_EMAIL></P_EMAIL>
<G_SNQ>
<USER_NAME>NSAWHNEY</USER_NAME>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:52:23.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000016</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T05:53:06.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>011000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:09:16.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number does not exist in Axway Track-n-Trace</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000021</SERIAL_NUMBER>
<RMA_NUMBER>8200000106</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:11:09.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T06:46:04.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000001</SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:08:21.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>00000000004 </SERIAL_NUMBER>
<RMA_NUMBER>8200000066</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T07:13:05.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Unknow Error </REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000011</SERIAL_NUMBER>
<RMA_NUMBER>8200000101</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-11T19:32:00.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000004</SERIAL_NUMBER>
<RMA_NUMBER>8200000107</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T02:49:40.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000092</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-14T07:52:22.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000031</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:24:27.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000034</SERIAL_NUMBER>
<RMA_NUMBER>8200000109</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T02:30:28.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Catchall fault scope has been executed</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000010</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T03:36:18.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
<G_SN>
<ITEM_NUMBER>VIR823010</ITEM_NUMBER>
<DESCRIPTION/>
<LOT_NUMBER>Viread 245mg,Korea</LOT_NUMBER>
<SERIAL_NUMBER>000000000158</SERIAL_NUMBER>
<RMA_NUMBER>8200000114</RMA_NUMBER>
<CUSTOMER_NAME>Yuhan Corporation Korea</CUSTOMER_NAME>
<COUNTERFEIT_CHECK_DATE>2014-07-15T04:19:48.000-07:00</COUNTERFEIT_CHECK_DATE>
<REASON>Serial number and lot combination not valid in Axway Track-n-Trace.</REASON>
</G_SN>
</G_SNQ>
</INVALIDSERIALPRODUCT>
thanks
nksThis is the General XML forum.
The homepage description says :
Discussion of the general XML language, standards (XSLT, XQuery, XMLSchema, etc.) and application management issues, suggestions and tips.
The BI Publisher forum is here :BI Publisher
So please mark this post as answered and ask again over there. -
How to display all data on one page in web app
Hello.
So I have web app JSF (IceFaces framework) + JBoss all Crystal Report working perfectly. So I have page with Crystal Report tags (e.g.
<bocrv:reportPageViewer reportSource="#{crystalReport.reportPath}" ...
in this report I have table with some data (data from DB) and I want to display this data on one page. Unfortunately now this data are moving to the next page and unfortunately I even donu2019t know how switch to the next page (I see only info e.g. 1with 2).
So how to display this data on one page if its impossible how to torn on pagination.So I canu2019t do this, I canu2019t display all data on one page (until Iu2019m using JSF tags)?
In JSF tags Iu2019m setting only path to file. In my bean Iu2019m using u201CReportClientDocumentu201D object itu2019s easy way to load report file (u201Copenu201D method) and set parameters (u201CgetDataDefController().getParameterFieldController()u201D method) and also connect to data base (u201Clogonu201D method) but I havenu2019t this property u201CsetSeparatePages(boolean)u201D.
Maybe Iu2019m doing this wrong and there is a simpler way maybe I can use somehow u201CCrystalReportVieweru201D please give my any advice. -
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'> -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
Calendar Tile on Windows 8.1 displaying incorrect date for icloud calendar but date icon displays correct date on iPhone 5 and iPad Air. Date on Windows 8.1 is correct. Thank you.
Try doing a reset on your phone. Sounds like your carrier's time set is not getting through to your device. If the reset doesn't do it, then go to Settings>General>Reset>Reset Network Settings. That should do it.
Maybe you are looking for
-
I've been searching for over a week high and low now trying to find a way to do this via PS. We'd like to lockout certain users (we can put them in a group/OU) 30 days after their first successful log in - the one requiring password change by them. A
-
Why should I use BO BI 4.0 for my existing SAP NetWeaver ?
Dear Sirs, Question about BusinessObjects BI 4.0 & SAP Netweaver 7.0. In my company we use NetWeaver for a year. We have some reports on portal, so we have some analysis via www. It seemed to me that this is enough for us. Now on the market is availa
-
Hello, I'd like to know when I bought my I pod touch 4th g. can I know?
-
My intel imac has slowed down. Why?
When I first got my imac, I ran the benchmark song 2 and it was giving 16 tracks. I have changed nothing much since then apart from just loading my sound library (just Reason NN-XT files) and surfing the net and installing newer patch of OS and a pat
-
What Does "Configure Universal Access" in iTunes do?
What Does "Configure Universal Access" in iTunes do?