DEP. and emp on the same line. pls help
I want to output in two columns with the table emp and deptCol1: DetpNo
Col2: Concatenated employee numbers separated by commas
For example
If dept contains
1 electric
2 mechanics
3 comp
Contanis table emp
John 100 1
200 Smith 2
Cobb 300 1
I need output like
Col1 Col2
1 100 300
2,200
Try this
select deptno, rtrim(xmlagg(xmlelement(e,empno||',').extract('//text()')),',')
from employee
group by deptno
/
Tags: Database
Similar Questions
-
EditField and checkboxfield on the same line
public CheckFileScreen() { vfm = new VerticalFieldManager(); left = new HorizontalFieldManager( Field.FIELD_LEFT); right = new HorizontalFieldManager( Field.FIELD_RIGHT); _Id = new EditField("Id : ", "", 6, EditField.FILTER_NUMERIC); _check = new CheckboxField("check", false); left.add(_Id); right.add(_check); vfm.add(left); vfm.add(right); add(vfm); add(new SeparatorField()); }
on my above code tries to _id and _check on the same line, but the screen has been mess up
+---------------
| ID:
| # check
+----------------
I want to create has been
+----------------------
| ID: # check
+-----------------------
could someone help me with this?
This is the first time make app with GUI
Gentlemen.
slow down, please!
Absolutely, totally useless any Manager available personalized for that! In order to organize two or more fields in a 'line', you just all of them to the same HorizontalFieldManager! The manager then places them from left to right in the order that you add them.
That said - you have a slight problem in your EditField. EditField is "width-hungry" - it consumes the entire width, it is given, do not leave anything for the rest fields. To combat that, to deceive him into thinking he's got less space. We will give him what he needs to label 6 larger figures (s '8' or '9's, not '1') and a space for the padding. We will then have something like:
_Id = new EditField("Id : ", "", 6, EditField.FILTER_NUMERIC) { protected void layout(int width, int height) { Font myFont = getFont(); int myWidth = myFont.getAdvance(getLabel()) + myFont.getAdvance("8") * 6 + myFont.getAdvance(" "); super.layout(Math.min(myWidth, width), height); } }; _check = new CheckboxField("check", false); HorizontalFieldManager hfm = new HorizontalFieldManager(); hfm.add(_Id); hfm.add(_check); add(hfm);
Enjoy!
-
left and right justify the same line of RitchTextField
Hello
How to justify to the left and to the right the same line of text...
There is no way to do currently - DrawStyle.HFULL is listed as "not yet implemented" (I wonder about this 'yet' - there is no more BB OS versions after 7.0, is there?)
If you want to achieve, you will have to be implemented by program (not too hard, but not trivial either).
-
How to better master with this model s/n, sides IN and OUT in the same line.
Hi all!
I'm just facing some old historical table where, to the transaction recorded in the same line, something like:
column name
==============
ref_no,
x_id,
product_id,
product_amt,
-* IN part
in_flag-(IN)
in_customer,
in_address,
-* PORTION
out_flag-(OUT)
out_customer,
out_address
Nice shipping biz where we can have the two sides met in the same line, they have same value for IN and OUT_flag = actual values 'IN' and 'OUT', woou!
I really expect to have this table in different model where a line is an entry, probably with PK = ref_no + in_out_flag.
But it looks like I can do anything on this design, and now I choose upong xactions request entry and EXIT, IN/OUT fixing portions on a common part with the UNION. This, the only way I can see how to solve this problem, or I'm not right? And I need to pack all in the stored procedure.
Appreciate your comments how to do this, I'm really new to Oracle, however have some exp.
And comments about these models db as well! -).
Best
TRI don't understand what problem needs to be solved.
What criteria an independent observer would conclude that a correct solution has been posted.
Published by: sb92075 on September 11, 2010 17:19
-
Region HTML - element, TextBox and Button on the same line
Hello
I have a search page:
POINT region HTML with a search box and a button (created in the section of button).
How can I align the search box and the key? (on the same line)
I see that the choice for the button to align at the top or on the button of the section. If the button is under or above the search box.
Or maybye is possible to hide the searbox and button and create a table html for alignment?
I work with Apex 3.1.2.00.02
Region: HTML
Theme: Dark blue:
Model: region of report
Thank you
RoselineRoseline,
Create a new button and select the Create button as an element and not in the position of the region.
Option buttons behave differently to the buttons of the Position of the region.
If you are wanting to use the button 'Submit' page, you need to change the button to target is a URL and add javascript:doSubmit('YOUR_REQUEST_VALUE');Gus...
AWARDS: Don't forget to mark messages USEFUL or CORRECT on the forum, not only for my answers, but for everyone!
;-) -
Difficulty accessing controls checkbox and textfield on the same line
Hello
Maybe someone can help me. I am having trouble getting a checkbox and a textfield on the same line. The new line, new field are both on 'n'. Using firebug I can see that the two elements are in the same < td > < table > tag.
Unfortunately, the box is medium by a < fieldset class = 'checkbox_group' > < / fieldset > tag. And despite the fact that I changed the width of this class so that there is enough room, the textfield object begins on a new line (inside the < td > tag < table > even).
Any suggestions?
Kind regards
MichielYou don't need to use JS to change the CSS!
If you need to change the style for this page only, then put it in the header of the page
that way if a bug will affect your JS that will defend no mater what and will be also much faster.
Best regards
Piotr -
After you select list, and button on the same line
Just a minor matter cosmetic a user has raised.
I have a couple of selection lists that I have on the same line by setting the 'start on new line' on no. Is it possible to get a button to sit on the same line (i.e. within the same line of the table or cell as Select lists)?West Indies,
When you create a button, the second page of the wizard is the option you're looking for: 'create a button displayed among the elements of this region. "
Just keep in mind that these buttons don't submit by default where as area buttons can also redirect without submitting it.
Kind regards
Danhttp://danielmcghan.us
http://sourceforge.NET/projects/tapigen -
SQL and Exchange on the same material - need help with storage!
Hi all!
I am definitely a newbie in the world of virtualization. A colleague and I have spent hours scouring the Internet and reading white papers for answers and have been unable to find exactly what it takes. So far, there has not been a lack of trying. We are a very small company with 75 employees. We have an Exchange Server and implement our first SQL Server and we want to virtualize both on hardware nine using the ESX 4.0 Essentials. I don't know, probably not the best two apps to virtualize on a single piece of hardware, but we have about 12 people, using SQL server... at least for the foreseeable
the future. I'll try to make this simple in my questioning:
(1.) what is the difference between a logical unit number, a PIN, a VMFS, a VM data store and how they relate to each other? I know what means LUNS and VMFS and I know what a brooch is a hard drive, so no links to wikis on the definition of a LUN ;-). Been there, done that. These terms seem to be used very freely in all directions and it's confusing about how they relate to storage.
(2.) we have 6 146 GB SAS drives for storage on my HP ML350G6, the config that I want to work with is the following:
2 hard drives - RAID 1 - held Exchange OS, T-logs Exchange and SQL OS (possibly install VCenter Server on that as well in another virtual machine)
4 hard drives - RAID 10 - will hold the Exchange and SQL DB database.Y at - it faults with this configuration?
(3.) if #2 above is OK, how you (and you should in our small store scenario) cover several RAID (spindle?) arrays with a virtual machine. In other words, how to you create a virtual Exchange computer and upgrade the operating system on a RAID, newspapers on the same value but different partition RAID and the Pb on a completely different RAID set?
(4.) if #2 not OK, I should just create 2 simple VM Exchange, a for SQL and worry not separate newspapers/operating systems of databases on RAID berries?
I thank you very much in advance! These forums are wonderful!
Confused in Cincinnati,
-Bryan
Thanks for your reply Wes! I have a few questions for follow-up
make sure that I understand.
Therefore a unit logic simply number a "partition" carved on a storage space (if that)
storage is a single hard drive or a RAID array)? And of course each hard
drive is a PIN, but when you take 3 discs and their RAID together.
they, in fact, become a PIN, especially when it comes
on reduncanc and no performance?
VMware "" still does not see the storage, particularly the way in which you install. ESX will simply see a drive, format it with VMFS, so you can create files of your virtual hard disk on top of that (.vmdks) and your virtual configuration (.vmx)
I'm not sure I understand the concern with VCenter Server? It can not
be on the same box as ESX running a VM couple? My opinion is that
VCenter Server would be just an another VM on this box? Maybe I need to
Read more on the VCenter Server!
vCenter may work in esx, but it is preferable to have an another box, also don't forget that vcenter has its own SQL database and needs 3 + GB of ram. In your configuration, you can do better leaving vcenter out of the picture completely.
Thanks again!
-Bryan
More like this:
RAID 1 array: LUN1-> Datastore1-> ExchangeOS.vmdk, ExchangeLogs.vmdk, SQLOS.vmdk RAID 10 Array: LUN2-> Datastore2-> ExchangeDB.vmdk, SQLDB.vmdk
-
Cannot move the element 'name.extension"in the Trash because it cannot be deleted. I restarted the finder and still got the same message. little help?
Why do you want to delete?
Where is located? (This file)
What is it?
-
How can I combine the navigation bar and the menu bar on the same line to save space?
V29 Firefox seems to be a huge not backward in customization. I need to save room for the content so already I disabled the tabs and combined in the menu bar and the navigation bar on the same line. The url space is too long anyway. Now with v29 all my customization is gone and I can't get it back. I can move me is more points on the navigation bar to combine it with the menu bar. Why this was done? It limits only my ability to customize my browser? I'm very frustrated that you had a great browser and ruined.
You should see Classic theme restaurateur, it contains many parameters. This module applies to customize Firefox 29. https://addons.Mozilla.org/en-us/Firefox/addon/classicthemerestorer/
-
The orange Firefox button and the Navigation toolbar is on the same line
Someone interfered with my Firefox settings and goofed a bit. Now the orange Firefox button and the Navigation toolbar are on the same line/line, as shown in the image below. Can you help me with the Firefox orange button at the top of the Navigation toolbar (as usually is the case)?
Thank you very much! I had this same problem. I'd rather have my tabs at the top, in line with the orange. For some reason any that an add-on reset my 'browser.tabs.drawInTitlebar' to false, which looked horrible and wasted a whole bar of space by the presence of a large space empty on the top of my screen. It fixed my problem!
-
Ipv4 and ipv6 on the same ACL line vty
Hello everyone.
I just want to confirm if I can protect a router (telnet and ssh) put 2 ACL (an IPv4 and other IPv6) on the same line vty. Something like:
line vty 0 4 access-class hostsIPv4 in ipv6 access-class hostsIPv6 in
I have to use named ACL?
Thanks in advance
Yes,
You can do it.
line vty 0 4
access-class 60 in
class to access acl-ipv6-IPv6, in
transport input telnet ssh
Kind regards
Herbert
-
I'm creating a Web site and I want the objects to be on the same line, how would I do?
I'm trying are we on the same line as the bar of navigation and put text in the empty box, can anyone help on how to do it please? I tried for days and nothing works...
Assuming you have floated the container elements and you have the correct width to fit the main component/container, then you might want to take a look at Box Sizing | CSS-Tricks
If this does not resolve your problem, please view the code.
-
How to align the product and the image of the product on the same line?
I'm having a problem trying to make the image of the product and the title of the product to be on the same line. Can someone help me?
To do this, right-click in this general area to 'inspect element' and change the display to "block" for the hidden liquid section. Who must disclose and thus allow you to activate and save.
See screenshot below.
-
How can I keep right-aligned to left and paragraphs together on the same line?
I am currently composing a menu. Basically, I want the title of dish to be aligned to the left and aligned price right, but on the same line. I can achieve the effect by typing in a shift + tab after the text of the title of the dish and then insert the price, but I'd rather have two styles of separate paragraphs, so that I can adjust the world to see what looks good. can I get the effect by adjusting the character of price from the price database and move it to the top, but then if I need to make changes in price, I find it a pain when trying to get the cursor in the right place in situations where a base line is significantly changed.
Back in time (to Ventura!), I could just remove the line break after the style 'Dish title' and the 'price' would be upwards to the same line, but I can't seem to be able to do this to the CS6.
Any ideas?
You can use a table, but I think that a single paragraph with a character style nested to manage the different formatting for the price is more flexible.
Maybe you are looking for
-
Tap simple trackpad issue integrated
You just bought Macbook Air MMGF2HN/A. There the last OS X El Capitan 10.11.5. Having some problems with the only tap water in the built-in trackpad. Sometimes (not often) the single tap doesn't work. For example, I tap on a tab in an application, bu
-
As the title suggests, for some reason any I can no longer save password unless I'm in safe mode. Same time he began to arrive, the download next to the home button icon became useless. Clicking on it does nothing. I tried to reset Firefox, I disable
-
How can I display the partitions hidden in the new disk utility?
Yosemite (10.10) and previous versions of disk utility, I was able to activate the debug mode display the partitions hidden recovery via a Terminal command. However, in El Capitan (10.11) the terminal command does nothing. So, how display/display t
-
Underflow memory device Embedded PXI-4461
I use a PXI-4461 to generate one acquire a singal. When I generate the signal I get error-200621 (onboard device memory overflow) onDAQmx VI stop. I do not understand what means error. Signal information Signal type = sine waveFrequency = 3K amplitud
-
Software Windows not genuine even if bought new at HP in the trustworty shop
I read a few questions about this already but not not yet found a good answer.I bought a new laptop about two years ago in a good shop in the United Kingdom (PC World).He came with preinstalled software and works since then.Now, I get this message th