Vertical output of a result?
I need only one record from table and when i get report i am getting results from top to bottom in tabular form, how can i get these results form left to right.
Thanks in advance
Maz
Hello,
You can change the Repeating frame "print direction" and set it to across - Down :
http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_print_direction.htm
Regards
Similar Messages
-
How to output a query results into a text file
How to output a query results into a text file instead of outputing it to the screen..
is there a way for us to write a SQL query which specifies to output the query results to a text file.
Pls let me know how to do it
Thanking u in advance
regards
MuralyMuraly,
If you are using SQL*Plus 8.1.6 or later, you can also spool output to a file in HTML format, eg
SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON
SPOOL c:\temp\report.html
SELECT DEPARTMENT_NAME, CITY
FROM EMP_DETAILS_VIEW
WHERE SALARY>12000;
SPOOL OFF
SET MARKUP HTML ENTMAP OFF
In iSQL*Plus 9.0.1 (the browser-based interface to SQL*Plus) onwards, you can also send the HTML output to a new web browser window, or an html file -- much easier than the command line method.
Alison -
Trouble outputting all query results
For some reason this code doesn`t output all the results only
the first one. How can I can it working I did try a way that output
all the results the same amount of times as there are Referer
entries in the db which is obviously not what I want. What is the
way to do thisso that it is cfoutput right? Thank you very much
<cfquery name="qrysales">
SELECT Referer
FROM clientinfo
</cfquery>
<cfoutput><cfif len(qrysales.Referer)>
<cfif find("?", qrysales.Referer)>
<cfset paramList = "q,p,terms,search,query,qkw">
<cfset strStart = find("?", qrysales.Referer)>
<cfset referer_queryString =
right(Referer,len(qrysales.Referer)-strStart)>
<cfset referer_url =
left(qrysales.Referer,(strStart-1))>
<cfloop list="#referer_queryString#" delimiters="&"
index="i">
<cfif listfind(paramList,listfirst(i,"="))>
<cfset variables.searchPhrase = listlast(i,"=")>
</cfif>
</cfloop>
</cfif>
</cfif>
<cfif isdefined("variables.searchPhrase")>
<cfoutput>#variables.searchPhrase#</cfoutput>
</cfif>
</cfoutput>The code works fine using the querynew values. When I use the
db cfquery then I get the results output over and over again. Why
is that?! Thanks
<!---
<cfquery name="qrysales">
SELECT Referer
FROM clientinfo
</cfquery>--->
<h3>QueryNew Example</h3>
<cfset qrysales = QueryNew("referer")>
<!--- make some rows in the query --->
<cfset newRow = QueryAddRow(qrysales, 4)>
<!--- set the cells in the query --->
<cfset temp = QuerySetCell(qrysales, "referer", "
http://search.live.com/results.aspx?q=environment+property+study&FORM=SSRE2
", 1)>
<cfset temp = QuerySetCell(qrysales, "referer", "
http://search.live.com/results.aspx?q=healthcare&mrt=en-us&FORM=LIVSOP",
2)>
<cfset temp = QuerySetCell(qrysales, "referer", "
http://www.google.co.uk/search?q=grande+rio&sourceid=navclient-ff&ie=UTF-8&rlz=1B2GGFB_enG B251",
3)>
<cfset temp = QuerySetCell(qrysales, "referer", "
http://www.google.de/search?q=Rio-Grande&ndsp=20&hl=de&ie=UTF-8&oe=ISO-8859-1&start=30&sa= N",
4)>
<cfoutput query="qrysales"><cfif len(#Referer#)>
<cfif find("?", #Referer#)>
<cfset paramList = "q,p,terms,search,query,qkw">
<cfset strStart = find("?", #Referer#)>
<cfset referer_queryString =
right(Referer,len(#Referer#)-strStart)>
<cfset referer_url = left(#Referer#,(strStart-1))>
<cfloop list="#referer_queryString#" delimiters="&"
index="i">
<cfif listfind(paramList,listfirst(i,"="))>
<cfset variables.searchPhrase = listlast(i,"=")>
</cfif>
</cfloop>
</cfif>
</cfif>
<cfif isdefined("variables.searchPhrase")>
#variables.searchPhrase#
</cfif>
</cfoutput> -
Can anyone please give me a bit of direction on how best output a vertical display using a mac mini on the a highdef 42" plasma screen?
I'm trying to use this for digital signage and information/direction you can give me would be greatly appreciated. Thanks!I'm assuming you already have the plasma hooked up and running in landscape mode. In that case, go into Display Preferences and you should find an option to rotate the screen. If that option is unavailable, consider installing the ATI driver available for the Mac (original mini; not Intel mini) and that for sure will have a rotate option.
https://support.ati.com/ics/support/default.asp?deptID=894&task=knowledge&folder ID=299 -
Dear Guru:
I have run sql via the step like this:
c:sql>@parameter_check.sql
but at the command prompt the output display very fast and overwrite .
how to output the result to another file to display output again.
Thanks in advance.Hi;
Answer is:
spool log file
Regard
Helios -
Conversation Vertical not pulling any results from My Sites
My conversation vertical is not pulling any results from My Sites newsfeed posts
('Nothing here matches your search'). It is however pulling discussion list items from team sites. Additionally people vertical works as it should (I can search people and user profile metadata and get the proper results).
I have:
-UPS with search service account as
an administrator with "retrieve people data for search crawlers"
-Content source with sps3://ourportalurl
-Crawl rule specifying My Sites URL
-out of the box Conversation result source
Thank you for any tips.Hi mmlmiller,
I tried and it could work in my environment.
Please add the web application URL (also make sure your search service account have read permission on this web application via ) which hosts the MySite in Search Service application Content Source, then start a full crawl and
test again.
https://technet.microsoft.com/en-us/library/dn186229.aspx
Thanks
Daniel Yang
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Direct the output of query results to a table
Hi,
I would like to know as how to transfer the results of a query
to a table.
eg:
Select * from employee into <Tmp_table>
Hence I would have a copy of employee table in the newly created
Tmp_table.
Thanks in advance
AzeezOracle does this so well as:
create table <Tmp_table> as select * from employee
Hopefully I understood your question correctly. -
Output of query results to users in AIX menu
We have users logging into AIX. Upon login they see menu options 1-xx.
We would like a menu option to query the database and display the results on the user's screen.
Thanks,
SairaOracle does this so well as:
create table <Tmp_table> as select * from employee
Hopefully I understood your question correctly. -
Hi guys.
I have a question and do not know if you can
help me.
I do not know much about Powershell,
but I created a script that disables,
moves and changes the description of dismissed
enterprise users through the registration number
(POBOX in my case).
The question is would you like to generate a log
each time this script was executed,
stating whether or not the actions were
performed successfully.
Tested
with some examples I found on Technet
but did not work.
Does anyone havea hint howcan I includethis functionalityin my script?
$csvFile = ".\list.csv"
$disabledUsersOU = "<OU DESTINATION>"
Import-Csv $csvFile | ForEach {
$f = $_.POBox;
Get-ADUser -Filter {POBox -eq $f} | Disable-ADAccount
Get-ADUser -Filter {POBox -eq $f} | Set-ADUser -Description "Disable User Script v4"
Get-ADUser -Filter {POBox -eq $f} | Move-ADObject -TargetPath $disabledUsersOU
$user = Get-ADUser -Filter {POBox -eq $f} -Properties MemberOf
foreach ($group in ($user | Select-Object -ExpandProperty MemberOf))
Remove-ADGroupMember -Identity $group -Members $user -Confirm:$false
Thanks a lot.
David Soares MCTS:MBS - MCTS - MCITPYou could try something like this:
$csvFile = ".\list.csv"
$disabledUsersOU = "<OU DESTINATION>"
$Results = Import-Csv $csvFile | ForEach {
$f = $_.POBox;
Get-ADUser -Filter {POBox -eq $f} | Disable-ADAccount
Get-ADUser -Filter {POBox -eq $f} | Set-ADUser -Description "Disable User Script v4"
Get-ADUser -Filter {POBox -eq $f} | Move-ADObject -TargetPath $disabledUsersOU
$user = Get-ADUser -Filter {POBox -eq $f} -Properties MemberOf,Description,Enabled
foreach ($group in ($user | Select-Object -ExpandProperty MemberOf))
Remove-ADGroupMember -Identity $group -Members $user -Confirm:$false
$user = Get-ADUser $user -properties MemberOf,POBox,Description
New-Object PSObject -property @{User=$user.samaccountname;POBox=$user.POBox;Description=$user.Description;MemberOf=(($user | select -expand MemberOf) -join ",");Enabled=$user.Enabled;DN=$user.DistinguishedName}
$Results | Select User,POBox,Description,MemberOf,Enabled | Export-CSV ".\results.csv" -NoType
All I really added was to create New-Object for each user and each one gets included in $Results, which gets piped to a csv file. This way you can see what may or may not have succeeded. The alternative is to evaluate each of the values and compare
it to what you expect - if any of them are not what you would expect, then User = fail and instead of the new-object line and having all of the output go to $Results you could do:
Out-File ".\results.log" -InputObject "$($User.sAMAccountName) = FAIL" -append
(or PASS, or SUCCESS, or whatever works). The reason I provided the approach above is that you have a complete picture of the results.
The select in the last line orders the columns in the CSV, otherwise Powershell chooses the order and it isn't usually what you would like.
I hope this post has helped! -
Query output similar to sql plus results
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
Edited by: Claudio Miranda on Nov 10, 2009 11:49 AM
Edited by: Claudio Miranda on Nov 10, 2009 11:51 AMClaudio Miranda wrote:
Is it possible to configure SQLDeveloper to output the query result similar to sql plus ?
I want to print the field names of the sql input, something as:
OWD_ID seconds policies/s COUNT(OWD_ID) MIN(OWE_PRC_DT) MAX(OWE_PRC_DT)
5174 872 17 14892 06/11/2009 12:53:31 06/11/2009 13:08:03 Thanks
Claudio
As far as I know, no :( -
How to reference the output of a repeat item action in relation to the repeated inputs?
For example; I have 3 actions:
Action 1: output produces 6 entries in a list (with unique IDs)
Action 2: repeats over action 1's output, produces a list of 'results' for each as an output list of 6 entries.
I now want to use Action 3 to update the items using their ID output from Action1 with the relevant result from Action2.
In psuedocode; I'd do something like this to set the 6 results iteratively : MyItems( action1.outputs[x].id ) . results = Action2.outputs[x]
I'm unsure of the syntax in Logic Apps to achieve this, any help appreciated!
Cheers!Currently there is no build in solution to support such a scenario. You would need to set up an ApiApp that applies the assignment and returns the new object. In order to access the corresponding outputs of action1 and action2 you can repeat over the range
of indices -- that is, assuming you don't know then numbers of entries in advance, let action3 (that consumes the new custom ApiApp) repeat over
@range(0, length(outputs('action1').repeatItems))
you can then pass the data as inputs to action3 using
@outputs('action1').repeatItems[repeatItem()]
@outputs('action2').repeatItems[repeatItem()]
Hope this helps -
Report select options similar to Query output options : Urgent !!!!!
Hi All,
I have developed a custom report . The output options of this report needs to be included in Selection screen like in SQ01 queries, there should be option to output the report results in different formats like List Viewer, ABAP List, Spread Sheet etc.,.
If some variant is selected then user will select whatever the format he want .
the output should display in that format .
How I can acomodate all these options to output a report .
How can I do this ..Pls help me its Urgent !!!!
Points for Sure !!!
Regards,
VarmaHi,
Try this code,
at user-command.
case sy-ucomm.
when 'disp'.
write:....... "abap list
when 'buton1'
call function 'reuse_alv_list_display'.
endcase.
i hope it gives ur answer
Reward if it helps. -
How to allow multiple output parameters in a user-defined service operation???
I have creating a self-defined service operation “LDAPAddUser” to connect to LDAP server to create user accounts. I want to get 2 output parameters after executing the operation. One is the result (Boolean data type) and one is the error message (String data type). However, since Java only support one return value in a method, it seems that only one output parameter can be returned. May I have the suggestion so that multiple parameters can be supported in this case? Here is the extracted code
In Java program,
public Boolean addUser(String url, String aName)
In file "component.xml",
<operation name="addUser" method="addUser" orchestrateable="true" anonymous-access="true">
<hint>Add a new user</hint>
<input-parameter name="url" type="java.lang.String" required="true" title="LDAP URL">
</input-parameter>
<input-parameter name="aName" type="java.lang.String" required="true" title="Admin Login Name">
</input-parameter>
<output-parameter name="Result" title="Result" type="java.lang.Boolean">
</output-parameter>
Besides the boolean return value, I want to get another return value (string data type). Any suggestion ?I've returned multiple values to LiveCycle by using a complex object as an intermediatory.
For example if I need to return two strings (firstName and lastName), I'll first build a single class (name) with two string attributes (private String firstName; private String LastName) and add getters and setters to my "name" class for each. My service class method will return an object of type "name".
for example public name mymethod(String GUID, String username, String password).......
Then in the component.xml you can return the two strings as long as you use the binding type "Bean":
<output-parameter name="firstName" title="First Name" binding-type="Bean" property="firstName">
</output-parameter>
<output-parameter name="lastName" title="Last Name" binding-type="Bean" property="lastName">
</output-parameter> -
How to do pivoting on part of an SQL output row in 10g
Hi,
I'm using Oracle 10.1.0.5.0.
I would like to know what the general decode is for pivoting in 10g. I need to display PAGE_DISPLAY_NAME, ITEM_DISPLAY_NAME, ITEM_TYPE_DISPLAY_NAME essentially once and then display ATTRIBUTE_DISPLAY_NAME and ITEM_ATTRIBUTE_VALUE as a separate column for each:
So my query starts me with the following output.
PAGE_DISPLAY_NAME ITEM_DISPLAY_NAME ITEM_TYPE_DISPLAY_NAME ATTRIBUTE_DISPLAY_NAME ITEM_ATTRIBUTE_VALUE
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Benefit 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Accounting 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Consulting Services 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Customer Data Management 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Facilities 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Finance 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: HR 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: IT 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: International 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Inventory Control 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Legal 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Marketing 0
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Sales 1
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Business Function: Sales Operations 1I'd like to show the following:
PAGE_DISPLAY_NAME ITEM_DISPLAY_NAME ITEM_TYPE_DISPLAY_NAME decode(...), decode(...), ..... decode(etc...
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record Benefit Business Function: Accounting
Content Rpt-Yearly-EMC Transactions-2007 RIKR Content Record 0 0 What's the general SQL for doing this type of thing?
For the record, here's the initial SQL:
select p.DISPLAY_NAME PAGE_DISPLAY_NAME,
i.DISPLAY_NAME ITEM_DISPLAY_NAME,
it.DISPLAY_NAME ITEM_TYPE_DISPLAY_NAME,
attr.DISPLAY_NAME ATTRIBUTE_DISPLAY_NAME,
ia.VALUE ITEM_ATTRIBUTE_VALUE
from
wwsbr_item_attributes ia,
wwsbr_attributes attr,
wwsbr_all_items i,
wwsbr_item_types it,
wwsbr_all_folders p
where
ia.attribute_id = attr.id
and ia.attribute_caid = attr.CAID
and ia.item_masterid = i.id
and ia.item_caid = i.caid
and i.subtype = it.id
and i.subtype_caid = it.caid
and i.folder_id = p.id
and i.active = 1
and i.visible = 1
and i.is_current_version = 1
and upper(it.DISPLAY_NAME) like '%RIKR%'
and substr(attr.DISPLAY_NAME,1,5) <> '-----'
order by i.DISPLAY_NAME, attr.DISPLAY_NAME;Hi,
There are a few errors in the INSERT statements, but it looks like the ones that work provide a good enough sample.
In your sample data,
attribute_display_name = 'Benefit' only when item_type_display_name LIKE '%RIKR%', and
attribute_display_name = 'Billing & Collections' only when item_type_display_name LIKE '%OMKR%'
and so on, for the other values. In other words, just by looking at attribute_display_name , once could predict whether item_type_display_name was LIKE '%RIKR%' or '%OMKR%'.
If that's alwsays the case, then you can say:
SELECT page_display_name
, item_display_name
, item_type_display_name
, MAX (DECODE ( attribute_display_name
, 'Benefit' , item_attribute_value
, 'Billing & Collections' , item_attribute_value
) AS p1
, MAX (DECODE ( attribute_display_name
, 'Business Function: Accounting' , item_attribute_value
, 'Change Description' , item_attribute_value
) AS p2
, MAX (DECODE ( attribute_display_name
, 'Business Function: Consulting Services' , item_attribute_value
, 'Deal Type: Counrty Federal' , item_attribute_value
) AS p3
, MAX (DECODE ( attribute_display_name
, 'Deal Type: Counrty International Order' , item_attribute_value
) AS p4
FROM taxonomy
GROUP BY page_display_name
, item_display_name
, item_type_display_name
ORDER BY page_display_name
, item_display_name
, item_type_display_name
;This produces generically-named columns, 'p1', 'p2', ...:
ITEM_
PAGE_ ITEM_ TYPE_
DISPLAY_ DISPLAY_ DISPLAY_
NAME NAME NAME P1 P2 P3 P4
Archive Rpt-AR RIKR Content Record 1 0
Content Rpt-Booking RIKR Content Record 1 0
Documents Calc-Discount OMKR Document 0 0 0
Documents Calc-Early OMKR Document 0 0 0I shortened item_display_name to make the output more readable.
If you add a WHERE clause like
WHERE item_type_display_name LIKE '%RIKR%'then, of course, you would only get the first two rows of output from the result set above, but you would get all the same columns, including the p4 column that will necessarily be NULL.
If my earlier assumption was wrong (for example, if attribute_display_name can 'Benefit' even when item_type_display_name is NOT LIKE '%RIKR%', but, when that happens, you want to ignore it), then change the pivot columns like this:
, MAX ( CASE
WHEN ( item_type_display_name LIKE '%RIKR%'
AND attribute_display_name = 'Benefit'
OR ( item_type_display_name LIKE '%OMKR%'
AND attribute_display_name = 'Billing & Collections'
THEN item_attribute_value
END
) AS p1
, MAX ( CASE
WHEN ( item_type_display_name LIKE '%RIKR%'
AND attribute_display_name = 'Business Function: Accounting'
OR ( item_type_display_name LIKE '%OMKR%'
AND attribute_display_name = 'Change Description'
THEN item_attribute_value
END
) AS p2
, MAX ( CASE
WHEN ( item_type_display_name LIKE '%RIKR%'
AND attribute_display_name = 'Business Function: Consulting Services'
OR ( item_type_display_name LIKE '%OMKR%'
AND attribute_display_name = 'Deal Type: Counrty Federal'
THEN item_attribute_value
END
) AS p3
, MAX ( CASE
WHEN ( item_type_display_name LIKE '%OMKR%'
AND attribute_display_name = 'Deal Type: Counrty International Order'
THEN item_attribute_value
END
) AS p4For the sample data given, this produces the same output as above.
All this assumes that the conditions
item_type_display_name LIKE '%RIKR%' and
item_type_display_name LIKE '%OMKR%' are mutualyy exclusive; that is, you never have item_type_display like 'RIKR Content Record/OMKR Document'.
If you do have values like that, then you'll need separate columns for each of the possible values of attribute_display_name. Given your sample data, that means 7 pivoted columns. Depending on your WHERE clause and your data, some of those columns might by NULL for all rows. As you suggested, you coul;d use the anlaytic ROW_NUMBER function to number the rows that actually occurred in the query. You would still have 7 pivoted columns, but the ones that were not always NULL would appear on the left, where they were easier to read.
The number of columns, and their aliases, must be hard-coded into the query. If you want something that has column aliases like BENEFIT instead of P1, or only has 4 piovted columns when you only need 4, then you have to use dynamic SQL.
You can fake column headings by doing a separate query, which includes some of the same conditions as the main query, figures out what the pivoted columns will be, and displays appropriate headings. I've done this when producing csv files, where the heading only had to appear once, at the very beginning. Getting such a heading to appear after, say, every 50 rows of output is much more complicated.
You can fake the number of columns by using string aggregation to put all the pivoted data into one humongeous VARCHAR2 column, concatenating spaces so that it looks like 3, or 4, or however many columns. -
Logical OR: Result in Amount
Hello experts,
I have 2(AMT1 & AMT2) amount fields.
only one AMT occurs for product type.
so I have created CKF: AMT1 OR AMT2.
Note:used Logical OR
in output i see result as 1.
i need to see the amount.
Regards,
KV
Edited by: K V on Feb 23, 2009 3:07 PMHi,
Complete Scenario:
Price with Update Type(SE1000) + Price with Update Type(SE3010)
or
Price with Update Type(SE5000) + Price with Update Type(SE3010)
so I have created RKF: RKF1--> Price and Update Type SE1000
RKF2--> Price and Update Type SE3010
RKF3---> Price and Update Type SE5000
CKF1: RKF1+RKF2
CKF2: RKF2+RKF3
finally created CKF11 : CKF1 OR CKF2
output is displayed as 1.... it should display the amount.
Maybe you are looking for
-
Failed to install Creative Cloud desktop error code 1 Windows 8.1
I just recently tried to begin a trial of creative cloud in order to get access to photoshop. I really need photoshop for my school because of how powerful it is and the tools is offers. A couple weeks ago I tried to download and install creative clo
-
Can Time Machine backup USB Drive connected to Airport Extreme Base Station
I need a new N based wireless router. I would prefer to get just the $179 Base Station and not the $299 Time Capsule. I already have a nice external USB 500GB drive that I would connect to the AEBS. So, once I have this new wireless router/base stati
-
Syncing my iPhone 3gs to my new HP laptop
I recently got a new laptop which is an HP, and I didn't ever try to sync my iPhone 3GS to it because I thought the empty library on the computer would overide my library and erase my phone's data. I was able to jump the music from my old laptop onto
-
Mail says its sending double emails
When I send a single email in the apple mail program, the progress report says it's sending two emails. When receiving emails it also exaggerates the number of emails that it is downloading from the server, e.g. it will say it's receiving four email
-
We have the following problemswith a PC Installation:Processor: Intel Pentium 4 - 1400 MhzPlatform: Windows 2000 prof. SP1Software: JDK1.2.21. Problem - Weblogic---------------------- Software: weblogic 5.1- At the end of the installation, the dialog