Displays two values in the column with the concatenation of good
I have a query Select col1 | ' >' || col2 from table1.For example: the table below has the records.
Col1 Col2
Orange color
red color
White color
Yellow color
Result of: existing query
Orange > color
Red > color
White > color
Yellow > color
But I want to display two columns in the order appropriate as the below one.
Veuileez note that all the the first character of the col2 must start the position of sampe in a row.
Orange > > color
Red > > > > color
White > > > color
Yellow > > > color
Hello
Knowing the value that should be completed when running...
SQL> with tab as
2 (select 'Orange' Col1, 'color' Col2 from dual union all
3 select 'red' , 'color' from dual union all
4 select 'White' , 'color' from dual union all
5 select 'Yellow' , 'color' from dual)
6 Select RPAD(col1,(select max(length(col1)) +1
7 from tab),chr(32))||chr(9) ||col2 data
8 from tab;
DATA
--------------------------------------------------------------
Orange color
red color
White color
Yellow color
Twinkle
Tags: Database
Similar Questions
-
How to display Quick values in the story
With the help of 11.1.1.6.2
In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.
Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.
The analysis of the target has two filters: Division is invited and the market is invited.
So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.
Sorry for the long explanation, but I hope it makes sense.
Thanks for any help or suggestion.
BradTry something using the Div tag
for ex:
< div id = filterValues > @{WeekBetween} {Default Value} < / div >
< script >
var i = document.getElementById('filterValues').innerHTML;
document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
< /script >If brand pls help
-
I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?
Hi sindres79946597,
Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.
Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.
Kind regards
Nicos -
Browser problem to display a value in the field "display only".
I'm trying to display a value in the "Display" section only when AJAX select list is changed. This works fine in IE but not in Firefox. I created the test below page on the site of the APEX. Any ideas are appreciated.
http://Apex.Oracle.com/pls/OTN/f?p=54577:1
workspace: stone
username:[email protected]
password: apex_demo
Thank you
SuryaHi Surya,
I replaced x (node) .innerText = pValue; by $s (textNode, pValue); and it seems to work.
Kind regards
Jonathan -
Display a value in the column only if the number is greater than 1
I need to return a value in the only if column the the count is greater than 1 for the same column.
Example table:
FOOD_TYPE Agenda COST_TO_BUY SELL_PRICE Ice cream Chocolate 0.50 2.00 Ice cream Vanilla 0.50 2.00 Ice cream Strawberry 0.50 2.00 Chicken Wings 2.00 5.00 Bovine meat Steaks 8.00 15 h 00 Bovine meat Roast 10 h 00 6:00 pm In this example, I want to choose the POINT of FOOD_TYPE, SUM (COST_TO_BUY) AND SUM (SELL_PRICE), but I want only to select the ITEM if there is more than 1 points in the FOOD_TYPE.
I tried all kinds of grouping and even including a case statement in select it as follows:
CASE
WHEN (COUNT (DISTINCT POINT) > 1)
THEN THE POINT
ELSE "
END
However, this is denied when I group because it forces me to use the POINT as a group and I can't use the set statement in the GROUP BY because it has an aggregate function.
Help, please!
with
power as
(select food_type 'Beef', 'Steaks' article, cost_to_buy 8.00 15.00 sell_price of all the double union)
Select 'Beef', 'Roast', 10.00, 18.00 double Union all
Select 'Chicken', 'Wings', 2.00, 5.00 double Union all
Select 'Ice Cream', 'Chocolate', 0.50, 2.00 double Union all
Select "Ice Cream", "Vanilla", 0.50, 2.00 double Union all
Select "Ice Cream", "Strawberry", 0.50, 2.00 double
)
Select food_type 'Type of food. "
cases where the head (separate) over (partition food_type) > 1 then end point "Item,"
TO_CHAR (cost_to_buy, 'fm990.00') "Purchase cost"
TO_CHAR (sell_price, 'fm990.00') 'selling price '.
food
food_type desc order
Food Type Item Purchase cost Sell Price Ice cream Chocolate 0.50 2.00 Ice cream Strawberry 0.50 2.00 Ice cream Vanilla 0.50 2.00 Chicken - 2.00 5.00 Bovine meat Roast 10 h 00 6:00 pm Bovine meat Steaks 8.00 15 h 00 Concerning
Etbin
-
How to exchange the two values in the same column by using the UPDATE?
Hi all
I have a table named TEST, and it has a column called A.
and has values as follows:
A
------
10
20
30
40
50
My question is how to move '10' instead of '20' and '20' instead of '10' in the column? This permutation is only for the first two values (10, 20)
Note: Must be only in SQL, not in PLSQL.
Any advice?
Thanks in advance?Update
test
the value a = decode(a,10,20,20,10,a);Alexander gelin
http://nimishgarg.blogspot.com/ -
How to make the sum of the two values in the text boxes?
Hi people,
Am a beginner in oracle 9i with forms 6i forms.using. I want to add two values in two text boxes and the result should be displayed in the third text box.
How to write code in when the button is pressed the trigger of a push button? pls suggest me.
Concerning
VIDSI have not problem
Better you recreate the new formBlock3
1 button
2. item1
3 item2
4 point 3.every article must be in a canvas
what button to trigger
writing and code test it again.give point 1 only
give point 2 only
Now press the button
output should on the 3rd point.Check and return back.
Iqbal
-
How to display multiple values in the Email notification?
Hi all
I have a table in my page column, when I click on apply button changes, Notification email will be sent to the user with updated information.
In the notification email, I've included the text field, date field value, everything works fine and I can get by email with the details.
under select query that returns several value.i need to include these values in the notification e-mail.
Please suggest a solution.select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID
I tried the code below, but did not get any email!
Thank youdeclare l_body_html varchar2(4000); env_list apex_application_global.vc_arr2; i number:= 1; begin For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID) LOOP env_list(i):=enrow.AA ; i := i+1; end loop; return Apex_UTIL.TABLE_TO_STRING(env_list,':'); l_body_html := '<p><font size ="3" color = BLUE> <u> New Reservation Form</u></font> <br><br> <table> <tr><td> Selected Reservation : </td><td>'||env_list(i)||'</td></tr> </table><br><br> </p>'; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;
with respect,
Robette.Your process will end with the return on line 11 statement.
I think that instead of return you want to load a local variable you put int the body of the email. That is to say. See *.
declare l_body_html varchar2(4000); env_list apex_application_global.vc_arr2; i number:= 1; ******l_asset_name_list VARCHAR2(32767);* begin For enrow in (select distinct asset.NAME AA FROM ASSET_TBL asset join ENV_ASSET_MAP ENV ON ASSET.ID = ENV.ASSET_ID AND ENV.RESV_ID = :P24_ID) LOOP env_list(i):=enrow.AA ; i := i+1; end loop; *******l_asset_name_list :=* Apex_UTIL.TABLE_TO_STRING(env_list,':'); l_body_html := '
New Reservation Form
Selected Reservation : '||*******l_asset_name_list*||'
'; apex_mail.send( p_to => '[email protected]', p_from =>'[email protected]', P_CC =>'[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); EXCEPTION WHEN OTHERS THEN l_body_html := l_body_html || '. Error Occurred while sending email='||SQLERRM; apex_mail.send( p_to => '[email protected]', p_from => '[email protected]', P_CC => '[email protected]', P_BODY => l_body_html, P_BODY_HTML => l_body_html, p_subj => 'Notification Mail!'); wwv_flow_mail.push_queue(); end;There may be other things to settle, these seem to be the main problem.
-
Right now, I look at my screen and this mozilla site occupies the right hand of 75% of the screen. On the left hand 25% of my screen, I see a part of the site of scholarship that I want to see and I can't close the window on the right side of the screen without stopping completely from Mozilla. I know this has something to do with the settings, because it happened when I was messing around with the settings but I can't reverse the trend of tha. Thank you!!!
Opening in the sidebar is the default value for the bookmarks created via a link or a button on a Web site.
You can view the properties of a bookmark using the context menu in the side bar (Ctrl + B; Command + B on Mac).
In the Bookmark Manager (Bookmarks > show all bookmarks) you can click on the button more in the lower details pane on the right.
Make sure "Load this bookmark in the sidebar" is not selected. -
Display several values on the front using the table
For example, if I enter "10" for number of datapoints, I want to see 10 hexadecimal and binary all values in a column. At present, only 1 value appears and erasing all of the previous values
Thank you!
You do not use a shift register to store the values in the table between the fo the loop iterations For.
It is a fundamental concept of LabVIEW.
I recommend you watch the LabVIEW tutorials online
LabVIEW Introduction course - 3 hours
LabVIEW Introduction course - 6 hours -
MSN displays two icons in the taskbar
Hello and sorry if my English is not so good. Upgrading to windows 7 yesterday and had just this one problem for now. When I connect to my msn he opens two windows in the taskbar. We have the msn as before and the other just my msn pic. As a result, I can't minimize it by clicking on the task bar, when I click on the window already open. And of course I constantly get confused which icon to click to view my msn. How can I make the second window disappear?
Gr_thalia,
To get Windows Live Messenger to run as it did in previous versions of Windows, try to open in Compatibility Mode:- Make sure that Windows Live Messenger is completely closed
- Go to the Windows Live Messenger executable by clicking Start > computer > Local disk (c) > Program Files > Windows Live > Messenger
- Find msnmsgr, right-click and choose Properties
- Click on the compatibility tab
- In Compatibility Mode, check the run this program in compatibility mode for: , then select Windows Vista (Service Pack 2) from the drop-down
- Click OK to close the Properties window
Hope that helps!Cody C
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
display multiple values at the completion point
All,
IAM create multiple entries for autopopulate point as shown in this jquery plugin link below but iam trying to change that, then values from the query to the table. How can I achieve even using web services apex 4.1.1 but iam trying NOT to use remote url or external file?
http://jQueryUI.com/AutoComplete/#multiple
concerning
All,
I'm still digging around and looking everywhere but this blog below how I can pass the valueset returned to my jquery as variable below.
sample:
http://ORA-00001.blogspot.com/2010/02/ref-cursor-to-JSON.html
var availableTags is ['data1', 'data2', 'data3'];.
concerning
-
How to display a value in the profile not with metadata
Hello
I want to display some as helloworld above checkin profile page. But I don't want to use any metadata for this field. Is there a way to do this.
Please make a contribution
Thanks in advance
<$setResourceInclude("std_field_group_header_show_hide","& nbsp;")$="">
$setResourceInclude("std_field_group_header_show_hide","&>
'& nbsp;' aid to the layout.
-
to display several values in the column as a simple comma separated
Hello..
My the source table structure is as
test_123
person_id varchar2,
phone_no varchar2
A unique person_id can have several phone_nos
as
person_id phone_no
123 1245
123 1246
123 1247
12460 124
124 12461
Now I want the output voltage
person_id phone_no
123 1245,1246,1247
124 12460,12461
How d she?
I want it in a single query?Many many many examples here.
http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php
-
calculations between two values of the sequential loop iterations
Hi all
I have a code that came out our power (DSP) of a FFT spectral density. An input frequency and then intervened at a value of input from the user. I would like to know the difference of the PSD between each stage of the frequency. Attached, that's what I would get. To avoid confusion, I don't want to produce a file that looks like this. I want just the column 'delta' as an indicator on the front panel, so I can control my change in PSD. I don't need the entire table, just the delta between the current iteration and the previous iteration. I tried to use a loop with shift registers, but I'm not sure where to go to from there. I thought that, since the shift registers sends the data of loop to loop, that I could output the value before it went into the next iteration, but I don't have a chance. Any help is appreciated. Unfortunately, I am unable to put the code due to the policy of the company. I know it makes things much more difficult.
Thank you.
Suggestions do not seem quite right, but I found a way to do it. Attached, is the way that I did.
Maybe you are looking for
-
How can I transfer Favorites from one computer to another without using the Sync feature?
I used the Belkin transfer cable that has not transferred the bookmarks. I can't find them on my C drive. I would like to manually transfer using a USB but impossible without locating the file with bookmarks. Firefox and his favorites are on the orig
-
Digital Camera RAW Compatibility Update 6.18
Digital Camera RAW Compatibility Update 6.18 has been installed almost every day (for the last month) since I upgraded to OS EL Capitan. Why should it be duplicated?
-
My Ipad 2 cannot be activated after update IOS 9.3
Personal Hello to apple, I use ios ipad 2 9.1 or 9.01 (I forget the details). today (22 March 2016) I'm trying to upgrade to ios 9.3 using wifi to connect. After download, install then reboot, my ipad cannot be activated. the error message: "your ipa
-
Satellite A300-M00 - how to clean?
Hello, my A300-M00 is about 2 years old and so far it has been very well. The core temperature at idle is at around 50 degrees, and whenever I do something like install a program game a game it amounts to + 70 degrees. I cleaned the fan at the bottom
-
Can not connect to hp envy m6 to the Wi - Fi connection
Hi everyone I have a laptop hp envy m6. I can't it connect to my wifi modem/router are in the same room as the laptop, but still no connection, I called Twc (ISP) and no problem on their end. & lt; BR & gt; & lt; BR & gt; The most funny thing is all