Display different data with CSV

Hello

How can I build a query to separate the data with csv, but show me only the distinct records

SQL>  SELECT t1.cd_usuario||','||t1.cd_usuario_cc usuarios
  2    FROM sibtb_usuario_email t1;
 
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
upisergi,udoaldir,ubaemers
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
ukagisle,udoaldir
usisheil,ureanacl,usomaris
ureanacl,
usisheil,udoaldir,ujuhelio,ujujulio,ufinilo
I woudld like show only, each record in each line
    ukagisle
    udoaldir
    upisergi
    ukagisle
    usisheil
    ureanacl
    usomaris
    ujuhelio
    ujujulio
    ufinilo
   
Is it possible to do so, by using ORACLE 9.2.02

TIA

Like this?

With T as(
SELECT distinct t1.cd_usuario||','||t1.cd_usuario_cc||',' usuarios
FROM sibtb_usuario_email t1
)
select distinct usuarios from (
     select
     case when no=1 then
          substr(usuarios, 1,instr(usuarios,',')-1)
     else
          substr(usuarios,instr(usuarios,',',1,no-1)+1,(instr(usuarios,',',1,no)-instr(usuarios,',',1,no-1))-1)
     end usuarios
     from t
     cross join
     (
          select level no
          from (select max((length(usuarios)-length(replace(usuarios,',')))+1) len from t)
          connect by level <= len
     )
)
where trim(usuarios) is not null
/

USUARIOS
---------------------------------------------
usisheil
ujujulio
upisergi
udoaldir
ureanacl
ukagisle
ubaemers
usomaris
ujuhelio
ufinilo

10 rows selected.

Elapsed: 00:00:00.07

HTH,
Prazy

Published by: Prazy on April 28, 2010 18:33
In SQL format... Looked clumsy *.<>

Tags: Database

Similar Questions

  • Display different data in datagrid using a cellrenderer class cells?

    Gidday guys

    I fill a DataGrid using SQLite. Some SQL columns contain 1 or 0 as Boolean values, and I want to display this as a bullet point in my datagrid.

    Currently I have a conditional that checks a 1, and if there is, shows the point. I tell myself that there must be a better way, but I'm not sure how to do this with cellrenderers. I get how to add components using cellrenderers, but is there a way to replace the display of cells with another character (without actually modifying the dataprovider data)?

    Bravo to take a look.

    It would be best to draw a simple shape and not with a single character in a TextField. To do this, Yes, you will need to replace the CellRenderer. I often choose this one, but use generally focus on the GPU of the components such as the FeathersUI components.

    If you have too much data or are on a device and want to do this because you get mediocre performance, it's a good use of your time. Also if you just learn to do it just to do so, it is can also be a good use, if you finish your work on time. However if it is for the office and/or data are fairly minimal (a few dozen ranks up to a hundred or so, with a nominal amount of columns), it probably isn't worth your time.

    I'm sure you have this link but:

    http://help.Adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32 - 7fd4.html

    All cellrenderers components tend to be the same (because more large components use smaller components and architecture aligns). The difference is ensuring that your rendering engine supports data, it is provided. If you only need a TextField or a bullet, it's fairly easy. Most of the components (such as lists) support icons and you will need to make sure that you provide the full implementation of all the scenarios of data in your cellrenderer class.

    Pay attention to the technical dequeue cells on certain components. If all cells have usually only text, the cells are not destroyed and re-created as the list scrolls. The data is returned to the cell and the cell has a chance to simply update itself rather than to recreate from scratch. This offers an increase in performance of not having big does not destroy and recreate unnecessarily. It can also really confuse people when the cells begin to appear blank when you scroll (because the methods of construction of cells are not executed).

  • How always display the date with taskbar buttons activated in widows 8?

    It's got to be average, just to be there. Even using the buttons small taskbar, it is actually enough space to have always the date and stacked. I would be well with them, next to each other also. I don't really understand why the date masks even as it would fit really well. I'm fine with the help of a third party program if necessary. I already have the classic interface installed because microsoft somehow forgot to add the menu start Windows 8.

    There are several strange suggestions and wonderful here for you to play with.  Make sure that you first create a system restore point.

    Windows 7 - display date using small icons
    http://superuser.com/questions/89628/Windows-7-display-date-using-small-icons

    http://www.Google.com.au/search?q=use+small+taskbar+but+have+date+and+time&SourceID=IE7&RLS=com.Microsoft:-to THE: IE-address & ie = & oe = & gws_rd = cr & redir_esc = & ei = 4L7sUaPiKKWSiQe2_IFQ

  • TDMS Viewer and excel display different data

    Hello

    I have a problem of reading/viewing my PDM file. My file contains 37 channels and about 7 000 samples per channel. (Just this file... Later, I have to develop on many more ~ 150 k samples per channel)

    Now my problem is: if I open the PDM file with VI TDMS files Viewer, it starts to change the channel after ~ 1000 samples (Channel 29-37(MM1-MM9) should always be-32768, but after 1000 samples, the channel passes their place

    My analysis of switching: after ~ 1000 channels 29-37(MM1-MM9) is the 11-19 after ~ 2000 on 30-1 after ~ 3000 on 12-20, etc...

    Besides the switching channel there is a block of lines ~ 30 only filled every 0 ~ 1000 samples

    But if I open the file in Excel with the PDM-Addin is to show the correct data. Why is this and how to fix the Viewer?

    Hope you understand what I'm trying to say

    I have a my TDMS attached as a ZIP file, could not fix a PDM directly.

    It must be a bug of PDM, not the file viewer component. We will go is studying the issue. Workaround for you call the node "PDM defragment" to defragment this file, then it might appear correctly in the Viewer.

    According to your file, I found that the file has been created by TDMS Advanced knots. You define 10000 samples for an interlaced channel, but you write only 499 samples for a channel in writing. I suggest setting the sample counts exactly acrrording how are going to write.

  • How to display XML data with the same form that generated?

    I am an inexperienced "developer", so bare with me please.  I just created an interactive form that my users will fill out and give me back.  I love the email button that let's them just click a button to send it - because it's so smooth.  However, all I get back is data XML that I don't know what to do with.  Is it possible that I can just open the form I send my users and have the XML data to automatically fill? Otherwise, suggestions?  I started a company - so it's just me without other resources (or fancy SQL DBs to pull this stuff, etc.).

    Hello

    You can configure a button on the form with the JavaScript next to the click event:

    xfa.host.importData ();

    This will open a window that will allow you to navigate to where you saved the returned XML file. Note that this button does not work in extended via Acrobat Forms.

    Depending on the version of Acrobat you are using (the menu changes slightly) you can go to the menu forms and select Manage form data / import data.

    Third option; You may also distribute the forms via Acrobat, which will put in place a response file, which will allow to import responses for you.

    Hope that helps,

    Niall

  • Oracle SQL Developer - how to display the date with TIME

    OK I change the setting of the NLS to DD-MON-RR HH.MI. SS
    (Tools-> Preferences-> database-> parameter NLS)

    BTW - what is changing the format of the database or just my client side? I don't want to change the database and other users would be affected by my change.


    I check the date time poster by practice
    SELECT double TO_CHAR(SYSDATE + 1, 'DD-MON-YYYY HH:MI:SS');

    Returns
    JUNE 24, 2009 10:32:55

    OK, here is my problem or question...
    but I wan't do in East... I have a column in a table that stores a number of minutes from a given date...
    the given date is 12/30/1899 00:00:00

    If I want to display the minutes in a format of date and time... but when I do
    Select To_TIMESTAMP (30 December 1899 00:00:00 "," mm/dd/yyyy HH24:MI:SS) + (Start_Moment) / 1440.
    To_Date (30 December 1899 00:00:00 "," mm/dd/yyyy HH24:MI:SS) + (Stop_Moment) / 1440
    from tableA

    RESULTS
    22 JUNE 09 23 JUNE 09

    I tried the function TO_CHAR but don't have time to be like
    Select TO_CHAR (to_date('12/30/1899 00:00:00', 'mm/dd/yyyy HH24:MI:SS') + 57580140 / 1440) double

    RESULTS
    22 JUNE 09

    I don't know that it's the simple convert function that I do not know...

    Mark as answer?

  • Display different results with if statements

    Hello

    I'm doing a very simple logic but can't figure out how to do visually in LabView. Please take a look in the file. As you can see on the right, I have a group of 9 possibilities, each of them being true I want the COMPOUND NUMBER indicator to show a different result. I tried to use the structure of the case, but I could not the icon of the indicator in other sous-schemas. I also thought about putting the results in a table and choose the element whereby the possibilities.

    But I'm sure there is an easier way. Help, please.

    Thank you

    LD

    You put the indicator of terminal outside the structure of the case.  Then each case son its respective result in the tunnel leading out of the structure of the case to the indicator.

    (Alternative, but not recommended, use a local variable of the indicator in all other cases, if you use the terminal in one of the cases.)

  • See the date with timestamp column column

    Hello

    In the table have am capture the creation_date as date data type column. I prepare a report to display the date. Is it possible to display the date with creation of time stamp

    I use oracle 10g Enterprise Edition

    The table name is LICENSING name column is CREATION_DATE

    Please suggest me

    Thank you
    Sudhir

    Which indicates that the data currently stored in the table always have an hour of midnight. Whatever the application / process that inserts the data is, apparently, not the component "time" DATE in the desired way. You will need to set the insertion process to spend time in your report.

    Justin

  • Firefox 32 pages with columns is displayed differently (bad) of Firefox 31. Why?

    In 31 FF, data tables are correctly Spa. The same page in FF32 has only a fixed number of spaces between the columns. Therefore, the shorter entries displayed differently from longer. Unfortunately, I do not know how to post screenshots here.

    Thank you very much. One of your advice has solved the problem... more on that in a moment. The curious is I have made no changes whatsoever, other than to give approval to upgraded to FF v31 v32. I have FF running on two computers, Win 7 HP - so only put 64-level, who then had the problem. The second machine, always with v31 FF worked 'normally '. Although it may be useless I've added screenshots of two machines to show what I was seeing.

    Having said that, I discovered, thanks to your tip, that the box: 'Allow pages to choose their own fonts' has been disabled in the upgraded version. How this has happened is beyond me, since as I said, I have Nothing , but give permission to upgrade.

    Thanks again.

  • Import ASCII dates with different format

    Hello

    I need to import data from a CSV of ASCII.

    The problem is the date format in this particular data file (.csv)

    The date format for day< 10="" and="" month="" from="" jan="" to="" sep="">

    AAAA/_M/_Dthe character '_' is a simple space, not an underscore literally

    The format of the date days > = 10 and Jan to Sep month is:

    _M/JJ/AAAA

    The format of the date days > = 10 and months of Oct to dec is:

    YYYY/MM/DD

    The date format for day< 10="" and="" months="" from="" oct="" to="" dec="">

    YYYY/MM/_D

    Possible solution:

    I already create a routine that recognizes the date in the title and one of the 4 (.stp) filter uses for data processing. These are the works.

    Next problem:

    The days are separated into 2 files, a file from 09:00 to 21:00 one day and the other from 21:00 to 09:00 on the following day. It's the way I've lost data when the day changes from 9th to the 10th of each month and the month change of Sept Oct and Dec to Jan.

    I just need to delete the blankspace unconfortable before the changes of dates 2-digit, but I do not know how to deal with the before CSV imported to tiara (10.2).

    My other idea is to recognize this file and any double (once with each please) but I need to exactly position the import is not the problem with the data of novalue. (Until know I got complicated for a simple mistake of blankspace).

    I hope that you have ideas...

    Thanks in advance...

    I don't know if I understand that measures are not clear. Here's what I think you want to do:

    (1) load data from different files in DIAdem

    To do this, you must use "DataFileLoad("E:\Customer_Requests\caracasnet\log(111231).csv","caracasnet_log","Load") call.

    You call DataFileLoad for each of the files.

    (2) you want to concatenate the groups.
    This should be no different than what you've done up to now

    (3) you want to store the data in a file (TDM).
    To do this, you must call DataFileSave (...)

    Let me know if you have any other questions...

  • How to combine real-time video with LabVIEW indicators so that the video can be displayed and saved with the overlay data

    Let's assume for the moment that I can find a device for which LabVIEW has the appropriate drivers.  Is it possible to combine the camera feed with digital indicator fields so that there is a video out showing the data superimposed on the live image?

    I'm talking about something like a screen of the camera where you see the camera settings are displayed on the image in the viewfinder.  Note I have one isn't about analysis of video data or somehow reading parameters of the camera to the camera.  Data would be temperatures, pressures, speeds, etc., acquired by different instruments at the same time the video is captured and processed somehow by LabVIEW.

    No problem Wildcatherder, don't let me give you an overview of the process.

    When you get a video acquisition method entry, it will be an image format. Essentially, it's a bunch of images that are updated at the speed of video capture, just like the material. There are screws express (wizard - like elements) that simplify the obtaining of images from your video source. With the drivers and measurement and Automation Explorer installed, you should be able to get at least the image.

    If you have IMAQ toolkit, I mentioned, you could just wire the reference image (a purple wire wavy) and a text input (say, a temperature that is converted to a string) in the text overlay VI and it would produce the desired effect. Without this, you will need to convert the Image into image (these are two different data types in LabVIEW) and use the image instead, editing tools (essentially replacing pixels in 2D image data). You would then update an indicator of the photo with your photo altered, if all goes well to the pace of the acquisition hardware. As I said this is less elegant and can take a certain amount of time processor. If you view these images at all and are just their routing, it should be slightly faster.

    I don't know about video production equipment, I mainly used entry Firewire or USB, the computer screen or the file data. However, if the driver exists, it should be possible, but a quick review of the functions doesn't seem to come with output functions. Cannot advise on hardware, but you can start with:http://sine.ni.com/np/app/main/p/bot/no/ap/vision/lang/en/pg/2/sn/n17:vision, n21:11600 /?

    Kind regards

    Mello

  • Find County/VMs with 2 or more VMDK on different data warehouses

    Hello:

    I wonder how to find (and later) all VMs with 2 or more on the different data store VMDK...

    Thank you

    qwert

    Argh, you can still see that the single line in my script that I did not test, the Export-CSV cmdlet, gives you bad. The following script, I tried from the beginning to the end and gives even better output:

    $report = @()
    $allvms = Get-VM
    foreach ($vm in $allvms) {
         $clusterName = ($vm | Get-Cluster).Name
         $dstores = $vm | Get-Datastore
         foreach($ds in $dstores){
              $row = "" | select VMNAME, DATASTORE, Cluster
              $row.VMNAME = $vm.name
              $row.DATASTORE = $ds.Name
              $row.Cluster = $clusterName
              $report += $row
         }
    }
    $report | `
    Sort-Object -Property VMName,Datastore -Unique | `
    Group-Object -Property VMName | `
    Where-Object { $_.Count -gt 1 } | `
    Foreach-Object {
         foreach ($Record in $_.Group) {$Record }
    } | `
    Export-Csv "C:\VM_DS.csv" -NoTypeInformation
    

    Update: I saw that the first line was missing, so I added the first line of the script.

    Post edited by: RvdNieuwendijk

  • Creating a line chart series multi with different data providers

    I have 3 providers of data of the same structure that is ArrayCollection of data collection and that you want to use to create a line chart multiseriate. I don't have just 1 dataProvider that can be used but 3 different data providers of the same structure I want to use each different series.

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    < mx:ColumnChart showDataTips = "true" >

    < mx:horizontalAxis >

    < mx:CategoryAxis

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    / >

    < / mx:horizontalAxis >

    < mx:series >

    < mx:LineSeries displayName = "OrangeSales" yField = "sale" xField = "month" dataProvider = "{orangeSales}" / >

    < mx:LineSeries displayName = "AppleSales" yField = "sale" xField = "month" dataProvider = "{appleSales}" / >

    < mx:LineSeries displayName = "BananaSales" yField = "sale" xField = "month" dataProvider = "{bananaSales}" / >

    < / mx:series >

    < / mx:ColumnChart >

    Help, please!

    Sorry for the confusion. In fact I do something wrong, such as using ColumnChart to display a line chart or something like that.

    Now, I realized that a multi series line graph can be built by the presence of a different data provider for each of the LineSeries object.

    If the code below would create a multi series line graph:

    [Bindable] private var orangeSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 101000, month: new Date (January 1, 2008 "")},]

    {sale: 960000, month: new Date (February 1, 2008 ')},

    {sale: 475000, month: new Date (March 1, 2008 ')},

    {sale: 425000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var appleSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{Sales: 991000, month: new Date (January 1, 2008 "")},]

    {sale: 140000, month: new Date (February 1, 2008 ')},

    {sale: 565000, month: new Date (March 1, 2008 ')},

    {sale: 255000, month: new Date (April 1, 2008 "")}

    ] );

    [Bindable] private var bananaSales: ArrayCollection = collection

    new ArrayCollection collection)

    [{sale: 891000, month: new Date (January 1, 2008 "")},]

    {sale: 147560, month: new Date (February 1, 2008 ')},

    {sale: 295000, month: new Date (March 1, 2008 ')},

    {sale: 574000, month: new Date (April 1, 2008 "")}

    ] );

    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the graph for different specified dates.

    <>

    dataProvider = "{orangeSales}".

    categoryField = 'months '.

    />

  • iCloud full - found two backups with different dates

    My 20g iCloud storage is full.  When I went to manage my data, there were 2 backups of my iPhone with different dates.  Can I remove 1 of them (the older one I guess) without affecting my current phone?  I guess that's when I upgraded my iPhone 4 to 5

    Of,.

    Yes, as long as you can identify with certainty the backup latest.

  • How to convert an array of string elements to a cluster with elements named different data types?

    I'm looking for more help with the conversion of an array of elements of the chain in a cluster containing elements named different data types.

    I am importing data from an Excel worksheet.  He is coming in LabVIEW as separate (channels) 3 tables: 1) Variable name, (2) three possibilities Int, double, String) data type and the value 3), with the clues in each table corresponding to a separate variable (I have about 180 variables to import).  My ultimate goal is to convert the string array of 'Value' in a cluster.  But I want the correct data type in the cluster and I also the elements of the cluster name to match with the string 'Variable name' table so that I can use the Unbundle based on the name in my main VI.

    Please see attachment a Subvi for more details.  I did the size of the new items of tables 5 for simplicity.   I realize that labels property cannot be changed during execution and I don't think I need to do.  I just want to use the production cluster (mainly the unbundle by name) to help design my main VI.  I will need to 'read' and 'write for' the cluster during execution, but I won't need to change the names of the items.

    I was also wondering if there is a better way to import data from Excel?  Is it possible to import directly into a cluster immediately rather than put everything as strings?  I have attached a Subvi showing how I currently bring in data (found on the forum somewhere).  It comes as table 2D, which I divided into 3 separate tables that I mention above.

    I am open to any suggestion.  Thank you very much.

    -Mike

    Instead of trying to create a cluster, I think I would use only variant attributes.

Maybe you are looking for