Select multiple columns into a single column group

SQL dear Experts,

I have a question related to pl/sql.

I do query below. Please advice in right way.

Select phone, firstname, lastname code
of the customer
Code group

Group, but in the meantime, firstname and lastname.

Please advice

Thank you
Angelique

Billy wrote:

I have a question related to pl/sql.

You posted the SQL code. Not PL/SQL code.

I do query below. Please advice in right way.

Select phone, firstname, lastname code
of the customer
Code group

Group, but in the meantime, firstname and lastname.

Of course, you will also need to group by firstname and lastname for this SQL query.

With a Group of SQL, you have basically 2 types of values that can be returned:
-the value of Group of
-l' aggregated/calculated the value of this group

If you could watch the first name and the last name by code:

select
  code, MIN(firstname), MAX(lastname)
from customer
group by code

You can see the number of unique name and surname by code:

select
  code, COUNT(DISTINCT firstname), COUNT(DISTINCT lastname)
from customer
group by code

Think of the clause group by in size (for example the code in the SQL above) and measures (calculations by code in the SQL above).

Tags: Database

Similar Questions

  • 5514 photosmart e-all-in-one: scan multiple pages into a single PDF document?

    How can I scan multiple pages into a single multi-page PDF file?
    I saw posted similar questions, but I have not found all the right answers. The Council alone that I saw was to scan each page in a separate PDF document, then merge them into a single PDF using third party software.
    Of course, I don't want to do.
    I can't believe that there's really no way to do it using the existing HP printing/scanning utilities provided with the hardware.
    My printer/scanner is the "HP Photosmart 5514 e-All-in-One Printer - B111h", and I am running Vista (64 bit) on a HP Pavilion laptop.

    Hello

    The HP scanning software (start > programs > HP > Photosmart HP 5510 series > HP Scan) select PDF and make sure that the resolution is 300 dpi or less.

    Make sure the option Show Scan preview is checked, and click Scan.

    Once the first page of scanning is finished, place the next page on the window and click on the button "+" under the scan preview...

    Once you are done click Save.

    Shlomi

  • HP ENVY 5540: HAVING HP ENVY 5540 HOW TO SCAN MULTIPLE PAGES INTO A SINGLE PDF

    Trying to scan multiple pages into a single pdf using HPEnvy 5540. Seem to be only able to do it in a single pdf page.  Does not work how to do do.

    Hello

    For Windows, please download and install the following software and install on your computer.

    FTP://FTP.HP.com/pub/scanners/HPScanExt/HPScanExt.msi

    After this, please use it to scan.

    You can also try (for Windows):

    Double-click the icon of the printer on the desktop,
    Select scan a Document or Photo,
    The first page on the glass (face-down)
    Check out the options (size, dpi...) and select scan the document to be filed,.
    Click on Scan - machine will scan the first page
    Delete the first page on the glass, put the second page,
    Click + (plus sign), it sits on the left side of a red x
    Machine will sweep the second page, put 3rd page on the glass and click on + again... until the end and then click Save
    Click done after save

    Kind regards.

  • Manually to scan multiple Pages into a single PDF file.

    Gentlemen:

    My gear - 4620 HP all-in-One.

    Problem:

    I prefer to scan multiple pages into a single PDF file and save them on the hard drive manually.

    The ADF is twisting the pages that are saved in the PDF file.

    Please notify.  An upgrade of the software will be available for manual use set up of the

    pages on the glass?

    No other problems with the HP 4620.  I use Windows 7, 64 bit.

    Just reply to your convenience.

    PDF4ME

    PDF4ME,

    Watch it again once and document Scanning how-to - for Windows 7, I don't see that Preview Scan must be turned on to scan several pages.

    You can check again to see if you can get this works by following the instructions in the document.

    HP Officejet 4620 e-all-in-one printer support - scanning - Windows 7

    Click on the thumbs-up Bravo !

    It's a nice way of saying 'Thank you' for help.

    While I strive to reflect best practices of HP, I do not work for HP.

  • HP5610xi: Using a HP 5610xi, how can I scan multiple pages into a single file?

    Using a HP 5610xi, how can I scan multiple pages into a single file?

    Hello

    Thank you for using the HP Forums.

    Can try this software:

    HP extended Scan

    FTP://FTP.HP.com/pub/scanners/HPScanExt/HPScanExt.msi

    Once it has downloaded and installed, go to start > all programs > HP > HP Scan extended > Run "HP Scan extended.

    This relevant resource will show you how to scan multiple pages into a single file:

    HP Officejet Pro 6960 series: scan a document of 6 pages 2 sides using the ADF

    Let us know if it works!

  • How do I? Scan multiple pages into a single document

    How to scan multiple pages into a single document?

    If you let us know the scanner you are using as well as the name of the software, it would be easy to suggest the measures.

    See the following links for the procedure:

    http://support.HP.com/us-en/document/c01282192

    http://support.HP.com/us-en/document/nps05123

    http://support.HP.com/us-en/document/bps03330

  • Can I put multiple PDFs into a single pdf file?

    Original title:

    PDF to PDF

    Can I put multiple PDFs into a single pdf file?

    I have a lot of files that consists of 1 page. Is it possible so that I can put them together and print them out?

    Otherewise I have to press the button print 60 times.

    You will need a software to do this. If you haven't already, Google for «combining PDF» There are also sites that allow you to do this online.

  • HP Officejet Pro X476dw (nextworked-Windows 7 Pro) how to scan multiple pages into a single file?

    Does anyone know how to scan multiple pages into a single jpegfile?

    When you scan a document of several pages in a file on a network each page gets its own jpeg image scanend file.

    HP standalone scanner allow generally allows you to add the multuple scans in a jpeg file.

    Any help much appreciated!

    Thank you

    Joihn

    Hello

    Well, I don't know how you can read many jpeg files into a SINGLE file. Put scanned images in a folder is a logical way to keep them in one place. From my understanding single jpeg image may be a ONE page document, but many jpeg images cannot be concatinated to be a multiple page document. We can use images, software publishing to put them in a single document, but still only one page (each image is smaller). Using pdf output, you can concatenate/merge a lot of images in a sinlge multi-page file.

    Kind regards.

  • How can I scan multiple pages into a single file using the PIXMA MG2100 printer?

    Does anyone know how to scan multiple pages into a single file, jpeg, pdf, or word?

    Thanks for any help

    Sandy

    So that the community can help you better, we need to know exactly what operating system is running on your computer.  This and all other details you want to give only will help the community better understand your question! Thank you and have a great day!

  • How to scan multiple pages into a single document using the CanoScan LiDE 200?

    How to scan multiple pages into a single document using the CanoScan LiDE 200?

    I can't find a way to get them to analyze all the time, or a way to put together them later.

    Hi dagda24,

    You can scan multiple pages into a single document with the scan PDF option.  Use the following steps to do:

    1. open MP Navigator.

    2. click on a Clcik.

    3. click Save to PC.

    4. change the Type of PDF file to PDF (multiple pages).

    5 other changes, as needed, and then click Scan.

  • How to scan multiple documents into a single pdf file of ADF on my MX922?

    How to scan multiple documents into a single pdf file of ADF on my MX922?


  • HP Envy printer 4501: HP Envy 4501 scan multiple pages into a single document

    My HP Envy 4501 printer won't let me not scan multiple pages into a single pdf document.

    I already made sure the box 'Create a separate file for each scanned page' is unchecked under the section of the file in the advanced settings .

    After I scan the first page, I do not get a screen with a + (plus sign) which is supposed to allow you to scan additional pages in the same document.

    Is it possible that I can get a fix/update my HP Envy 4501 printer software which would show the screen with the + (plus sign) which allows to scan additional pages in the same document after the first page that you scanned?

    At this point, if I don't get this problem fixed soon, I'm about to return my HP Envy 4501 printer to the store I bought so I can get my money back and buy a printer from one of the competitors of HP before my store warranty runs out.

    I am very displeased with the printing software HP, support services and web presence that does not work half the time.

    Thank you

    Mark

    Hello

    Lower the resolution of scan equal or lower to 300 DPI, scanning multiple pages is supported only on lower resolutions.

    Any higher resolution will not add additional pages.

    Shlomi

  • Over my OFFICE JET PRO 8600, how to scan multiple pages into a single document?

    How to scan multiple pages into a single document?

    Thank you

    Hi REDFIERO,

    I can help you scan multiple pages to a file.

    If you use a Mac, you can perform your analysis with HP Scan and when you save the file, choose PDF. Under the PDF Format you chose you will see the option to save all pages in a single file.

    If you are using a Windows operating system, follow the instructions in the following document, Scanning of multiple in a single PDF Pages.

    I hope this helps.

  • OfficeJet Pro X 476 dw MFP PCL: How do I scan multiple pages into a single file

    Hello

    How to scan multiple pages into a single document (PDF) with the Officejet Pro X 476 MFP PCL6 dw?  Any help?

    Best regards, Oldy75

    The simple way is to use the ADF to do analysis.

    If the documents cannot be analyzed through the ADF, and then under the gaze of menu scan for work in fashion build.

    If my post is solved your problem and click the accepted as button solution under him.

    In order to thank a Tech for a post click the thumbs up button under the post.

    You can even click on the two keys...

  • PSC 1210 Mac OS 10.6 scan multiple pages into a single pdf. and ink levels

    Now that I upgraded my Mac OS to Snow Leopard (10.6.8), I need to scan on my HP all-in-one psc 1210 is preview Scan & Fax system preferences. Once I scan a page and this page opens, I AM able to scan additional pages, but each is a separate document. The pilot only system available at HP is printed only and don't include a utility to check ink levels. Can someone help me with these two questions? (1) how do I scan multiple pages into a single pdf file. doc with my configuration, and (2) how to check the ink levels

    Even if it looks like Mac OS 10.6.8 I will not be able to scan multiple pages in a pdf, I thought I would send you a screenshot of the options available.

    Thanks for the help. I'll have to consider what software will no more work time if I upgraded to OS 7 and weighs against not being able to scan multiple pages in a pdf file.

    Christopher

  • Merge multiple images into a single file

    Hi all

    I am writing because I need to merge multiple images into a single file and do not know how.

    I need to create a large table with several aerial photographs, so I didn't need to create a panorama, but I would like to use an automatic procedure to merge the images because they are many.

    Can you help me??

    I tried photomerge but it creates more levels without ordering the photos...

    If all the files are the same size, there is a script "File Stitcher" @ http://www.ps-bridge-scripts.talktalk.net/

Maybe you are looking for

  • July 18, 2016 Yosemite security update installs

    Today (20 July) has received notification of the latest OSX update (two days after having apparently been available).  Has tried to install it, but it says it is corrupted and will not be installed.  Any ideas please on how to proceed?

  • Development Web - page bookmarks don't work

    I'm developing a Web site. I have bookmarks that work in IE and Chrome, but not Firefox. I use a tool called AsxSplitter by DevExpress page separator. Is it possible to make Firefox work with this tool?

  • How to start the process of "NI_SystemState"?

    In my Distributed System Manager, I found NI_SystemState process on one of my systems of RT. I don't know when and how the process has started.

  • Your installation is corrupted or damaged - please reinstall

    How can I reinstall when I can't locate my original dvd

  • BIOS or boot password

    I have a hp mini 1030nr, im getting the BSOD so im trying to get into the BIOS. After pressing f10 to enter, I get a screen that says "CURRENT password:" after three failed attempts is gives me a message saying «» password check failed Fatal error...