GL Query for ACH demands a Blank Column
This is a very basic question...
I'm writing an SQL query to extract GL information from our Enterprise engine. The ACH format requires the format of the output file to include "filler" columns containing a single space.
Using SQL I can extract all of the information. How do I add filler columns to the output of the Query?
Eventually this will be spooled out to a file, encrypted and send to JPM Chase as a "check register".
Your question seems to discuss a problem with EBS.
The proper forum for EBS is General EBS Discussion
In this forum, the RDBMS forum, you'll probably get no response at all.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
How to query for extended ASCII characters in column value
Hi All
Sorry if this has been answered before. I tried searching but none of them seems to work for me.
I am trying to search for inverted ? in my column.
I am using the following query
select *
from table_name
where regexp_like (description , '¿' )Did you try:
like '%¿%'
create table table_name (description varchar2(100))
insert into table_name values ('jh¿¿gagd')
insert into table_name values ('jhga345gd')
insert into table_name values ('j1231232hgagd¿')
select *
from table_name
where regexp_like (description , '¿' )
DESCRIPTION
jh¿¿gagd
j1231232hgagd¿
select * from table_name
where description like '%¿%'
DESCRIPTION
jh¿¿gagd
j1231232hgagd¿Edited by: user130038 on Sep 8, 2011 12:29 PM -
Handling invalid Dates In query for Invalid dates in date column.
Hi,
I have a date column in my table. This column has corrupted data so the when i use any
to_timestamp function or any other date calcualtions my query breaks with the error:
ORA-01843: not a valid month.
I am aware the data is the issue.
But i want to handle this scenario by putting nulls in the output when ever an invalid date is encountered.
I have done some research and found the custom function is_date() on net.
But i am not suppose to create any new function but handle it with in my query.
Help is appreciated to handle this scenario.Prasath wrote:
Try this!!
With Tab As(Select '12/01/2009' txt From dual)
SELECT Decode(Length(Replace(Translate( txt
, '0123456789/'
, Null
, to_date(txt,'mm/dd/yyyy')
, NULL) As Validation_date
FROM tab;
Ok ...
SQL> With Tab As(Select '12/01/2009' txt From dual)
2 SELECT Decode(Length(Replace(Translate( txt
3 , '0123456789/'
4 , '#')
5 ,'#'))
6 , Null
7 , to_date(txt,'mm/dd/yyyy')
8 , NULL) As Validation_date
9 FROM tab;
VALIDATIO
01-DEC-09Not sure what that proves, especially in relation to the OP's problem. -
Single query for displaying all but 1 column values for all tables
Hi,
All the tables have SYS_CREATION_DATE column.
But I dont want to display this column value
Can someone suggest some way in which i could achive this?
Oracle version:11gR1
OS:SunOS
Cheers,
Kunwar
Edited by: user9131570 on Jul 6, 2010 7:57 PMuser9131570 wrote:
@Tubby
I *want to display table-wise the values of all but 1(SYS_CREATION_DATE) columns in my database.*
I need this in order to compare it to another database for all these values .Let me make a wild guess at what you are getting at.
Given these two tables
create table emp
(empid number,
empname varchar2(15),
empaddr varchar2(15),
sys_creation_date date);
create table dept
(deptid number,
deptmgr varchar2(10),
sys_creation_date date);you want to somehow combine
select empid,
empname,
empaddr
from emp;with
select deptid,
deptmgr
from dept;into a single sql statement? -
Query for Identifying column changes
Hi Guys,
Need help in getting a query for my scenario.
I have 2 table Table A and Table B. Both have same columns and data type.
Table A:
Id PersonId Name Code Date
1 1000 John M 2014-07-28
2 1001 Mary B 2014-07-28
3 1002 Robin R 2014-07-28
4 1003 Maxie N 2014-07-28
Table B:
Id PersonId Name Code Date
1 1000 John 2014-07-28
2 1001 Hary S 2014-07-28
3 1002 Justin Q 2012-07-28
4 1003 Maxie P 2013-07-28
My situation is:
I need to compare both the tables and need to identify the rows that has a change in all columns, if all other columns are not changed and Code is changed to blank, i need to ignore that row.
The expected outcome is:
Id PersonId Name Code Date
2 1001 Hary S 2014-07-28
3 1002 Justin Q 2012-07-28
4 1003 Maxie P 2013-07-28
Thanks Guys...I found the solution in a easy way i guess...
select * from
SELECT ID, PERSONID,NAME,
case when code is null then
select a.code from tablea A where A.ID = B.ID
else
a.code
end as Code,
DATE FROM TABLE B
MINUS
SELECT ID,PERSONID,NAME,CODE,DATE FROM TABLE A
What do you guys think...would it work for my scenario....
i am testing few scenarios looks like working....... -
[Oracle 8i] Query for N rows by column value?
I was just wondering if what I want to do is possible within my query (rather than programmatically)...
I want to return the N most recent records for each unique value in a particular column.
Here's a sample table:
CREATE TABLE orders
( order_no numeric(10)
part_no varchar(5)
close_date date
order_qty numeric(10)
scrap_qty numeric(10)
CONSTRAINT order_pk PRIMARY KEY (order_no)
);And some sample data....
INSERT INTO orders VALUES
(0000012345,'ABC-1',TO_DATE('01-01-2010','mm-dd-yyyy'),10,1);
INSERT INTO orders VALUES
(0000013498,'ABC-1',TO_DATE('01-05-2010','mm-dd-yyyy'),12,2);
INSERT INTO orders VALUES
(0000033452,'ABC-1',TO_DATE('01-10-2010','mm-dd-yyyy'),5,0);
INSERT INTO orders VALUES
(0000001468,'ABC-1',TO_DATE('01-15-2010','mm-dd-yyyy'),15,1);
INSERT INTO orders VALUES
(0000022349,'BR723',TO_DATE('01-03-2010','mm-dd-yyyy'),8,1);
INSERT INTO orders VALUES
(0000069581,'BR723',TO_DATE('01-05-2010','mm-dd-yyyy'),5,0);
INSERT INTO orders VALUES
(0000436721,'BR723',TO_DATE('01-10-2010','mm-dd-yyyy'),14,1);
INSERT INTO orders VALUES
(0000213446,'A5001',TO_DATE('01-06-2010','mm-dd-yyyy'),5,1);
INSERT INTO orders VALUES
(0000327987,'A5001',TO_DATE('01-08-2010','mm-dd-yyyy'),5,0);
INSERT INTO orders VALUES
(0000041353,'A5001',TO_DATE('01-14-2010','mm-dd-yyyy'),12,1);
INSERT INTO orders VALUES
(0000011241,'A5001',TO_DATE('01-15-2010','mm-dd-yyyy'),5,1);In this example, what I want to return are the 2 most recent orders (by close_date) for each part number.
Here is a table with the results I want to get, based on the scenario above:
order_no part_no close_date order_qty scrap_qty
0000001468 'ABC-1' '01-15-2010' 15 1
0000033452 'ABC-1' '01-10-2010' 5 0
0000436721 'BR723' '01-10-2010' 14 1
0000069581 'BR723' '01-05-2010' 5 0
0000011241 'A5001' '01-15-2010' 5 1
0000041353 'A5001' '01-14-2010' 12 1Is it possible to write a query to get these results, or am I going to have to query for all available data, and find the 2 most recent rows programmatically?
Thanks in advance!Hi,
user11033437 wrote:
I'm going to test that out right now. I think if it works, I may need to use dense_rank() rather than rank(), because it is possible that two orders for the same part number could have the same close date, and according to what I've looked up on the rank() and dense_rank() functions, rank() can give non-consecutive results if the values are the same.What's wrong with non-consecutive values?
Use RANK, DENSE_RANK or ROW_NUMBER depending on what you want.
For example; say a certain part has been ordered 8 times:
3 times with close_date January 29, 2010 (all at exactly the same time),
4 times with close_date January 28, 2010 (all at exactly the same time), and
1 time with close_date January 27, 2010.
If you ask for the last 2 rows:
RANK will give you the 3 rows from January 29. (All 3 have an equal claim to being in the top 2.)
DENSE_RANK will give you the 7 rows from January 28-29 (the last two values , regardless of how many rows have them).
ROW_NUMBER will give you 2 rows from January 29. (Which 2? It's arbitrary unless you add a tie-breaker to the ORDER BY clause.)
All these functions are available in Oracle 8.1. -
Hi There
Please advice me how to create a blank column in Query?
Thanks in advance..
Regards,
Chandu.Hi
I don't have any IO's regarding that.I just need create a column with some description then user can fill with data.
How can i run that?
Thanks in advance.
Regards,
Chandu. -
Query for the ERP report - to know the columns it has
Hi everyone,
i was wondering if you can help me in order to get a good query in order to have the columns of the report that I'm using at my ERP Oracle App.
i would like to know the header, the collumns and the footer that i will have in my report.
what i have as information is the name of the report.
thanks for your helpGo to the concurrent program screen and query the report name.
Then take the concurrent executable name and go to the Concurrent Executables screen.
Find the name of the executable and then download that from the application server.
If it is an .rdf file, open it in report developer and look for the data model.
If it is a .sql file, open it using notepad and look at the query.
Hope this helps,
Sandeep Gandhi -
In my security event logs, I have a lot of this messages and I don't know how to trace where are the coming from. Please help me with that
Log Name: Security
Source: Microsoft-Windows-Security-Auditing
Date: 5-1-2014 08:52:08
Event ID: 4797
Task Category: User Account Management
Level: Information
Keywords: Audit Success
User: N/A
Computer: Computername
Description:
An attempt was made to query the existence of a blank password for an account.
Subject:
Security ID: LOCAL SERVICE
Account Name: LOCAL SERVICE
Account Domain: NT AUTHORITY
Logon ID: 0x3E5
Additional Information:
Caller Workstation: ComputerName
Target Account Name: Guest
Target Account Domain: Computername
It's not only the guest account, but also the Administrator account, and the UpdatusUser.
My blog: www.enduria.eu | Wiki-moderator Server Certification Study Groups #90days2mcsa (http://borntolearn.mslearn.net/certification/server/w/wiki/default.aspx)system automatically assigns a PW for guest accounts.
Hetti Arachchige V Aravinda is correct.
Hackers will use a key generator for guess accounts mailed to you, if you click, your are actually installing a run script, usually this will run all the time, if there is an connection, the guest account will tell you the connection and where.
This is most famous with IIS ftp service for guest accounts. This was a major flaw with IIS ftp service in previous OS the ftp world get confused with the amount of failed attempts and grant admin abilities to your ftp.
Your event for guest account would show may attempts, this is a very common old way that spammers used to connect to a device to spread spam.
Wireshark is a sure way to trace packets in and out of your ISP. You can now see what is coming. if you do this, do not let pcap run on start up. I am positive you have nothing to worry about. If you do trace your IP and you see lots of proxys coming
in, I suggest you contact your ISP about this. -
Need help with query for converting columns to rows
Hello,
I know this is a very common question asked in the forum. I have searched regading this, i did find some threads, but i was not able to achieve what i require from the answers posted. So anybody please help me.
I have a table which is having multiple columns as follows:
Insert into table_1 (X,Y,Z,A,B,C,D,E,F,G,H,I) values (0,0,2,0,0,1,3,0,0,0,0,0);I want to convert the result into a two column, multiple rows i.e., I want the result as follows:
Col1 Col2
X 0
Y 0
Z 2
A 0
B 0
C 1
D 3
E 0
F 0
G 0
H 0
I 0Please anybody help me in writing the query for this..Is this what you are expecting:
SQL> WITH T AS
2 (
3 SELECT 0 X, 0 Y, 2 Z, 0 A, 0 B, 1 C, 3 D, 0 E, 0 F, 0 G, 0 H, 0 I FROM DUAL
4 )
5 SELECT 'X' col1, X col2 FROM T
6 UNION ALL
7 SELECT 'Y' col1, Y col2 FROM T
8 UNION ALL
9 SELECT 'Z' col1, Z col2 FROM T
10 UNION ALL
11 SELECT 'A' col1, A col2 FROM T
12 UNION ALL
13 SELECT 'B' col1, B col2 FROM T
14 UNION ALL
15 SELECT 'C' col1, C col2 FROM T
16 UNION ALL
17 SELECT 'D' col1, D col2 FROM T
18 UNION ALL
19 SELECT 'E' col1, E col2 FROM T
20 UNION ALL
21 SELECT 'F' col1, F col2 FROM T
22 UNION ALL
23 SELECT 'G' col1, G col2 FROM T
24 UNION ALL
25 SELECT 'H' col1, H col2 FROM T
26 UNION ALL
27 SELECT 'I' col1, I col2 FROM T
28 /
C COL2
X 0
Y 0
Z 2
A 0
B 0
C 1
D 3
E 0
F 0
G 0
H 0
C COL2
I 0
12 rows selected. -
NOTIFICATION QUERY FOR UDF COLUMN
Dear experts,
I want notification query for delivery should not be add without fill up the information in machine number column (UDF Column- U_MCnumber)
Please do needful.
Thanks & Regards,
AkshataDear all,
I have got query ...........
If @object_type = '15'and @transaction_type= ('A')
BEGIN
If Exists (Select T0.DocEntry from ODLN T0 Inner Join DLN1 T1
On T0.DocEntry=T1.DocEntry INNER JOIN OITM T3 ON T3.ItemCode = T1.ItemCode
Where (T1.U_MCnumber Is Null and T3.ITMsgrpcod='119')
And T0.DocEntry = @list_of_cols_val_tab_del )
BEGIN
Select @error = -1,
@error_message = 'Please fill up machine number!!!'
End
End
Thanks & Regards,
Akshata -
Layout in sql report gets disturbed in case of blank columns
Hi All,
I have an SQL report which runs from a concurrent program.
Problem is, if there are blank columns in the report then the data shifts to the left.
As shown in the below table, if column Attribute 4 is null then the data for Error column has shifted to the left. The words Incorrect Data should come under heading Error whereas it comes under Attribute4.
ASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
316604 ABCD Incorrect Data
Can someone help me in correcting the report layout.
Regards,
ShrutiASSET_NUMBER_REC ATTRIBUTE_CATEGORY_CODE ATTRIBUTE4 ERROR
316604 ABCD Incorrect Data
Can someone help me in correcting the report layout.
Hi
SQL Report --- Do you mean SQL Query in such case,
Please use NVL function on all column, which will give you proper place result. -
Display Blank Column in Bex Analyzer without Error
Hi Experts,
i have created a report with several columns.
To display the coorect descrition i use a new selecion and insert the required infoobject or Key Figure" it is ok.
Whe want to display two blank columns.
The problem i have is that there are some errors saying i should define thoses columns.
How to define a blank cloumn which is displaying the description but empty?
Thank you for your Input.
GiloInside the query designer there should be a "columns" section. Formulas can be configured either by:
- creating a structure (dragging a structure from the left or creating a new structure)...or....
- dragging a key figure from the left window pane over to the "columns" section.
- you could create a new calculated key figure or restricted key figure, but this is not necessary in our example.
Right click on the structure or Key Figures. There should be 2 options: New Selection or New Formula. We chose new formula, add appropriate text/heading/description and put a =0 in the formula box, prior to clicking OK. The wider the heading text, the wider the new blank column will look.
Then right click on the column you just created to change it's properties to = suppress result for both the "calculate result as" and the "calculate single values as".... -
Query for spesific children in a tree structure
Hi,
My data is organized in a tree structure.
I need a sql statement that returns a parent that
have a set of children corresponding to some demands.
I provide a very simplified description of my data, but it covers my problem.
Can anyone please help me write a select statement that gives me all featureids
that have a GID attribute with children GNR=123 AND BNR=456?
Regards
gv
create table attributetype( id number, name varchar2(8), parentid number );
insert into attributetype( id, name ) values ( 1, 'GIDLIST' );
insert into attributetype( id, name, parentid ) values ( 2, 'GID', 1 );
insert into attributetype( id, name, parentid ) values( 3, 'GNR', 2 );
insert into attributetype( id, name, parentid ) values ( 4, 'BNR', 2 );
create table attribute( featureid number, id number, parentid number, atttypeid number, intvalue number );
--attributes for feature1
insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 1, 0, 1 );
insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 2, 1, 2 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 3, 2, 3, 123 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 4, 2, 4, 456 );
insert into attribute( featureid, id, parentid, atttypeid ) values( 1, 5, 1, 2 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 6, 5, 3, 12 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 1, 7, 5, 4, 456 );
--attributes for feature 2
insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 8, 0, 1 );
insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 9, 8, 2 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 10, 9, 3, 678 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 11, 9, 4, 456 );
insert into attribute( featureid, id, parentid, atttypeid ) values( 2, 12, 8, 2 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 13, 12, 3, 876 );
insert into attribute( featureid, id, parentid, atttypeid, intvalue ) values( 2, 14, 12, 4, 456 );
commit;
column name format a15
select a.featureid featureid, lpad(' ', (level - 1) * 2) || b.name name, a.id attid, a.parentid parentid, a.intvalue
from attribute a, attributetype b
where a.atttypeid=b.id
connect by prior a.id=a.parentid
start with a.parentid=0;
FEATUREID NAME ATTID PARENTID INTVALUE
1 GIDLIST 1 0
1 GID 2 1
1 GNR 3 2 123
1 BNR 4 2 456
1 GID 5 1
1 GNR 6 5 12
1 BNR 7 5 456
2 GIDLIST 8 0
2 GID 12 8
2 GNR 13 12 876
2 BNR 14 12 456
2 GID 9 8
2 GNR 10 9 678
2 BNR 11 9 456Hi,
Thanks for providing the CREATE TABLE and INSERT statements; that helps a lot.
You want featureids that meet three criteria:
(1) there is a GID attribute
(2) the GID attribute has a GNR child with intvalue=123
(3) the GID attribute has a BNR child with intvalue=456
Since you're looking for immediate children, not distant descendants, it's easiest to do this with a non-hierarrchical query that finds one of these criteria, and does EXISTS sub-queries to test for the other two.
For example:
WITH aat AS
( -- Begin aat: join of attribute and attributetype
SELECT a.featureid
, a.id
, a.parentid
, a.intvalue
, t.name
FROM attribute a
JOIN attributetype t ON a.atttypeid = t.id
) -- End aat: join of attribute and attributetype
SELECT DISTINCT featureid
FROM aat m -- m for main
WHERE name = 'GID'
AND EXISTS ( -- Begin EXISTS sub-query for GNR=123
SELECT NULL
FROM aat
WHERE parentid = m.id
AND name = 'GNR'
AND intvalue = 123
) -- End EXISTS sub-query for GNR=123
AND EXISTS ( -- Begin EXISTS sub-query for BNR=456
SELECT NULL
FROM aat
WHERE parentid = m.id
AND name = 'BNR'
AND intvalue = 456
) -- End EXISTS sub-query for BNR=456
;Alternatively, you could do a three-way self join, and skip the EXISTS sub-queries.
If you were looking for GNR and BNR descendants, any number of levels below the same GID node, it's easy to modify the query above. Just re-write the EXISTS sub-queries to CONNECT BY queries that "START WITH parentid = m.id".
It looks like this application will have a lot of use for a view like aat, above. If you don't already have a permanent view like that, you should create one. -
Hi All,
How do I create a blank column with the column name in the report?
I tried with "structure-new selection" with the report name(Structure being Key Figures)- the system pops out an error message stating that it needs unique value for each cell.
Thanking in advance.Thanks Bhanu. It did work.
I did try query properties suppression zeroes for both rows and columns with Active =0 but it is not suppressing the zeroes.
Thanks again.
Maybe you are looking for
-
Need help with ObjectInputStream
i'm sending a serialized object over an ObjectInputStream, this object has a display function. my server uses readObject in a while true loop and everytime he gets an object he prints object.display. everytime i send an object the server recieves it
-
Outlook 2010 Mail Tips Could Not Be Retrieved / Out Of Office Doesn't work too.
Hi, We have a small set up with 5 pc's and 1 server. All of the workstations are exactly the same.. specs,OS,software etc... One of the users is currently experiencing "Mail Tips Could Not Be Retrieved" issue. It shows up right above the SEND bu
-
Why does iCal change my listed categories
On my iCalendar I've got the different categories of lists with the different events, to organise myself. However they keep renaming themselves and not saving. Or just changing within 10 seconds. For days now new calendars/categories have been added.
-
I can't seem to find a way to update the iOS version on my iPad. It is at version 4.3.3. There is no software update menu option on the settings screen. The apple download page does not let me update it from there either.
-
Paypal viewcart button help?!!? AS3!
viewcart_btn.addEventListener(MouseEvent.CLICK, cartClick); function cartClick (event:MouseEvent):void var url:String = 'https://www.paypal.com/cgi-bin/webscr'; var request:URLRequest = new URLRequest(url); var paypal:URLVariables = new URLVariables(