Want to show data from current month & prev month in single record on forms?
Hello experts,
i have this requirement:
Table structure:
MOnth Division totalAmount
01-apr-2013 1 10000
01-May-2013 1 20000
01-apr-2013 2 30000
01-May-2013 2 50000
i want to display in forms like
Form:
Month : 01-May-2013
Month Division total prev_Month division total dIFFERENCE
01-May-2013 1 10000 01-Apr-2013 1 20000 10000
01-May-2013 2 30000 01-Apr-2013 2 50000 20000
I am using two procedure for fetching records for current month and previous month.
but it will cause problem, if for some division previous month data not present.
please suggest me some query with which i can fetch current and pre month data in single record.
Please help me out.
Thanks
yash
I'M NOT SURE BUT TRY IT ............
select x.mn mnth, x.division, x.totalAmount total, y.mn prev_month, y.division, y.totalAmount total, (y.totalAmount - nvl(y.totalAmount,0)) difference
from
(select month mn, division, totalAmount
from table_name
where month = (select max(month)
from table_name
) x,
(select month mn, division, totalAmount
from table_name
where month = (select add_months(max(month),-1)
from table_name
) y
where x.division = y.division(+)
MOSTAFIZ MITUL
DHAKA BANGLADESH
Similar Messages
-
2 month old date from current date in red color only
Hi all,
How can I Highlight 2 month old date from current date in red color only at report level with using Alertr.
Example:-
Date
3/27/2014
4/3/2014
3/5/2014
4/1/2014
3/31/2014
5/24/2013
2/10/2014
4/11/2014
12/11/2013
9/25/2013
1/30/2014
2/18/2014
2/24/2014
1/6/2014
3/3/2014
Thanks
SamHello Sam,
are you using Universe for your report..if Yes..pls try below option.
Create two objects in the universe
Object1 syntax: current date() (Note:this object you can create at webi level)
Object 2 syntax:addmonths(sysdate;-2)
Now create a alert in webi report by using below conditions
Day is less than Object1
and
Day is greater than Object2
Please try this and let me know if any issues.
Regards,
Naveen D -
How do I include/show data from a child table in a Modal Window?
How do I show data from a child table in a Modal Window?
I have an application where each customer might have multiple addresses and phone numbers which are stored in child tables. When I show the customer in a record on a screen I can place a Modal Window button on the screen which can be pushed at runtime
to display detail information for the particular customer parent table which works great. However, I would also like to display the data from the address and phone number child tables. Is there a way to do that? Or can I just launch a hole separate screen
which would automatically display the needed data for the particular customer? If yes, how?
Thank you for any help.I am not even sure how to describe my situation in such a way that this forum incident would be of benefit to other people as I think it is fairly unconventional.
The “add contactaddress” link does not show up on the right.
The contactaddress table is a child of the contact table.
The contact table is a child of the contactlink table.
And the contactlink table is a child of the person table.
I have it set up this way because the contact in the contact table may be a contact to multiple persons in the person table and I do not want to re-enter the contact info every time the contact is used.
In the list detail screen of the person table I can see the contactlink child collection so that I can see the name of the person in the contact table at runtime. However, the contactaddress collection is not related to the person table so it does not show
up on the right hand side of the design screen as an “add contactaddress”; nor is there “add contact” link.
What I would like to happen during runtime is that it is not necessary to switch screens from the person list detail screen to a contact list detail screen to see the addresses and phone numbers for the contact.
Is my setup unnecessarily convoluted? Is there a better way? Please see the two snapshots below.
Perhaps there is a way to call up a Detail screen from the List Detail at runtime?
Anyway, if you are still reading, thank you very much for your help.
jjjjj -
Hi i am new to labview
I want to extract data from a text file and display it on the front panel.
How do i proceed??
I have attached a file for your brief idea...
Attachments:
extract.jpg 3797 KBRoopeshV wrote:
Hi,
The below code shows how to read from txt file and display in the perticular fields.
Why have you used waveform?
Regards,
Roopesh
There are so many things wrong with this VI, I'm not even sure where to start.
Hard-coding paths that point to your user folder on the block diagram. What if somebody else tries to run it? They'll get an error. What if somebody tries to run this on Windows 7? They'll get an error. What if somebody tries to run this on a Mac or Linux? They'll get an error.
Not using Read From Spreadsheet File.
Use of local variables to populate an array.
Cannot insert values into an empty array.
What if there's a line missing from the text file? Now your data will not line up. Your case structure does handle this.
Also, how does this answer the poster's question? -
Show data from sql server to oracle db
Hi,
I am using oracle 10g R1 on windows 2003 platform. On one machine database 10gR1 is running and on other machine sql server is running. I want to retrieve some data from sql server to oracle database. Please tell me how I can show data from sql server to oracle db.
ThanksTo make heterogeneous connection with oracle:
1.First make an ODBC connection, make entry in System DSN(to create a data source)
2.Make an entry in tnsnames.ora
3.Make an entry in listener.ora under SID_LIST_LISTENER
4.Make an entry in file named init<HS>.ora file located "oracle_base\oracle_home\db\hs\admin"
5.Restart the listener
e.g:
1. create a odbc system dsn named like 'sqlserver'
2. sqlserver= (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp) (HOST=xx.xx.xx.xx) (PORT=1521))
(CONNECT_DATA = (SERVICE_NAME=sqlserver))
(HS = OK)
3. (SID_DESC = (SID_NAME = sqlserver) (ORACLE_HOME = oracle_base\oracle_home\db) (PROGRAM = hsodbc) )
4.Create a file named initsqlserver.ora and make the following entry:
HS_FDS_CONNECT_INFO = sqlserver
Alternatively, you can copy the file named inithsodbc.ora and rename it to initsqlserver.ora
and edit as HS_FDS_CONNECT_INFO = sqlserver
5. lsnrctl reload listener_name
regards
adnan kaysar -
I want to convert date from Microsoft Access to Oracle.
I want to convert date from Microsoft Access to Oracle.
My Oracel date format is 21-Jul-2004 02:24:09 AM
I use sqlldr in Oracle 9i Database and I
write control file
load data
infile 'test.txt'
into table test
fields terminated by "," optionally enclosed by '"'
trailing nullcols
name,
birthday
data file 'test.txt' for input
"dao","21-Jul-2004 02:24:09 AM"
why did error? ORA-01843: not a valid month
Thank.replace birthday with
birthday "to_date(:birthday, 'DD-Mon-YYYY HH:MI:SS AM', 'NLS_LANGUAGE=''american''')"Of course, if your monthes are in German, then set the language to german (JUL=JUL but DEZ<>DEC)
Regards
Laurent -
I want to show pictures from my iphone 4 on my television. I have the cables but it will only show a few pics stored online, none of those on the camera roll. Would it make a difference if I upgraded the ios to ios 7?
1, iOS only works on iPhone, iPads or iPods. These drives were probably made with an operating system that preceeded OS X such as OS 7, OS 8 or OS9.
2, No, the data on the Zip Drives is formatted for the Mac.
3, If your reformat them then all of the data is wiped
4, The problem would be that the PC can not read the files as formatted on the zip drive by the Mac
5, There are services that might be able to migrate the data for you but I seriously doubt that Staples or Office Max can do it for you. The services that migrate data charge big bucks so be prepared to pay for it.
Allan -
PLD Report does not show data from Query
Hello,
SAP b1 9.0 PL08 on MSSQL 2008 and I get data on the query, but when the PLD prints, it shows nothing. Is there a way to filter the data that the PLD shows? Does PLD have its own SQL script it uses b/c its not showing data from the query.
Thanks,
NickHi Nicholas,
Please check below links.
query based print layout design
Print Layout Designer \Custom Reports
How to Make a Print Layout (PLD) Report from a SBO Query | SBOnotes.com
http://www.tegrous.com/wp-content/uploads/2011/07/HowTo_QPrintLs_88.pdf
Hope this help
Regards::::
Atul Chakraborty -
Is it possible to show data from two different sql tables?
Is it possible to show data from two different sql tables? Either to show combined data by using a join on a foreign key or showing a typical master detail view?
I have one table With data about a house, and another table With URL's to images in the blob. Could these two be combined in the same Gallery?
Best regards Terje F - NorwayHi Terje,
If you have a unique key, you could use one of the following functions for your scenarios:
If you only have one image per house, you can use LookUp:
http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745501
If you have multiple images per house, you can use Filter:
http://siena.blob.core.windows.net/beta/ProjectSienaBetaFunctionReference.html#_Toc373745487
Thanks
Robin -
Want to transfer data from 2 source systems
hi everybody ,
i want to transfer data from 2 source systems into a info cube, how can we do that and i dont want to transfer duplicate data from two source systems. like i have 1,2,3,4 records in one source system and 1,5,6,7 records in the other system.i want to transfer 1,2,3,4,5,6,7 in to the cube. can u help me to solve this problem?Hi
The solution given by Paolo will not work 100% correct.
Even if you create ODS and with record number as key of ODS the data in ODS will be record no 1,2,3,4,5,6,7
But data of record 1 will be overwritten (first it will hold data from 1st source system and then from 2nd source system) since record number is key. Also you can not differentiate the values of data that means which data is coming from which system.
For this you need to use compouding of infoobjects. In this expample, record number should be compounded with Source system ID infoobject-0soursystem. Then your ODS will contain source system ID along with record number as keys and record 1 will not be overwritten.
Have a look at SDN threads on compounding-
Re: Compounding
Re: Tips on Compounding with Source System ID
Hope it helps
Regards
Pradip
(don't forget points) -
We want to read data from weigh bridge and display in oracle forms & store
Sir/Madam,
in our organisation we had one requirement. i.e is reading data from weigh bridge using serial port, displying that data in oracle forms and when ever user click save button we store that into my oracle database. we are using oracle 8i and forms 6i and windows OS environment. we don't know reading data from serial port and placing that into form items. please help me as early as possible if there is any property available in d2k regarding this requirement .
thank you,
vishnuThere's no property in Forms that makes you read serial ports, but as far as I know you need to know the API of the machine which you want to read data from (it should come with machine's manual) and then it will be easy to store it in forms item.
Tony -
I want to retrieve data from p0001-PLANS based on the below condition,
Hi,
I want to retrieve data from p0001-PLANS
based on the below condition
select stext from hrp1000 where plvar = '01' and otype = 'S' and objid = p0001-plans and begda GE pn-begda and endda LE pn-endda.
Thanks,
Rama.Hi
Based on the Query you have specified thoise are stoerdin an Internal table- then
select stext from hrp1000 into table t_hrp where plvar = '01' and otype = 'S' and objid = p0001-plans and begda GE pn-begda and endda LE pn-endda.
The check table for this PLANS is T528B .
if t_hrp[] is not intitial.
select * from t528B intot table t_528 where plans eq t_hrp-plans.
endif.
Now you can get the PLANS data.
Refer to the Text tbale for PLANS - T528T
To get the TEXTS -
if t_hrp[] is not initial.
select * from T528T into table t_528T where plans eq t_hrp-plans.
endif.
Regards
Lekha -
I want to show date filed in hejri calendar (please ,please Help me )
I want to show date filed in hejri calendar
Hey hey, maybe the 4th time will be a charm.
If you did any searching of this forum for Hijiri, you'd find that there is no support in ADF for it.
If you are not using ADF, then you can give us all of the details.
John -
Want to show NSE/BSE current stock price on my web page?
Want to show NSE/BSE current stock price on my web page?
I am in the process of developing a website for a broking firm. I want to show the live
market price of NSE/BSE on my web-page & Also xyz company
Plz help for the samei am try to put stock price & pickup one particular company, how can i do that. eg link is given below
http://www.google.com/ig/directory?type=gadgets&url=hosting.gmodules.com/ig/gadgets/file/1 00012867032945674529/XSensex.xml -
I want to get data from only RESB table without loss of any deltas
i have to fetch the reservation details for the production orders.
we are using descrete manufacturing method to keep track the Work in process and cost .
for addition of components manually in the production order we can track thru change date i.e From AUFK table with field name AEDAT. for each time when we are adding the components the system will create a new line item In tableRESB-OBJNR(field)
i need very few fields from RESB table to be pulled into SAP BW.
how should i proceed creating a generic exractor without any loss of deltas.
i want to get data from only resb table into sap bw.
how should i proceed with Generice extractor with single table RESB and what would be the delta field . could any one throw some light .
all answers would be rewarded with pointsI have few reports for BOM data is to be pull into bw
all the reports contain the same tables Mentione below
MAST- material to BOM LINK
STKO- BOM header
STPO- BOM ITEM
STAS- BOM ITEM SELECTION
how should i create ageneric datsource satisfying that all the data comes from these tables without fail of deltas,
my doubts.1. Do i have to create a separate data sources (generic) for all these individually and load into separate ODS'S AND CLUB THEM into single ODS further.?
if i create i dont know what should be delta field that has to be picked for each datasource
2. Do i have to create a view on all these tables and create a generic datasource.if created what would be the delta field i have to select.
could you pls let me know how should i pull the data without loosing any deltas
could you pls let me know the flow with delta fields mentioned
regards,
P
Maybe you are looking for
-
I got the error when I run the Identity server "./start_ois_server" Using Linux Threading Library. /opt/netpoint/identity/oblix/apps/common/bin/ois_server: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such
-
Table for purchase orgn and vendor
Hi Experts I searched purchase organization EKORG in vendor display and its table, lfa1 and lfb1, but its not available, in which table i can get EKORG (purchase orgn) with reference to vendor code. thanks in advance. regards rajaram
-
hi! I've just installed mountain lion and I find one of the programs I need for my work is crashing all the time. any ideas what i can do?
-
Bapi to update delivery date in confirmation tab in purchase order me22n tc
Hi All, I am writing a BDC to update the data in confirmation tab for puchase orders for enjoy transaction. Please let me know how to updated delivery date in confirmation tab in purchase order(ME22N) using a bapi. I tried using BAPI_PO_CHANGE but fo
-
How to make the audio track independent from the video track?
Can someone remind me how to make the audio track independent from the video track? My memory just went blank. Must be the age. Thanks