Query Error LIKE [ac]
I Need to reserch a customer's name
where his name is "Joco".
I would Like to research the field's name with these options: "Joco" or "Joco"
I Wrote this query but Oracle doesn't support:
SELECT name from customer
where name like 'Jo[ac]o'
Can anyone Help me ?
Thank you.
null
Hi
Select name from customer
where name like 'Jo'| |chr(ascii('^2'));
Thanks
Sarju
Oracle DBA
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Luis Paulo Soares Dutra ([email protected]):
I Need to reserch a customer's name
where his name is "Joco".
I would Like to research the field's name with these options: "Joco" or "Joco"
I Wrote this query but Oracle doesn't support:
SELECT name from customer
where name like 'Jo[ac]o'
Can anyone Help me ?
Thank you.
<HR></BLOCKQUOTE>
null
Similar Messages
-
Query is throwing an error like missing right paranthesis.,
Hi,
The below query is throwing an error like missing right paranthesis.,
and Is there any way to write the same query in a simpler way ?
SELECT AVALABLEBALANCE
FROM (
( SELECT SUM(TH1.TRANSACTIONAMOUNT)
FROM TRANSACTIONHISTORY TH1,
TRANSACTIONTYPE TT,
CARDDETAIL CD,
P2P_CARDDETAIL P2P
WHERE TH1.TRANSACTIONTYPEID = TT.TRANSACTIONTYPEID
AND TH1.CARDID = CD.CARDID
AND CD.CARDID = P2P.CARDID
AND TH1.CARDID = 6013
AND TT.TRANSACTIONTYPECODE IN ('WITHDRAWAL_CHECK_FEE')
AND TRUNC(TH1.TRANSACTIONDATETIME) = TRUNC(TH3.TRANSACTIONDATETIME)
GROUP BY TH1.TRANSACTIONTYPEID,TH1.CARDID,TRUNC(TH1.TRANSACTIONAMOUNT)) -
( SELECT SUM(TH2.TRANSACTIONAMOUNT)
FROM TRANSACTIONHISTORY TH2,
TRANSACTIONTYPE TT,
CARDDETAIL CD,
P2P_CARDDETAIL P2P
WHERE TH2.TRANSACTIONTYPEID = TT.TRANSACTIONTYPEID
AND TH2.CARDID = CD.CARDID
AND CD.CARDID = P2P.CARDID
AND TH2.CARDID = 6013
AND TT.TRANSACTIONTYPECODE IN ('FUND_TRANSFER_RECEIVED')
AND TRUNC(TH2.TRANSACTIONDATETIME) = TRUNC(TH3.TRANSACTIONDATETIME)
GROUP BY TH2.TRANSACTIONTYPEID,TH2.CARDID,TRUNC(TH2.TRANSACTIONAMOUNT))
) T , TRANSACTIONHISTORY TH3
WHERE TH3.CARDID = 6013Hi Sekar,
Here is your formatted code:
/* Formatted on 2007/11/16 16:42 (Formatter Plus v4.8.0) */
SELECT avalablebalance
FROM ((SELECT SUM (th1.transactionamount)
FROM transactionhistory th1,
transactiontype tt,
carddetail cd,
p2p_carddetail p2p
WHERE th1.transactiontypeid = tt.transactiontypeid
AND th1.cardid = cd.cardid
AND cd.cardid = p2p.cardid
AND th1.cardid = 6013
AND tt.transactiontypecode IN ('WITHDRAWAL_CHECK_FEE')
AND TRUNC (th1.transactiondatetime) =
TRUNC (th3.transactiondatetime)
GROUP BY th1.transactiontypeid,
th1.cardid,
TRUNC (th1.transactionamount))
MINUS
(SELECT SUM (th2.transactionamount)
FROM transactionhistory th2,
transactiontype tt,
carddetail cd,
p2p_carddetail p2p
WHERE th2.transactiontypeid = tt.transactiontypeid
AND th2.cardid = cd.cardid
AND cd.cardid = p2p.cardid
AND th2.cardid = 6013
AND tt.transactiontypecode IN ('FUND_TRANSFER_RECEIVED')
AND TRUNC (th2.transactiondatetime) =
TRUNC (th3.transactiondatetime)
GROUP BY th2.transactiontypeid,
th2.cardid,
TRUNC (th2.transactionamount))) t,
transactionhistory th3
WHERE th3.cardid = 6013
-Edit: Lol this forum's text box does not have a proper formatter to show our codes perfectly :(.. Very sorry about the expected format here.. Lol !!
***Lol Poor Format***
Message was edited by:
user599090
I replaced the '-' with MINUS Keyword. That was the mistake you made i guess. -
we have one application which run queries one by one after the application starts.
now for a particular query I am getting one error from my application and not able to solve this.
The error and query is like this --
ORA-01013: user requested cancel of current operation
SQL QRY BELOW:
select * from tableName where lastupdatetime>= (sysdate - interval '59' minute) and
lastcalledmethod like '%Some Error%'
order by lastupdatetime desc
the avarage row for the table will be 95 lakhs and also the table gets updated in minutes but till the rows will remain more or less same as some deletion job happens on it in a schedule.
Now what I came to know regarding the error is some body can press ctrl + C to stop the query. but this not the case here.
help me regarding this, I am not able to get rid of this.You talk more than you work.
Those things you asked for, can be said in other words also.
Anyways, I do not want to create a situation which can pollute this great forum.
And thanks for not helping.
Till I wish to give the details that I missed earlier for those can understand the language.
OracleDB version -- 11g R2
Application -- VS 2010
ODAC 11.2 Release 2 and Oracle Developer Tools for Visual Studio (11.2.0.1.2) for connecting Oracle from Application.
Application runing - Win 2003 server. -
Generate causes SCC Query Error: Unhandled exception
Hi folks,
I have Robohelp X5, I am composing on my local machine with
saves going to an RCS server. I've pretty much figured out that RCS
has a problem with the skins in Robohelp, because if I go to create
a custom skin, I can create it in a non-controlled project. The
second I go to create a custom skin in the controlled version, I
get an infinite loop of the SCCQueryError message, Unhandled
Exception Message Boxes. I have to kill Robohelp, and reboot to get
out of the error message.
Whenever I go to generate the verson controlled project, I
get at least six of these error messages, but the project is
generated and I can open it and can't seem to find anything
missing. So, even though I get the errors in a generate, they don't
affect the ability to generate a project.
I've already checked to be sure that the RCS server is
accepting all the file extensions.. that was my first thought was
that it didn't like the .swf extensions.
Anyone else have or see this problem?
Thanks!Thank you Eilsa... It's a touch complicated, but I am working
off my hard drive, and Robohelp is installed on my hard drive. The
webhelp file that is integrated with the project is being pushed to
the a folder on the development server where RCS resides, and my
project files are being archived in another directory on the RCS
version tracker.
I get the SCC query error (which seems to be an RCS version
tracker error) right after I generate either a local or server
webhelp, about six in all. So I'm thinking that there is some file
extension that RCS is blocking, because I don't get the errors when
I do the same thing with a non-version tracked project.
Forget about trying to create any skins.. (and this is on my
local, too) I have to switch to a non-version tracked project to
create the skins.
But just trying to see if anyone else has seen the
problem.. -
특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR
제품 : FIN_AP
작성날짜 : 2004-05-19
특정 SUPPLIER SITE LEVEL의 DATA수정 시도시 RE-QUERY ERROR
=================================================
Problem Description
특정 Supplier Site level의 Data수정 시도시 아래의 Message발생
==============================================
record has been updated, re-query block to see change
==============================================
Solution Description
아래의 SQL을 실행해서 "CHK_TRAIL_SPACE"라는 Procedure를
만든 후 생성된 Procedure를 다음의 방법으로 실행하면, Input Table의
어떤 Column에 NULL문자가 들어갔는지 확인할 수 있다.
set serveroutput on
execute chk_trail_space(<table_name to check>);
i.e. (execute chk_trail_space('PO_VENDORS');)
trailspace.sql:
===============================================================================
CREATE OR REPLACE PROCEDURE CHK_TRAIL_SPACE (p_table_name in varchar)
IS
v_table_name varchar(30);
v_column_name varchar(30);
v_column_name_c char(30);
v_space_count number;
v_ret number; -- temp holder for above
v_initial_space_counter number;
dyn_cursor number;
CURSOR TABLE1 IS
SELECT table_name
FROM DBA_TABLES
WHERE table_name = p_table_name;
CURSOR COLUMN1 IS
SELECT column_name
FROM DBA_TAB_COLUMNS
WHERE table_name = v_table_name;
BEGIN
OPEN TABLE1;
LOOP
-- FOR crec1 in TABLE1 LOOP
fetch TABLE1 into v_table_name;
IF (TABLE1%NOTFOUND) THEN
exit;
END IF;
dbms_output.put_line(v_table_name);
dbms_output.put_line
v_initial_space_counter := 0;
OPEN COLUMN1;
LOOP
-- FOR crec2 in COLUMN1 LOOP
fetch COLUMN1 into v_column_name;
IF (COLUMN1%NOTFOUND) THEN
exit;
END IF;
dyn_cursor := DBMS_SQL.OPEN_CURSOR;
DBMS_SQL.PARSE
(dyn_cursor,
'SELECT COUNT(*) ' ||
'FROM ' || p_table_name ||
' WHERE ' || v_column_name || ' LIKE ''% ''',
DBMS_SQL.NATIVE);
DBMS_SQL.define_column (dyn_cursor, 1, v_space_count);
v_ret := DBMS_SQL.EXECUTE(dyn_cursor);
if DBMS_SQL.fetch_rows(dyn_cursor) > 0 then
DBMS_SQL.column_value (dyn_cursor, 1, v_space_count);
end if;
DBMS_SQL.CLOSE_CURSOR(dyn_cursor);
IF v_space_count > 0 THEN
v_initial_space_counter := v_initial_space_counter + 1;
END IF;
v_column_name_c := v_column_name;
IF v_space_count > 0 THEN
dbms_output.put_line(' ' || v_column_name_c || to_char(v_space_count))&
#059;
END IF;
end loop;
close column1;
end loop;
close table1;
END CHK_TRAIL_SPACE;
====================================================================
NULL문자가 들어간 Column이 확인되면,
update po_vendors
set vendor_name = rtrim(vendor_name);
위의 방법으로 수정하면 된다.
Reference Documents
Note :234048.1If I delete the purchase details/line item, the supplier site can be changed.
The error appeared again after the new line item selected,click on "Shipment" button, and change the supplier site.
It's not able to change it. Any reason caused by the line item shipment? how it relate? -
Query error - with filtering records
Hi. I have a gallery that shows 9 records at a time, which
you can then move on to subsequent pages. I added filters to narrow
down the record search, however, I am receiving query errors. This
is my code:
<!----- This is setting the initial defaults for the filter
variables ---->
<cfparam name="form.ART_CATEGORY_ID" default="">
<cfparam name="form.ART_TYPE_ID" default="">
<cfparam name="form.FINE_ART_CLASS_ID" default="">
<cfparam name="form.searchfield" default="">
<!----- Populate the CATEGORIES filter drop-down ---->
<cfquery name="categories" datasource="nancy">
SELECT *
FROM CATEGORIES
ORDER BY ART_CATEGORY_ID
</cfquery>
<!----- Populate the TYPES filter drop-down ---->
<cfquery name="types" datasource="nancy">
SELECT *
FROM TYPE
ORDER BY ART_TYPE_ID
</cfquery>
<!----- Populate the CLASS filter drop-down ---->
<cfquery name="class" datasource="nancy">
SELECT *
FROM CLASS
ORDER BY FINE_ART_CLASS_ID
</cfquery>
<!----- Create the filter drop-down selections ---->
<form method="post" action="root_fineart.cfm">
<select name="ART_TYPE_ID">
<option value="" <cfif trim(form.ART_TYPE_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="types">
<option value="#ART_TYPE_ID#"
<cfif form.ART_TYPE_ID eq
types.ART_TYPE_ID>selected</cfif>>#ART_TYPE#</option>
</cfoutput>
</select>
<select name="ART_CATEGORY_ID">
<option value="" <cfif trim(form.ART_CATEGORY_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="categories">
<option value="#ART_CATEGORY_ID#"
<cfif form.ART_CATEGORY_ID eq
categories.ART_CATEGORY_ID>selected</cfif>>#ART_CATEGORY#</option>
</cfoutput>
</select>
<select name="FINE_ART_CLASS_ID">
<option value="" <cfif trim(form.FINE_ART_CLASS_ID) eq
"">selected
</cfif>> All </option>
<cfoutput query="class">
<option value="#FINE_ART_CLASS_ID#"
<cfif form.FINE_ART_CLASS_ID eq
class.FINE_ART_CLASS_ID>selected</cfif>>#FINE_ART_CLASS#</option>
</cfoutput>
</select>
<!----- This also creates a SEARCH capability ---->
<input name="searchfield" type="text" size="10"
value="#form.searchfield#" /></cfoutput> </label>
<input name="submit" type="submit" value="Submit" />
<!----- I got this part of the code from a site, that allows
me to display the 9 records at a time in my gallery ---->
<cfparam name="start" type="numeric" default="1">
<cfparam name="step" type="numeric" default="9">
<!----- My query to retrieve the records... This may be where
I have something wrong... ---->
<cfquery datasource="nancy" cachedwithin=".01"
name="queryResults">
SELECT *
FROM ART
WHERE 1 = 1
<cfif val(form.ART_CATEGORY_ID) GT 0>
AND ART_CATEGORY_ID = <cfqueryparam
value="#form.ART_CATEGORY_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.ART_TYPE_ID) GT 0>
AND r.ART_TYPE_ID = <cfqueryparam
value="#form.ART_TYPE_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif val(form.FINE_ART_CLASS_ID) GT 0>
AND i.FINE_ART_CLASS_ID = <cfqueryparam
value="#form.FINE_ART_CLASS_ID#" cfsqltype="cf_sql_integer">
</cfif>
<cfif trim(form.searchfield) neq "">
AND ART_TITLE LIKE '%#form.searchfield#%'
</cfif>
ORDER BY ART_TITLE ASC
</cfquery>
<!----- This is also code I got somewhere else to display the
gallery ---->
<cfif queryResults.recordcount gt 0>
<cfoutput>
<p class="style1">
<!--- if past start --->
<cfif (start-step-step) gt 1>
<a href="#cgi.SCRIPT_NAME#?start=1"><img
src="images/Beginning_blue.png" alt="Beginning" width="31"
height="21" align="absbottom" /></a>
</cfif>
<cfif start gt 1>
<a href="#cgi.SCRIPT_NAME#?start=#start-step#"><img
src="images/previous_blue.png" alt="Previous" align="absbottom"
/></a>
</cfif>
<strong>#start# - #iif(start * 3 + step gt
queryResults.recordcount,queryResults.recordcount,start + step-1)#
of #queryResults.recordcount# records</strong>
<!--- if still some not displayed --->
<cfif (start + step) lte queryResults.recordcount>
<a href="#cgi.SCRIPT_NAME#?start=#start+step#"><img
src="images/next_blue.png" alt="Next" align="absbottom"
/></a>
</cfif>
<cfif (start+step+step) lte queryResults.recordcount>
<a
href="#cgi.SCRIPT_NAME#?start=#queryResults.recordcount-step+1#"><img
src="images/end_blue.png" alt="End" align="absbottom"
/></a>
</cfif>
</p>
</cfoutput>
</cfif>
<cfloop query="queryResults" startrow="#start#"
endrow="#start + step/3-1#">
<table width="100%" border="1" bordercolor="#FFFFFF"
cellspacing="0" cellpadding="2">
<tr> <cfoutput query="queryResults"
startrow="#start#" maxrows="3">
<td width="33%"
class="style1">#queryResults.ART_TITLE#</td>
</cfoutput>
<cfset #start# = #start# + 3>
</tr>
</table>
</cfloop>
</td>
</tr>
</table></form>
It seems that the CATEGORIES filter is the only one that does
not return a ERROR EXECUTING DATABASE QUERY error. However, it does
not filter all the records... it only seems to filter and return
the first 4 or 5 records.
Any thoughts?your queryResults query selects only from ART table, while in
the WHERE
clause you are apparently using other tables whihc are not in
your FROM
clause...
you need to use JOIN/INNER JOIN/LEFT JOIN/RIGHT JOIN in your
FROM clause
to link the other tables. check your db manual for proper
usage of those
operators.
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/ -
Simple query with like return wrong result
Hi,
I run simple query with like.
If I use parameter I get wrong results.
If I use query without parameter results are ok.
My script:
ALTER SESSION SET NLS_SORT=BINARY_CI;
ALTER SESSION SET NLS_COMP=LINGUISTIC;
-- drop table abcd;
create table abcd (col1 varchar2(10));
INSERT INTO ABCD VALUES ('122222');
insert into abcd values ('111222');
SELECT * FROM ABCD WHERE COL1 LIKE :1; -- wrong result with value 12%
COL1
122222
*111222*
select * from abcd where col1 like '12%'; -- result ok
COL1
122222
I use Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
and query run in Oracle SQL Developer 3.1.07.Hi,
welcome to the forum.
When you put some code please enclose it between two lines starting with {noformat}{noformat}
i.e.:
{noformat}{noformat}
SELECT ...
{noformat}{noformat}
You should specify exactly how you run your code.
If I run this statement in SQL Plus:SQL> ALTER SESSION SET NLS_SORT=BINARY_CI;
Session altered.
SQL> ALTER SESSION SET NLS_COMP=LINGUISTIC;
Session altered.
SQL>
SQL> -- drop table abcd;
SQL> create table abcd (col1 varchar2(10));
Table created.
SQL>
SQL> INSERT INTO ABCD VALUES ('122222');
1 row created.
SQL> insert into abcd values ('111222');
1 row created.
SQL>
SQL> SELECT * FROM ABCD WHERE COL1 LIKE :1;
SP2-0552: Bind variable "1" not declared.
SQL>
I got this error. So I wonder how you set value 12%
Please specify exactly how you run your test as we cannot reproduce your problem.
Regards.
Al -
Change one entity bean query, errors pop up in another... why?
In my application I have the following entity bean:
@Entity
@Table(name = "ventureprofile")
@SecondaryTable(name = "venture")
@NamedQueries( {
@NamedQuery(name = "Ventureprofile.findByVentureprofileid", query = "SELECT v FROM Ventureprofile v WHERE v.ventureprofileid = :ventureprofileid"),
@NamedQuery(name = "Ventureprofile.findByVentureid", query = "SELECT v FROM Ventureprofile v WHERE v.ventureid = :ventureid"),
@NamedQuery(name = "Ventureprofile.findByLogoimagelocation", query = "SELECT v FROM Ventureprofile v WHERE v.logoimagelocation = :logoimagelocation"),
@NamedQuery(name = "Ventureprofile.findByVisible", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename")
//@NamedQuery(name = "Ventureprofile.findByVisibleRange", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename OFFSET 1 LIMIT 2")
public class Ventureprofile implements Serializable {
@GeneratedValue(strategy=GenerationType.AUTO, generator="Ventureprofile.ventureprofileid.seq")
@SequenceGenerator(name="Ventureprofile.ventureprofileid.seq", sequenceName="ventureprofile_ventureprofileid_seq", allocationSize=1)
@Column(name = "ventureprofileid", nullable = false)
private BigInteger ventureprofileid;
@Id
@JoinColumn(name = "ventureid", referencedColumnName = "ventureid")
private long ventureid;
@Lob
@Column(name = "venturesummary")
private String venturesummary;
@Column(name = "logoimagelocation")
private String logoimagelocation;
@Column(name = "visible", nullable = false)
private char visible;
@Column(table = "venture", name = "venturename", insertable=false)
private String venturename;
...and another entity bean:
@Entity
@Table(name = "venturelink")
@NamedQueries( {
@NamedQuery(name = "Venturelink.findByVenturelinkid", query = "SELECT v FROM Venturelink v WHERE v.venturelinkid = :venturelinkid"),
@NamedQuery(name = "Venturelink.findByVentureprofileid", query = "SELECT v FROM Venturelink v WHERE v.ventureprofileid = :ventureprofileid"),
@NamedQuery(name = "Venturelink.findByLinkurl", query = "SELECT v FROM Venturelink v WHERE v.linkurl = :linkurl"),
@NamedQuery(name = "Venturelink.findByLinkname", query = "SELECT v FROM Venturelink v WHERE v.linkname = :linkname")
public class Venturelink implements Serializable {
@Id
@GeneratedValue(strategy=GenerationType.AUTO, generator="Venturelink.venturelinkid.seq")
@SequenceGenerator(name="Venturelink.venturelinkid.seq", sequenceName="venturelink_venturelinkid_seq", allocationSize=1)
@Column(name = "venturelinkid", nullable = false)
private BigInteger venturelinkid;
@Column(name = "ventureprofileid", nullable = false)
private long ventureprofileid;
@Column(name = "linkurl", nullable = false)
private String linkurl;
@Column(name = "linkname", nullable = false)
private String linkname;
... If I uncomment the last NamedQuery ~
@NamedQuery(name = "Ventureprofile.findByVisibleRange", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename OFFSET 1 LIMIT 2")I experience the following runtime error:
javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.RemoteException: null; nested exception is:
java.lang.IllegalArgumentException: NamedQuery of name: Venturelink.findByVentureprofileid not found.Container: Glassfish
Database: Postgres
OS: WinXP sp2
Persistence provider: Toplink
Note that I am not altering 'Venturelink', I am only altering 'Ventureprofile', however errors are manifesting themselves in 'Venturelink'.
I have heard a rumor that 'OFFSET' and 'LIMIT' are not supported by the majority of persistence providers, but that would be a ridiculous situation... unless the majority of persistence providers lazy-load results when they are pulled from a result set. Is that the case?
Regardless, this is making me guess what is going on behind the scenes. So, at some point during runtime, is all of my EJB query code getting munged together? And then whatever interprets them into SQL is giving up as soon as it finds a query it doesn't like? That's what this smells like, at least...
Typically, I find weird errors like this crop up when I'm doing something stupid that a system wasn't designed to handle. So I'd really appreciate it if someone would set me straight.Solution, via Doug Clarke at the TopLink forums:
2. JPA's query language does not support OFFSET and LIMIT. Instead JPA offers setFirstResult(int) and setMaxResult(int) on the Query object. In TopLink this generally translates to JDBC calls of similar names.
(Thanks Doug!)
so yeah... unless somebody knows otherwise and I'm wrong (often the case), looks like things choke across multiple entity beans as soon as one malformed query is found. Not good. -
Getting error like "The following tags were not closed ..."
Hi,
I am getting an error like "The following tags were not closed <Main Report Name>. Error processing resource 'http://abc.cdf.bnm/OA_CGI/FNDWRR.e..."
Issue is , TAG is breaking with main report name.
Any suggestions would be appreciated.
Edited by: user12086550 on May 10, 2010 5:33 AMI'm having the same problem, but how did you resolved it??
my sub query is running good in toad. this is my xml
<?xml version="1.0" encoding="UTF-8"?>
<dataTemplate name="Asset_Loc_Change" description="Change_in_Asset_Location_and_Account" version="1.0">
<properties>
<property name="xml_tag_class" value="upper"/>
<property name="include_parameters" value="true"/>
</properties>
<parameters>
<parameter name="P_START_DATE" dataType="varchar2"></parameter>
<parameter name="P_END_DATE" dataType="varchar2"></parameter>
<parameter name="P_BOOK_NAME" dataType="varchar2"></parameter>
</parameters>
<lexicals>
</lexicals>
<dataQuery>
<sqlStatement name="LOC_DETAIL">
<![CDATA[
select
ASSET_NUMBER,DESCRIPTION,ASSET_CATEGORY,trunc(MAX(DATE_CHANGED)) DATE_CHANGED,
MAX(OLD_ACCOUNT) OLD_ACCOUNT,Max(NEW_ACCOUNT) NEW_ACCOUNT,Max(OLD_LOCATION) OLD_LOCATION,Max(NEW_LOCATION) NEW_LOCATION
from(
select distinct
fad.asset_number,
fad.ATTRIBUTE_CATEGORY_CODE ASSET_CATEGORY,
fad.description DESCRIPTION,
max(fdh.DATE_EFFECTIVE) DATE_CHANGED,
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8) OLD_ACCOUNT,
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8, NULL) NEW_ACCOUNT,
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1) OLD_LOCATION,
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1, NULL) NEW_LOCATION
from
fa_distribution_history fdh,
fa_locations fal,
FA_CATEGORIES CAT,
fa_additions fad,
gl_code_combinations gcc,
fa_books fb
where
1=1
and fdh.DATE_EFFECTIVE between to_char(trunc(:P_START_DATE)) and to_char(trunc(:P_END_DATE))
and fal.location_id = fdh.location_id
and fad.asset_id = fdh.asset_id
and fdh.code_combination_id = gcc.code_combination_id
and fb.book_type_code = fdh.book_type_code
and fb.book_type_code = to_char(:P_BOOK_NAME)
and fb.asset_id = fdh.asset_id
Group by
fad.asset_number,
fad.ATTRIBUTE_CATEGORY_CODE,
fad.description
,NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8),
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), gcc.segment1||'.'||gcc.segment2||'.'||gcc.segment3||'.'||gcc.segment4||'.'||gcc.segment5||'.'||gcc.segment6||'.'||gcc.segment7||'.'||gcc.segment8, NULL),
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), NULL, fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1),
NVL2(to_char(fdh.TRANSACTION_HEADER_ID_OUT), fal.segment4||'-'||fal.segment3||'-'||fal.segment2||','||fal.segment1, NULL)
GROUP BY
ASSET_NUMBER,ASSET_CATEGORY,DESCRIPTION;
]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_ASSET_LOC" source="LOC_DETAIL">
<element name="ASSET_NUMBER" value="ASSET_NUMBER"/>
<element name="DESCRIPTION" value="DESCRIPTION"/>
<element name="ASSET_CATEGORY" value="ASSET_CATEGORY"/>
<element name="DATE_CHANGED" value="DATE_CHANGED"/>
<element name="OLD_ACCOUNT" value="OLD_ACCOUNT"/>
<element name="NEW_ACCOUNT" value="NEW_ACCOUNT"/>
<element name="OLD_LOCATION" value="OLD_LOCATION"/>
<element name="NEW_LOCATION" value="NEW_LOCATION"/>
</group>
</dataStructure>
</dataTemplate> -
Hi,
Two month before, We have deployed Lync 13 set up with lync monitoring and archiving service enabled. After configuring we have the Lync monitoring and archiving services are working fine... few weeks back I have changed the Admin Password
of the Lync Setup. After that Lync Monitoring and Archiving services are not working.
when I try open Lync monitoring service from web UI,
http://localhost/ReportServer_LyncMonitoring/
Web UI is opening but Reports home page is not Accessible , Getting error Like
"An error has occurred during report processing. (rsProcessingAborted)
Cannot impersonate user for data source 'CDRDB'. (rsErrorImpersonatingUser)
Log on failed. Ensure the user name and password are correct. (rsLogonFailed)
The user name or password is incorrect"
Please help me to trouble shoot this problem.
Thanks,
Rajarajan.DHi Rajarajan.D
You probably need to update the password against the CDRDB datasource in SSRS Report manager, take a look at this article: http://lyncme.co.uk/microsoft-lync-server-2013/cannot-impersonate-user-for-data-source-cdrdb-rserrorimpersonatinguser-error/
If this helped you please click "Vote As Helpful" if it answered your question please click "Mark As Answer"
Georg Thomas | Lync MVP
Blog www.lynced.com.au | Twitter
@georgathomas
Lync Edge Port Check (Beta)
This forum post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Hi All,
I applied SQL server 2008 R2 SP3 recently but report builder doesn't work since then
When click on report builder gives error like 'Application validation did not succeed. Unable to continue.
and when I try to see details the error summary like following:
+File, Microsfot.ReportingServices.ComponentLibrary.Controls.dll, has a different computed hash than specified in manifest.
this is urgent.
Please reply me asap.
thanks a lot in advance.
Regards,
Nik
Regards, NamanHi nikp11,
According to your description, you recently updated SQL Server 2008 R2 to SP3, Report Builder doesn’t work since then the error occurs: "Application validation did not succeed. Unable to continue".
This is an known issue in SSRS 2008 R2 SP3 that Microsoft has published an article addressing this issue. It is not planning to release a fix for this issue. But we could implement one of the following workarounds:
Install and run Report Builder 3.0 of SQL Server 2008 R2 RTM.
Install and run Report Builder of SQL Server 2014.
Uninstall Service Pack 3 then uninstall Service Pack 2 and then reinstall Service Pack 3.
Reference:
Report Builder of SQL Server 2008 R2 Service Pack 3 does not launch
Thank you for your understanding.
Best Regards,
Wendy Fu -
My project is not running in ios 7.1 simulator i'm getting error like "iOS Simulator failed to install the application". Please suggest a solution for it.
We aren't Apple, just users like you. Have you tried a reset? Hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)
-
I am getting error like "nca_connect_server: cannot communucate to host "
I am getting error like "nca_connect_server: cannot communucate to host " while replaying my script through Loadrunner 9.1
virtual User Script started
Starting action vuser_init.
vuser_init.c(12): nca_set_connect_opt("SCALE_INFO")
vuser_init.c(16): Error: nca_connect_server: cannot communicate with host
PLease give me some solutions.
you can post me in my email id: [email protected]Hi,
Please see if (Note: 376631.1 - Forms Server Loadbalancing Using Metrics Server Client Not Working with Mercury Loadrunner) helps.
Regards,
Hussein -
Am trying to upgrade iPad 2 to 6.1.2 and it shows error like "Unable to verify Update" you are no longer connected to the internet. But am connect to my wi-fi. Can somebody throw some light on this.
============================================================
Throws error saying
"Unable to Verify Update"
iOS 6.1.2 failed verification because you are no longer connected to the internet
============================================================
Can anybody please respondTry this and see if it resolves the issue.
Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
Then try again. -
Hi all
when i run yaourt to install any things :
package-query: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory
why?
what can i do?
I'm very newbie so help me with easy commands!
thankstry to reinstall yahourt :
https://wiki.archlinux.org/index.php/Yaourt
Maybe you are looking for
-
I've created a custom inline component to fit inside mx:List in my mxml. I'm using skinned button controls in the component, and therefore, want to turn off the selection color effects of the surrounding list control. Can anyone tell me how to do thi
-
http://www.talkitup4free.com/user_upload.php i got this coding from about.com, and tried using it. it is not working. i triend uploading a file. it seemed like it took it. but the id of the file is not increasing like it should be when i upload one f
-
How can i give two tcode in same program
Hi all, How can I give two tcode to the same program in which two conditions call in that two t codes how can I do so please help me for that. Ketan ABAP consultant
-
How do I get rid of the gap?
After draging the end of a music line to shorten it to the end of the movie, I have 2 minutes at the end with nothing in it, blank. How do I get red of the gap? Thank you, Woody
-
Messages crashes when I attempt to sign in to iMessage
When I open the Messages app, I am greeted by a window that prompts me to sign into my iMessage account. When I type in my password and click Sign In, nothing happens the first time, then the second or third time I click sign in, the app crashes. He