Query doesn't show up right results
Hi gurus:
I have a query that doesn't display right results, however the cube has correct information, the problem is that some key figures don't match with the information in the cube, I mean the cube is right but the query is wrong,
Any suggestion about this,
Thanks in advance,
Angel
hi,
step by step Procedure to generate reports:
1.) goto Bex
2.) Create a query with ur data target
3.) selct the keyfield and drop it at respective rows and columns.
4.) save the query and execute it,
5.) now ur report will gett generated.
then u can assaign assaign ur restricted keyfigures r calculated keyfigures.
Hope this helps,
Thanx!!!
Similar Messages
-
Yaourt doesn't show AUR searching results
yaourt doesn't show AUR searching results. When I type for instance:
$ yaourt splashy
I get:
1 archlinuxve/splashy 0.3.10-1 [installed]
A next-generation user-space boot splashing system for Linux systems
2 archlinuxve/splashy-themes 0.4-1 [installed]
Splashy Themes
google_ad_client="pub-3170555743375154";google_ad_width=468;google_ad_height=60;google_ad_format="468x60_as";google_color_border=
"ffffff";google_color_bg="ffffff";google_color_link="0771A6";google_color_url="99AACC";google_color_text="000000";//-->
</script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><div
id="sub_nav"><ul><li><a href="http://archlinux.org/mailman/listinfo/aur-general">Discussion</a></li> <li><a href="http://bugs.archlinux.org/
index.php?tasks=all&project=2">Bugs</a></li> <li><a href="packages.php">Packages</a></li> <li><a href="account.php">Accounts</a></
li> <li><a href="index.php">AUR Home</a></li></ul></div></div><div id="lang_login_sub"><span id="lang_bar"><ul><li>Lang: </
li><li><a href="/packages.php?setlang=en" title="English">EN</a></li> <li><a href="/packages.php?setlang=pl" title="Polski">PL</a></li>
<li><a href="/packages.php?setlang=it" title="Italiano">IT</a></li> <li><a href="/packages.php?setlang=ca" title="Català">CA</a></li>
<li><a href="/packages.php?setlang=pt" title="Português">PT</a></li> <li><a href="/packages.php?setlang=es" title="Español">ES</a></li>
<li><a href="/packages.php?setlang=de" title="Deutsch">DE</a></li> <li><a href="/packages.php?setlang=ru" title="Русский">RU</a></li>
<li><a href="/packages.php?setlang=fr" title="Français">FR</a></li></ul>
==> Enter n° (separated by blanks, or a range) of packages to be installed
==> ----------------------------------------------
==>
It doesn't matter what I type after the command. I always get the header of AUR site as a result. How can i solve the problem? I have already done:
yaourt -Syu
and
pacman -Sc
few times.
The problem concerns 0.9-2 and 0.9.1-1 as well.wain wrote:
ok your output is ok...
Please, try this:
wget -q "http://aur.archlinux.org/packages.php?setlang=en&do_Search=SeB=nd&L=2&C=0&PP=100&K=pacman" -O - | grep -A 2 "<a href='/packages.php?ID=" | sed -e "s/<\/span>.*$//" -e "s/^.*packages.php?ID=.*span class.*'>/aur\//" -e "s/^.*span class.*'>//" | grep -v " " | grep -v "^--"
it should be like that.
I tried that and I got:
google_ad_client="pub-3170555743375154";google_ad_width=468;google_ad_height=60;google_ad_format="468x60_as";google_color_border="ffffff";google_color_bg="ffffff";google_color_link="0771A6";google_color_url="99AACC";google_color_text="000000";//--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script></div><div id="sub_nav"><ul><li><a href="http://archlinux.org/mailman/listinfo/aur-general">Discussion</a></li> <li><a href="http://bugs.archlinux.org/index.php?tasks=all&project=2">Bugs</a></li> <li><a href="packages.php">Packages</a></li> <li><a href="account.php">Accounts</a></li> <li><a href="index.php">AUR Home</a></li></ul></div></div><div id="lang_login_sub"><span id="lang_bar"><ul><li>Lang: </li><li><a href="/packages.php?setlang=en" title="English">EN</a></li> <li><a href="/packages.php?setlang=pl" title="Polski">PL</a></li> <li><a href="/packages.php?setlang=it" title="Italiano">IT</a></li> <li><a href="/packages.php?setlang=ca" title="Català">CA</a></li> <li><a href="/packages.php?setlang=pt" title="Português">PT</a></li> <li><a href="/packages.php?setlang=es" title="Español">ES</a></li> <li><a href="/packages.php?setlang=de" title="Deutsch">DE</a></li> <li><a href="/packages.php?setlang=ru" title="Русский">RU</a></li> <li><a href="/packages.php?setlang=fr" title="Français">FR</a></li></ul>
instead of right output.
I have the same problem on my two diffrent mashines. I don't recall that I changed anything in config files. Btw, thanks for interest. -
Date query doesn't show results for today's date
Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with just one field, Date. The operator it is using is equal to a value written in the field. The problem is that when I insert a row into the table (the date is automatically set to the current date on insertion) and I look for today's date it returns nothing. However if I leave the field empty it will find me the row. I tried doing this with the timestamp option but it's not very user friendly as the user would have to type in the time the row was inserted in order to find it, or use the between operator for two fields which is something I want to avoid if at all possible
The requirement is one field query that lets the user choose a date from a calendar and shows all rows inserted on that date (even if the date is today and the row was inserted a few minutes before).
Edited by: Dino2dy on Apr 6, 2011 2:50 AMDino2dy,
My guess is that the data being stored in the DB has a time component associated with it (as it would if you were using something like SYSDATE to populate it). When you are trying to look for data with today's date, you are checking just for the date - which in Oracle is the equivalent of midnight on the start of the date. The dates don't match because the time is different.
Either store the date with no time component (use TRUNC to remove the time), use a BETWEEN comparison, or TRUNC the date when comparing.
John -
Why Data Services Validation doesn't give the right result in XML?
Hi,
I am struggling with a dataflow that contains the following:
- an Excel as source
- a validation transform that check a specific value in one of the excel columns. If the value is equal, the record goes to the pass path and if not, it goes to fail path
- a simple query on the pass path with a row_gen that selects all passed records and send it to an XML file (using XML target)
- a CSV target file on the fail path that gets the failed record from the validation
The result is unexpected: both files contain the failed records.
Now, if you modify slightly the dataflow and add another pass path to the validation, which has a CSV file as target, suddenly, the result is what you would expect:
- The XML file on the 1st pass path (with the query) now contains the successful records
- The CSV file on the 2nd pass path contains the successful records as well
- The CSV file on the fail path contains the failed records
If you create a dataflow that doesn't have an XLM file as a target, this issue doesn't seem to happen. I have made several examples with datastore and with CSV files. Somehow it seems there is something happening wrongly when the only target for a validation path (pass or fail) is an XML file.
I can send the ATL for both examples above
Could someone help me understand if I do something wrong OR if there is indeed a bug that should be addressed?
Thanks a lot!
IsabelleHi Manoj,
Thanks for quick reply!
To answer your questions:
- in the validation transform what is the value of Action on failure option - send to fail, send to pass or both ?
send to fail only
- is delete and recreate option checked for the target xml file ?
yes
- how many rows do you see in monitor log for pass and fail ?
In the 1st dataflow, the monitor show the following where the pass number is 26!
Path name State Row Count Elapsed time (Sec) Absolute time (Sec)
DFW_TransformationUsingValidation_5/SpinFormat_1 STOP 28 0.047 0.699
/DFW_TransformationUsingValidation_5/Validation STOP 28 0.000 0.699
/DFW_TransformationUsingValidation_5/Split STOP 26 0.000 0.699
-DFW_TransformationUsingValidation_5/FailValidation_TransformationUsingValidation_5.csv STOP 26 0.000 0.699
/DFW_TransformationUsingValidation_5/Row_Generation STOP 1 0.000 0.699
/DFW_TransformationUsingValidation_5/CacheSplit STOP 26 0.000 0.699
/DFW_TransformationUsingValidation_5/CacheSplitMemoryReader STOP 26 0.000 0.699
/DFW_TransformationUsingValidation_5/Validation_Pass_1 STOP 26 0.000 0.699
/DFW_TransformationUsingValidation_5/Query-Nest1: 0 STOP 1 0.047 0.699
/DFW_TransformationUsingValidation_5/Query-Nest1: 1 STOP 26 0.000 0.699
/DFW_TransformationUsingValidation_5/Query STOP 1 0.000 0.699
-DFW_TransformationUsingValidation_5/GUID::'5e0a492d-1452-4e0b-be37-758c2249b7a4' LOAD MESSAGE PassXM STOP 1 0.000 0.699
In the 2nd dataflow, just by adding another pass path filling a CSV file, the number of pass records is 2:
DFW_TransformationUsingValidation_5/SpinFormat_1 STOP 28 0.047 0.689
/DFW_TransformationUsingValidation_5/Validation STOP 28 0.000 0.689
/DFW_TransformationUsingValidation_5/Split STOP 2 0.000 0.689
-DFW_TransformationUsingValidation_5/PassValidation_TransformationUsingValidation_5.csv STOP 2 0.000 0.705
-DFW_TransformationUsingValidation_5/FailValidation_TransformationUsingValidation_5.csv STOP 26 0.000 0.705
/DFW_TransformationUsingValidation_5/Row_Generation STOP 1 0.000 0.705
/DFW_TransformationUsingValidation_5/CacheSplit STOP 2 0.000 0.705
/DFW_TransformationUsingValidation_5/CacheSplitMemoryReader STOP 2 0.000 0.705
/DFW_TransformationUsingValidation_5/Validation_Pass_1 STOP 2 0.000 0.705
/DFW_TransformationUsingValidation_5/Query-Nest1: 0 STOP 1 0.047 0.705
/DFW_TransformationUsingValidation_5/Query-Nest1: 1 STOP 2 0.000 0.705
/DFW_TransformationUsingValidation_5/Query STOP 1 0.000 0.705
-DFW_TransformationUsingValidation_5/GUID::'5e0a492d-1452-4e0b-be37-758c2249b7a4' LOAD MESSAGE PassXM STOP 1 0.000 0.705
Edited by: Isabelle Thore on Oct 8, 2010 6:53 AM
Edited by: Isabelle Thore on Oct 8, 2010 6:54 AM
Edited by: Isabelle Thore on Oct 8, 2010 6:55 AM -
One published event doesn't show the right time
Hi all,
I have a published calendar. Created localy on my MacBook.
When I go on the web page to see this calendar, very strangely one of the events shows 13:00 on the online calendar but should be at 14:00 (as created in iCal localy). All the other events are all right.
Tried to delete the event and re-create from scratch. Tried to copy/paste another event at the same time from another day. Not solved the problem. Even after republishing and reloading the web page several times.
It's very strange that one and only one event has this time bug...
It's correctly synced on MobileMe. It's only the published version that has this bug.
Any idea ?
It's annoying because it's a calendar I published for professional purposes...
Thanks for any suggestion.I've had FCP lock up on me several times. The cause seems to always be 1. That I've got a ton of unrendered stills in the timeline, 2. The project is rather large, with a lot of old sequences. FCP can only access so much ram. Stills are only virtual media clips until you render them, but FCP had to create them and hold them in a cache until you do render them. FCP remembers, IN ACTIVE RAM, every cut, transition, every sequence whether active or not, every filter used, audio levels, all the clip info itself-- and a bunch of stuff you or I will never know.
When you start reaching the limits of what FCP can handle, wonky stuff starts happening. -
My IPad doesn't show the right amount of free memory
I purchased some books from Ibook store but when tried to download I got the message not enough space. Before start downloading I had 4 GB of free memory. I erase all the books and after that the amount of memory hasn't returned to the previous level. It has happened again and after some days the issue has been solved without doing something. But now the problem insists.
iPhone, iPad, and iPod: Understanding capacity
http://support.apple.com/kb/ht1867
How much space is used by your Other? You may be able to reduce.
How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
http://tinyurl.com/85w6xwn
How to Remove “Other” Data from iPhone, iPad and iPod Touch
http://www.igeeksblog.com/how-to-remove-other-data-from-iphone/
With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6/7, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
What is “Other” and What Can I Do About It?
https://discussions.apple.com/docs/DOC-5142
iPhone or iPad Ran Out of Storage Space? Here’s How to Make Space Available Quickly
http://osxdaily.com/2012/06/02/iphone-ipad-ran-out-of-available-storage-space-ho w-to-fix-quick/
6 Tips to Free Up Tons of Storage Space on iPad, iPhone, and iPod Touch
http://osxdaily.com/2012/04/24/6-tips-free-up-storage-space-ipad-iphone-ipod-tou ch/
Also,
How to Clear Message/iMessage Cache on iPhone & iPad And Reclaim Lots of Free Space
http://www.igeeksblog.com/how-to-clear-message-imessage-cache-on-iphone-ipad/
What is Stored in iCloud and What is Not
https://sites.google.com/site/appleclubfhs/support/advice-and-articles/what-is-s tored-in-icloud
Cheers, Tom -
In Firefox the control bar is gray and the play button kind of fades into the bar. In IE, it looks like it is suppose to - dark grey/black control bar with a big blue circle (on the left) with a bright white arrow inside of it (making it obvious as to how to play the mp3).
That interface is entirely based on what plugin is being used. For IE, it looks like Windows Media Player, and in your Firefox screenshot, it looks like the QuickTime plugin is being used.
Attached is what it looks like for me (Firefox on Mac). And it looks that way in Safari as well.
As a user, you could stop Quicktime from being used for ''audio/mpeg'' files, using the instructions at https://support.mozilla.org/en-US/kb/quicktime-plugin-play-audio-and-video#w_embedded-media
As a web-developer, if you want to control the media player interface, it might be better to convert your site to HTML5, then use the <audio> tag which doesn't require any plugin. For more info, read https://developer.mozilla.org/en-US/docs/Using_HTML5_audio_and_video
You should probably ask in a web-developers forum. -
Not show the right button in input field which data type is date
My web dynpro has a input field. This input field is mapped with a context attribute which type is datum.
This field is read only. I want that this field doesn't show the right button to choose the date.
How do I solve this?
ThanksHi,
go to the context of your view,
to the attribute of your date,
and set the attribute input help mode to disabled
grtz,
Koen -
SQL Developer v2.1.0.6 Build MAIN-63.73 doesn't show query results
SQL Developer v2.1.0.6 Build MAIN-63.73 doesn't show query results for "select * from all_scheduler_jobs;" when I click on "Run Statement" icon at toolbar but when I click on "Run Script" the results appear.
Is this a bug?
In prior version this worked.This bug was fixed in SqlDev 2.1.1. You'll find this build on our homepage.
-Raghu -
My "What's New" procedure doesn't show the result Search result page
Hi,
I needed a "What's New" report for a content area. The advanced search screen has the option to query with the create date, but you can save the search with something like #sysdate-7. So I created the following procedure:
create or replace procedure whatsnew
(p_caid in number default 0
,p_folder_id in number default 1
,p_days in number default 7
) is
a_attribute_id portal30.wwsbr_type.array;
a_attribute_name portal30.wwsbr_type.array;
a_attribute_caid portal30.wwsbr_type.array;
a_attribute_data_type portal30.wwsbr_type.array;
a_attribute_operator portal30.wwsbr_type.array;
a_attribute_value portal30.wwsbr_type.array;
begin
a_attribute_id(1) := '10';
a_attribute_name(1) := 'createdate';
a_attribute_caid(1) := '0';
a_attribute_data_type(1) := 'date';
a_attribute_operator(1) := portal30.wwsbr_search_api.greater_than;
a_attribute_value(1) := to_char(sysdate-p_days);
portal30.wwsbr_search_api.submit_search
(p_search_terms => null
,p_caid => p_caid
,p_current_caid => p_caid
,p_folder_id => p_folder_id
,p_folder_caid => p_caid
,p_include_child_folders => portal30.wwsbr_search_api.yes
,p_attribute_id => a_attribute_id
,p_attribute_name => a_attribute_name
,p_attribute_caid => a_attribute_caid
,p_attribute_data_type => a_attribute_data_type
,p_attribute_operator => a_attribute_operator
,p_attribute_value => a_attribute_value
end;
Now you can call this from a dynamic page component (have it displayed as portlet), or include it as an URL item in the content area (/pls/portal30/portal30.whatsnew?p_caid=33&p_folder_id=1&p_days=7).
This work fine and show the search result. Now I've customized the Search Result Page, but it seems that wwsbr_search_api is navigating to a standard (fixed layout) search result screen (square item/folder links in stead of tabs) and not to my customized Search Result Page. If I click the submit button in the result screen then it navigates to my customized Search Result Page.
So why doesn't wwsbr_search_api navigate to the customized Search Result Page, or am I doing something wrong ?
Regards,
Willem-Pieter van der Lugt
Oracle Consulting NLHi,
I just saw topic http://technet.oracle.com:89/ubb/Forum82/HTML/000617.html with the answer pointing to bug 1869531.
regards,
Willem-Pieter van der Lugt -
How to show only the result of a query
Hi experts,
i need to show only the result of a query (hiding all the rows)
according to mathematical functions like sum, average, count ets. i need the result to be shown widhwise the query (Horizontal)
thanks a lot
NirHi
I did get exactly.....but if i m right then you can do this by selecting the keyfigure goto the calculation tab select calculate result as sum or whatever you want to use.
Regards
Lalit k Tyagi -
Function used in SQL query not showing the desired results
I have created a function that gives me the client id but when i am using the function in the query its not giving me any result i.e. 0 rows but if I execute the function sepreatly and put the result of that function in the qurey it is giving me the desired result please have a look on the following and please reply with you expert opinion:
FUNCTION CODE:
create or replace function j2
(usid in varchar2)
return varchar2
is
cidn_in varchar2(4000) := '';
ls_sep varchar2(1) := ',';
cursor predicate_cidn
is
select
logical_schema_id
from
CLIENT_REGISTRY cr,
MEMBER_ROLE_CLIENT_ASSIGNMENT mrca,
MEMBER m
where
mrca.base_client_id = cr.base_client_id and
mrca.member_id = m.member_id and
cr.schema_in_use_in = '1' and
m.active_status_id = 'A' and
upper(mrca.member_id) = upper(usid);
BEGIN
for GET_CIDN in predicate_cidn
loop
cidn_in := cidn_in || ls_sep || '''' || GET_CIDN.logical_schema_id || '''';
end loop;
cidn_in := substr(cidn_in, 2);
cidn_in := '('||cidn_in||')';
--dbms_output.put_line(cidn_in);
return cidn_in;
END ;
SQL> select j2('qaa@adp') from dual;
J2('QAA@ADP')
('BASE18','SDK1TEST','SEETHA1CONFIG','BASE09','KAREN2','SIVACONFIG','BASE19','SD
K1CTEST','VASU1','KAREN5','EVENTS1CTEST','SDK1','ADA1CONFIG','BASE10','VRB1CONFI
G','CRU2CONFIG','BASE20','SIVATEST','PCOMCONFIG','KP1CONFIG','KAREN4CONFIG','EVE
NTS1TEST','SUZ3CONFIG','DONG2CONFIG','ED2CONFIG','SIVACTEST','APDCONFIG','EVENTS
1CONFIG','ESSCONFIG','SIVA','SDK2CONFIG','ED3CONFIG','RAJ4CONFIG','CBRCONFIG','N
AMRATA2CONFIG','EMIL1','NAMRATA1CONFIG','SDK2CTEST','BVT2CONFIG','MURUGAN1CONFIG
','COB1CONFIG','GABY1TEST','CHR1CONFIG','ED4CONFIG','USE1CONFIG','SDK2TEST','DEM
O1CONFIG','BERNIE1CONFIG','XA1','CAR2TEST','SDK2','ED5CONFIG','PAY1TEST','PAYXCO
NFIG','KP1TEST','SEAN1CONFIG','CAR2CTEST','VASU1CONFIG','SEAN2CONFIG','KP1CTEST'
,'MAU1CONFIG','CONWCONFIG','PAN1CONFIG','MERAJ2','PRA3CONFIG','SEAN5CONFIG','KP1
','PRA4CONFIG','CAR2CONFIG','PRA2CONFIG','SEAN6CONFIG','PRA3TEST','RPT','GABY1CT
EST','SDK3CONFIG','PRA2TEST','SEAN9CONFIG','CAR2','LV1CONFIG','PRA3CTEST','DONG1
CONFIG','TE1CONFIG','MERAJ2CONFIG','VIV1CONFIG','GABY1','SEAN2','PRA2CTEST','PRA
3','RPTCONFIG','PRA4CTEST','SEAN3','MITA1CONFIG','PRA2','RPTCTEST','PCOM1CONFIG'
,'SS2CONFIG','PAY1CONFIG','SEAN7','ANNCONFIG','BASE11','BASE02','LV2CONFIG','RPT
TEST','IMPECONFIG','SUR1CONFIG','SREEK2CONFIG','BASE03','SRINU3CONFIG','BDCONFIG
','JAY1CONFIG','AMMAN1','PRA1TEST','WPGCONFIG','BASE12','MP5CONFIG','MERAJ1','SR
INU2CONFIG','XA1CONFIG','RAJ1CONFIG','WPGCTEST','BASE04','CHRIS','RAJSCONFIG','P
ANKAJ','BASE13','WPGTEST','RAJ3CONFIG','WPG','BASE14','VASU2CONFIG','SRINU1CONFI
G','BASE05','PRA4TEST','VASU1TEST','PRA5CONFIG','NISH1CONFIG','CHRISCONFIG','SDK
3TEST','RAJ3TEST','KP2CONFIG','BASE06','DEFPCONFIG','NISH2CONFIG','CHRISCTEST','
WPSCONFIG','VASU2TEST','BASE15','GABY1CONFIG','PRA5TEST','MITA2CONFIG','BASE07',
'VASU1CTEST','KP2TEST','VASU2CTEST','LAURA3CONFIG','BASE16','CHRISTEST','WPSTEST
','VASU2','KP2CTEST','EVENTS1','BASE17','RAJ2CONFIG','WPSCTEST','BASE08','SREEK1
CONFIG','ADVE','PRA4','SDK1CONFIG','KP2','KAREN1','CRU1CONFIG','WPS')
Now if i put the results (cut and paste )in the query it gives me the results
SQL> select count(*) from baseclient.address_detail where cidn in ('BASE18','SDK1TEST','SEETHA1CONFIG','BASE09','KAREN2','SIVACONFIG','BASE19','SD
2 K1CTEST','VASU1','KAREN5','EVENTS1CTEST','SDK1','ADA1CONFIG','BASE10','VRB1CONFI
3 G','CRU2CONFIG','BASE20','SIVATEST','PCOMCONFIG','KP1CONFIG','KAREN4CONFIG','EVE
4 NTS1TEST','SUZ3CONFIG','DONG2CONFIG','ED2CONFIG','SIVACTEST','APDCONFIG','EVENTS
5 1CONFIG','ESSCONFIG','SIVA','SDK2CONFIG','ED3CONFIG','RAJ4CONFIG','CBRCONFIG','N
6 AMRATA2CONFIG','EMIL1','NAMRATA1CONFIG','SDK2CTEST','BVT2CONFIG','MURUGAN1CONFIG
7 ','COB1CONFIG','GABY1TEST','CHR1CONFIG','ED4CONFIG','USE1CONFIG','SDK2TEST','DEM
O1CONFIG','BERNIE1CONFIG','XA1','CAR2TEST','SDK2','ED5CONFIG','PAY1TEST','PAYXCO
8 9 NFIG','KP1TEST','SEAN1CONFIG','CAR2CTEST','VASU1CONFIG','SEAN2CONFIG','KP1CTEST'
10 ,'MAU1CONFIG','CONWCONFIG','PAN1CONFIG','MERAJ2','PRA3CONFIG','SEAN5CONFIG','KP1
11 ','PRA4CONFIG','CAR2CONFIG','PRA2CONFIG','SEAN6CONFIG','PRA3TEST','RPT','GABY1CT
12 EST','SDK3CONFIG','PRA2TEST','SEAN9CONFIG','CAR2','LV1CONFIG','PRA3CTEST','DONG1
13 CONFIG','TE1CONFIG','MERAJ2CONFIG','VIV1CONFIG','GABY1','SEAN2','PRA2CTEST','PRA
14 3','RPTCONFIG','PRA4CTEST','SEAN3','MITA1CONFIG','PRA2','RPTCTEST','PCOM1CONFIG'
15 ,'SS2CONFIG','PAY1CONFIG','SEAN7','ANNCONFIG','BASE11','BASE02','LV2CONFIG','RPT
16 TEST','IMPECONFIG','SUR1CONFIG','SREEK2CONFIG','BASE03','SRINU3CONFIG','BDCONFIG
17 ','JAY1CONFIG','AMMAN1','PRA1TEST','WPGCONFIG','BASE12','MP5CONFIG','MERAJ1','SR
18 INU2CONFIG','XA1CONFIG','RAJ1CONFIG','WPGCTEST','BASE04','CHRIS','RAJSCONFIG','P
19 ANKAJ','BASE13','WPGTEST','RAJ3CONFIG','WPG','BASE14','VASU2CONFIG','SRINU1CONFI
20 G','BASE05','PRA4TEST','VASU1TEST','PRA5CONFIG','NISH1CONFIG','CHRISCONFIG','SDK
21 3TEST','RAJ3TEST','KP2CONFIG','BASE06','DEFPCONFIG','NISH2CONFIG','CHRISCTEST','
22 WPSCONFIG','VASU2TEST','BASE15','GABY1CONFIG','PRA5TEST','MITA2CONFIG','BASE07',
23 'VASU1CTEST','KP2TEST','VASU2CTEST','LAURA3CONFIG','BASE16','CHRISTEST','WPSTEST
24 ','VASU2','KP2CTEST','EVENTS1','BASE17','RAJ2CONFIG','WPSCTEST','BASE08','SREEK1
25 CONFIG','ADVE','PRA4','SDK1CONFIG','KP2','KAREN1','CRU1CONFIG','WPS');
COUNT(*)
228
BUT if I user the function it gives me no results
0 rows selected and its taking a loon time to reurnThis appears to be a duplicate of the question in this thread
Re: VPD issue Need Assistance ASAP
where I wrote
"Your function returns a single string that happens to have a bunch of commas and quotes in it. An IN list generally requires a list of strings, which your function doesn't return.
You could rewrite the function to be a pipelined table function and then do
select count(*)
from baseclient.address_detail
where cidn in (SELECT cidn
FROM TABLE(<<your pipelined table function>>))
However, I would expect it to be easier not to wrap all this into a function and just have your IN clause be the logic in your predicate_cidn cursor.
Justin
" -
How can I show all the results returned by a sql query?
Hi guys,
I need your help.
Let's say I have one table: TableA. Fields of TableA are aleg, anon, apes. The following sentence can return, in general, several rows: select anon from TableA where aleg = somevalue. I'd like to show the result of column anon but no luck. If I try to show the results in a TextArea and the origin is an sql query only shows the first row value. I tried Show as: show as text (based in PLSQL) and coding an anonymous plsql block as
DECLARE
v_anon TableA.anon%TYPE;
CURSOR v_cur IS
select anon from TableA where aleg = somevalue;
BEGIN
OPEN v_cur;
LOOP
FETCH v_cur INTO v_anon;
EXIT WHEN v_cur%NOTFOUND;
:FIELD_IN_FORM := v_anon;
END LOOP;
CLOSE v_cur;
END;
but in this case it's not shown any result.
So the first question is what kind of field should I use to show the result. And the second one is what can I do to being able to show all the results returned by the query (provided that is more than one single row).
regardsHi Denes,
Just starting with apex. I think I know how to show the results in a report region. I've simplified the posted question.
A more detailed question would be: Suppose you have a region where you have put several text areas to accommodate the result of a multi-column query (lets say for TableA) that only returns one row, each column value returned put in a different text area. Also you want to show the values of other fields in TableB that depends on some value just retrieved from TableA and that you want all values retrieved (from TableA and the linked TableB) to be show in the same region. Is that possible? If yes, how?
Thank you in advance -
Why this query does not show the result?
Why the query with the schema prefixed does not show the result and the query without schema display the correct results?
SQL> select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS';
select data_object_id,object_type from dba_objects where object_name='HR'.'JOBS'
ERROR at line 1:
ORA-00933: SQL command not properly ended
SQL> select data_object_id,object_type from dba_objects where object_name='HR.JOBS';
no rows selected
SQL> select data_object_id, OWNER, object_type from dba_objects where object_name='JOBS';
DATA_OBJECT_ID OWNER OBJECT_TYPE
69662 HR TABLE
OE SYNONYM
SQL> SELECT USER FROM DUAL;
USER
SYSHi,
the column object_name refers to a object_name which is 'JOBS', the column owner refers to the owner 'HR', the value isn't stored together, so you have to select the two columns. It is the same behaviour as every other table/view. Have a look at the values in the view DBA_OBJECTS.
Herald ten Dam
Superconsult.nl -
Last Result from Fulltext SQL Query Search Not Showing
I am creating a custom search results page for MOSS 2007 (using inline .aspx code - don't ask) that uses Fulltext SQL Queries. I get the results in a ResultTable (see code below) and then use a DataTable to write code to display it (I could have used
a DataGrid, I know).
The problem is that the last result is not showing. So, if it reports that there are 5 results, only 4 will show. I have verified that all 5 results do exist (using a slightly broadened query). If it reports 1 result, none exist in the DataTable that loads
the result data from the ResultTable.
FullTextSqlQuery query = new FullTextSqlQuery(site);
query.ResultTypes = ResultType.RelevantResults;
query.QueryText = qry;
query.RowLimit = 50;
query.StartRow = iPage;
try
ResultTableCollection results = query.Execute();
ResultTable resultTable = results[ResultType.RelevantResults];
DataTable table = new DataTable();
table.Load(resultTable, LoadOption.OverwriteChanges);
int n = resultTable.TotalRows;
The variable "qry" is a valid SQL Query with the relevant clauses.
I am using a foreach loop to go through "table" (a DataTable), and so I do not think that I have a "one-off error".
Any suggestions would be most welcome.So in results you have all items but when you are loading it into table (type DataTable) you are loosing one last record.
1) First you check what data you are getting in resultTable - as you are specifying RelevantResult
2) Check last index of data in ResultTable collection and try to find out the last index ResultTable, or try to find last index of data in result table
DataTable.Load method accepts parm of type IDataReader and IDatareader, there are cases it looses records if not read properly..check below links
http://stackoverflow.com/questions/8396656/why-does-my-idatareader-lose-a-row
http://msdn.microsoft.com/en-us/library/system.data.datatable.load(v=vs.110).aspx
<hr> Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL <br/> <b><a href="http://insqlserver.com">Everything about SQL Server | Experience inside SQL Server </a></b>-<a href="http://insqlserver.com">Mohammad
Nizamuddin </a>
Maybe you are looking for
-
Just subscribed to pdf to xls converter; can't get it to work
Just subscribed to pdf to xls converter but cannot use it. Just keep getting the log in page
-
I have tried mutiple times to update to the 3.1.1 os for my Gen 1 ipod touch from the 1.1.5 os but keep receiveing an err 8288 message. I paid the one time 4.99 fee to download the os from ithe itunes store but the error message persists. HELP!
-
Set global variable in FOX formula
Hi all, Does anybody know how to change the value of a global variable inside a FOX formula?. I can get its value and assign to a local variable but I would like to set the global value after reading a keyfigure and make some calculations. is it poss
-
Hey guys, Been using Premiere Pro CS5 since it came out but I've run into a problem. I purchased a Sony HVR-A1U and I'm trying to capture footage by connecting DV/HDV to 9-pin firewire and I also have a G-RAID Drive that has 9 to 9-pin firewire runn
-
How to master data conversion in ABAP/4 programming
I only know there is no special syntax to data conversion and put an "=" between destination data object and source object. But I don't know whether the conversion is legal or not. Who can help me?