Question: How can format SQL result in specific order?
Hello
My table looks like this:
|
| ||
one | CAT | ||
one | dog | ||
two | pig |
I would get the reqult as:
COLONNE_1 COLUMN_2
a cat, dog
two pig
Can someone tell me how interrogate who?
Thank you!
Hello
Try this
Select colonne_1, listagg (column_2, ',') within the Group (order of column_2) column_2
of looks
Colonne_1 group
Tags: Database
Similar Questions
-
Question: How can I format Satellite A10 PSA10C - CD/DVD drive does not work
Question: How can I format my laptop?
The problem is that my CD-ROM does not work or it cannot read the CD.
Help me guys and btw, is possible to format using USB Flash Disk?TNX in advance
Model: PSA10C-035WM
As much as I know with USB Flash Disk won't work.
I really wonder why you don't buy replacement ODD. Compatible readers for this model of laptop old are more expensive. Replacement is very easy and you can do it alone.
Wait a minute: you can remove the laptop HARD drive and connect to other PC / laptop as external one. If you can do what you want.
-
question: How can I format my hp elitepad 900
question: How can I format my hp elitepad 900
Hello ahmapeace,
Your ElitePad 900 is a business model. Your question would better answer on the HP Enterprise Business Community Forum
Good luck!
-
Question: How can I format a PC running pre-installed windows Vista?
I would like to format my PC because of the problems I've been as blue screen errors.
I bought a PC pre-installed Windows Vista and I don't have the DVD of windows.Question: How can I format the hard drive?Here are the different ways to reinstall Vista
Contact the manufacturer of the laptop computer and ask them to send you to vista recovery disks to reinstall the operating system back as it was when you bought it
they do it for a nominal cost of $
____________________________________________________________
also ask them if you have a recovery partition on your hard drive to get back to the way you bought
you would normally press F8, F9, F10 or F11 or Alt + F10 or 0 to start to start the recovery process according to the manufacturer
Ask them of the exact key sequence
__________________________________________________________
or borrow a vista microsoft dvd; not a HP, Acer recovery disk etc
Make sure that you borrow the correct 32-bit or 64-bit microsoft dvd to your computer
they contain all versions of vista
This is the product key that determines which version of vista is installed
http://www.theeldergeek.com/Vista/vista_clean_installation.html
____________________________________________________________
How to replace Microsoft software or hardware, order service packs and replace product manuals
-
Question: How can I format my locked Windows 8 install USB?
I got a USB key to install Windows 8 with my new laptop computer.
Eventually put Windows 7 on it, if I want to use the drive for other things.
Question: How can I format it?
I see no unlocking switch.
Thank you
Mark,
I can understand your situation.
Given that these Dell USB, I wish that you contact them for assistance. You will also have options to upgrade to Windows 7.
-
Question: How can I format a Jquerry file in DWCS6?
Hola
Question: How can I format a Jquerry file in DWCS6?I have a file Jquerry and is all the "crunch-up'
I need to find something and change it.
How is it is super hard to find.
I know that it is a function on DW to do this, and I had
Use it with CSS or HTML, but never with a file Jquerry
Thanks a lot for your help
Saludos
Copy & paste your JS code in JSFiddle and press the TidyUp.
Nancy O
-
How can I manually send music specific to my iPhone it draws from my computer?
How can I manually send music specific to my iPhone it draws from my computer?
Drag and drop music from the library onto the icon of the iPhone which appears at the top when your iPhone is connected.
-
I'm 'in the Community' (or I couldn't ask a question) how can I get the PW I put here?
I know it may seem silly for a computer "geek" to not write it down but... @ 81 Alheimers rules!
Cescokid
Hello
Use the links below to reset your Windows Live ID password:
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41
https://windowslivehelp.com/PasswordReset.aspx
If you need assistance, you will need to create a post on www.windowslivehelp.com
-
We have an important customer who said they don't want their employees who receive emails from marketing except a specific list of their management team. Also, we do not want the employees of our customers who decide to opt-in to receive emails from our registration page if they use their work email address.
How can I allow only a specific list of employees (management team) to receive marketing emails, but exclude all others in the same company?
One way is to create a list of sharing, "company A does not include." Build a program in the program generator with a charger that looks for the domain "company A". Place a filter in the program on a decision rule with the emails to management teams; If they are in the filter (that is, they are on the management team), remove them program, if they are not (that is, they are not the management team), add them to the list of sharing "excludes company A. Then you can add the list of sharing "Company A excludes" as an exclusion on your segments or implement a model that they will automatically as an exclusion.
They oppose all non management team emails? If they are, as an extra precaution, you could add the "exclude company A" to master exclusion list.
-
How can I tell a hyperlink (< a > order) to open in a new window? Is there a specific code/command that must be plugged?
http://www.example.com"target ="_blank"> click here!"
"Target ="_blank"is the key.
-
question: How can I open CS5.5 after the migration to the new computer laptop w / Mac OS 10.8.4? I got a dialog box indicating that I had to run Java SE runtime (or something to that effect), when I approved it, then try opening cs5.5 Indesign, the program closed unexpectedly at startup. If I uninstall program & reinstall, my documents will be free, or are they toast? Help!
Hi rabbit Art,.
Migration from one machine to the other problem most of the time. So I recommend you to reinstall the software. Concern is that none of your documents will be made.
Kind regards
Romit Sinha
-
Please, I initially created my account to the Brazil. However, I now live in the Panama. How can I change my account in order to correctly proceed to payment and so on? Or I have to cancel my account of the Brazil and create a new one?
Hello
Please see change the country associated with your Adobe ID
Hope that helps!
Kind regards
Sheena
-
install
HI.i want to format 10 pc in lan .How can I .thankIf you are the administrator of a such LAN, then you already know - if you are not the administrator, then you have no right to do.
-
How can I return results based on 2 columns?
I have had a problem and it cannot know for life. First of all, here is a series of example data that I use so you can see exactly what I'm asking.
EmplId Effdt Effseq
10001 1 JANUARY 99 ' 0
10001 1 JULY 11 ' 0
10001 1 JULY 11 ' 1
10001 1 JULY 11 ' 2
10001 1 JULY 12 ' 3
Do I have to do here is get 3 ranks. 3 rows, I need are lines 1, 4 and 5. I need rank 1 because it's a different date. I need line 5 for the same reason: it is another date. The question arises with how I can get the rank 4. The problem is that the lines 2, 3, 4, and all have the same date (effdt) effective, Developer SQL just returned one of these lines. Because these 3 rows all have the same date (effdt) effective the switch becomes the actual sequence number (effseq). When the date (effdt) effective is the same, you enter the maximum number of sequence (effseq) effective and return results of this whole line as the emplid, effdt and effseq. It seems so simple and something that you can use a subquery for, but its not as simple as that. Note, that you can specifically use the emplid = 10001 in any specific form because there are many employee also id, the lines will not be in a specific order so that you can always just grasp the lines 1, 4 and 5. Some employees may have only a single line in the database, and some may have 50 lines. Everything depends only on the combination of employee id (emplid) date (effdt) efficient and effective sequence (effseq) as the tiebreaker. Any help to fix this would be greatly appreciated. Thank you in advance.
WITH t AS (SELECT 10001 emplid, TO_DATE ('01-JAN-1999', 'dd-mon-yy') effdt, 0 effseq FROM DUAL UNION ALL SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 0 FROM DUAL UNION ALL SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 1 FROM DUAL UNION ALL SELECT 10001, TO_DATE ('01-JUL-2011', 'dd-mon-yy'), 2 FROM DUAL UNION ALL SELECT 10001, TO_DATE ('01-JUL-2012', 'dd-mon-yy'), 3 FROM DUAL) SELECT emplid, effdt, effseq FROM (SELECT t.*, ROW_NUMBER () OVER (PARTITION BY emplid, effdt ORDER BY effseq DESC) rn FROM t) WHERE rn = 1
EMPLID EFFDT EFFSEQ 1000101/01/1999 01000101/07/2011 21000101/07/2012 3 -
How to fix SQL results in double
Hi all
I am Michel.
I want to correct Oracle 11 g SQL statement
on the view, the table is locked.
The SQL class that can be created as follows.
----------------------------------------------------------------------
SELECT
"view the table is locked.
V.INSTANCE_NAME,
EU. NOM_SEGMENT
OF SYS. V_$ SESSION SE, SYS. V_$ LOCK M, SYS. V_$ INSTANCE V, SYS. USER_EXTENTS EU
WHERE EU. EXTENT_ID = 1
AND ((SE. SID = M.SID
AND M.REQUEST! = 0)
OR (ES. SID = M.SID
AND M.REQUEST = 0 AND LMODE! = 4
AND (ID1, ID2) IN
(SELECT S.ID1, S.ID2
V $ LOCK S
WHERE TO ASK! = 0
AND S.ID1 = M.ID1
AND S.ID2 = M.ID2)))
----------------------------------------------------------------------
Deriving from the execution of SELECT, appear as shown below.
----------------------------------------------------------------------
'' VIEWTHETABLEISLOCKED' ', ' INSTANCE_NAME', 'NOM_SEGMENT '.
"view the table is locked ', 'hand',' employees_BK '.
"view the table is locked ', 'hand', 'employees '.
"view the table is locked ', 'hand',' employees_BK '.
"view the table is locked ', 'hand', 'employees '.
----------------------------------------------------------------------
Looking at the results of the foregoing and duplicate results are displayed.
The feeling that without the high cost of SEPARATE,
As described below, the SELECTION can be made that redundant.
I want to change the SQL statement.
----------------------------------------------------------------------
'' VIEWTHETABLEISLOCKED' ', ' INSTANCE_NAME', 'NOM_SEGMENT '.
"view the table is locked ', 'hand',' employees_BK '.
"view the table is locked ', 'hand', 'employees '.
----------------------------------------------------------------------
How can I change the SQL for how I think that I enjoyed.
Thank you and best regards.Michel Hi Please try this
Select *from ( SELECT 'view the table is locked',V.INSTANCE_NAME,UE.SEGMENT_NAME,row_number() over(partition by V.INSTANCE_NAME,UE.SEGMENT_NAME order by null) rn FROM SYS.V_$SESSION SE, SYS.V_$LOCK M, SYS.V_$INSTANCE V,SYS.USER_EXTENTS UE WHERE UE.EXTENT_ID = 1 AND ((SE.SID = M.SID AND M.REQUEST != 0) OR (SE.SID = M.SID AND M.REQUEST = 0 AND LMODE != 4 AND (ID1, ID2) IN (SELECT S.ID1, S.ID2 FROM V$LOCK S WHERE REQUEST != 0 AND S.ID1 = M.ID1 AND S.ID2 = M.ID2))) ) where rn=1
Maybe you are looking for
-
How can I update Snow Leopard 10.6.8 for Sierra
System: Macbook Pro mid-2010 and Snow Leopard 10.6.8. How update for Sierra when El Capitan is no longer available in store and the message says that 10.7.5 is required when you try to download Sierra from App Store?
-
Sticky Password Autofill extension
How to get to Sticky Password Autofill extension 6.0?
-
"load this bookmark in the sidebar" is an option in the bookmarks library. What and where is the "sidebar"?
-
Why Firefox continue to try to be better when I'm updating?
I have (Firefox automatically) upgraded to the version: Firefox/3.6.13 about 10 days ago, but the FF continues automatically periodically (every two days?) Download the same update and install it, over and over again. He did about 3 or 4 times now. I
-
ICloud drive backup from my MacBook Pro Finder folders?
ICloud drive backup from my MacBook Pro Finder folders? I have Word for Mac and lots of jpg and PDF files in the My Documents folder that I'd like to back up.