Get the number of lines to different tables on the same line

How can I get the number of lines for the different tables in a single line:

SELECT count (A), count (B), count (C) table tb_a A, tb_b B, tb_c C;

Thank you!

Maybe if you want a little sophisticated look ;)

select *
  from (select 'a' tbl_name,count(*) cnt
          from table_a
        union all
        select 'b' tbl_name,count(*) cnt
          from table_b
        union all
        select 'c' tbl_name,count(*) cnt
          from table_c
       )
 pivot (max(cnt) kount for tbl_name in ('a' as tbl_a,'b' as tbl_b,'c' as tbl_c))

Concerning

Etbin

Tags: Database

Similar Questions

  • why I can not get the same apps I have on my iPad?

    why I can not get the same apps I have on my iPad?

    Because they are different versions for different operating systems.

  • I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    Ideas: I'm trying to download the updates to my computer, but can't. I get the error code 646 and the download fails. I tried to download the update several times, but get the same answer. What is the problem?

    • Pragrams you have problems with
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Hello

    Try this 1st to see if it helps, and it should:

    Description of the Patch registration cleanup tool
    http://support.Microsoft.com/kb/976220/

    ------------------------------------------------------

    If necessary :

    Try this - Panel - Windows Updates - on every update that will not be installed - click on the important updates
    or the update itself - double click a view more information (or click top then discovers on the right)

    Those who will take you to a page where you can download the update.

    Or go here and the KBxxxxxx number to download it.

    Download Center - mount the KBxxxxxx.

    Microsoft Download Center
    http://www.Microsoft.com/downloads/en/default.aspx

    Download - SAVE - go to where you put them - click on - RUN AS ADMIN

    Then you can right click on the update in the updates Windows and HIDE.

    If you get an error Installer install this version:

    Windows install 4.5 Redistributable
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=5A58B56F-60B6-4412-95B9-54D056D6F9F4&displaylang=en

    ----------------------------------------------------

    Then run this:

    How to reset the Windows Update components? -a Mr Fixit
    http://support.Microsoft.com/kb/971058

    Description of the system for Windows Vista, Windows Server 2008, update tool and
    for Windows 7
    http://support.Microsoft.com/kb/947821

    ------------------------------------------------------------
    Because these are all Office updates you might get more information if necessary in the Agency of those groups that
    may have experienced the same problem.

    Office newsgroups
    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Microsoft.public.office.misc discussions
    http://www.Microsoft.com/communities/newsgroups/list/en-us/default.aspx?DG=Microsoft.public.Office.misc&cat=en_us_01cb749f-c998-4762-8099-df71793c11c7&lang=en&CR=us

    ------------------------------------------------------------

    If necessary you can incident free get reports however the above should take care of it for you.

    Windows updates - free Incident report

    Go here and click on-> Windows Update fails while searching, downloading or installation of updates
    http://support.Microsoft.com/GP/wusupport#tab3

    The security updates, you can get free support Incident report
    http://www.Microsoft.com/protect/resources/support.aspx

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How can I load Vista Service Pack 2? I get the same error messages when I try to download it from the Microsoft support site

    I have a Dell computer with a 32-bit version Vista Ultimate factory loaded. Service Pack 1 is loaded.  I tried to load Vista Service Pack 2 several times by using the following procedure and it does not load.
    -From Microsoft technical support I click Download (using a cable modem) and click on the file to run.   The file MB 475 downloads in about 5 minutes.
    -Click on install Vista Service Pack 2 and it starts to install
    -After about 10 minutes, a message appears "installation was not successful 800F081F error Code.  A system error not install the service pack.  Please download and run the tool to "Check for System Update Readiness". »
    -J' I download system analysis tool and start the installation.
    -Get a message "Installation update for Windows (KB947821) update 1 of 1"
    -After a long time, a message appears saying that the Installation has failed with an error Code 800706BE.

    I repeated this process several times and always get the same result.
    My McAfee security software and spyware blocker is disabled during this process

    The update is not installed successfully, you receive a message, and the computer restarts when you try to install an update in Windows Vista
    http://support.Microsoft.com/kb/949358

    See also the post of 'Response' in this discussion partners: http://social.answers.microsoft.com/Forums/en-US/vistainstall/thread/ad5159b6-edc7-4c45-842a-c8197aec3e07

    ========================

    Free unlimited installation and compatibility support is available for Windows Vista, but only for Service Pack 2 (SP2). This support for Windows Vista Service Pack 2 (SP2) is valid until November 26, 2009. Availability of support chat or messaging differs depending on your location. Go to http://support.microsoft.com/oas/default.aspx?prid=13014&gprid=582034 & select appropriate category (i.e., download problem;) Installation problem; Problems after installing a service pack). ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • When my DVD drive would not work, I bought an external. I get the same message when I go into properties. Pilots have been disabled.

    When my DVD drive would not work, I bought an external. I get the same message when I go into properties. Pilots have been disabled.

    Hello

    Check with the manufacturer of the system, their online documentation and drivers, diagnostics, and
    Ask problems known in their forums. You may also check those similar
    resources on the site of the manufacturer of the actual device (for the original drive).

    =================================================================

    It is not surprising that the same issue affects the old and the new drive.

    This problem may be caused by the presence of too many CD/DVD programs competing for resources,
    especially by these programs that run at startup.

    Even if the error is not Code 22 check these:

    Code 22
    http://TechNet.Microsoft.com/en-us/library/cc731267 (v = ws.10) .aspx

    How to fix the Code 22 errors
    http://pcsupport.about.com/od/errorc/a/code-22-error.htm

    How to enable a device in Device Manager in Windows Vista
    http://pcsupport.about.com/od/windowsvista/HT/enabledevvista.htm

    If necessary:

    Step 1: Please do all the same underneath if you did some before as is often total
    a process that solves the problem.

    Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
    Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
    RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
    below.

    Then, work your way through these - don't forget the drive might be bad, could be a coward
    cable or slight corrosion on the contacts (usually for a laptop) and other issues.

    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.microsoft.com/kb/314060 - a Mr Fixit

    Try this fix manually if the Fixit 314060 does not work
    http://www.pchell.com/hardware/cd_drive_error_code_39.shtml

    Your CD or DVD drive is missing or is not recognized by Windows or other programs-
    a Mr Fixit
    http://support.Microsoft.com/kb/982116

    The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
    for Windows Vista
    http://support.Microsoft.com/kb/929461

    When you insert a CD or a DVD, Windows Vista may not recognize the disc
    http://support.Microsoft.com/kb/939052

    Your CD or DVD drive cannot read or write media - A Mr Fixit
    http://support.Microsoft.com/GP/cd_dvd_drive_problems

    CD/DVD drive does not appear in Windows Vista, or you receive this error in Windows
    Vista installation after booting from the DVD (AHCI)
    http://support.Microsoft.com/kb/952951
    Drive CD - R or CD - RW Drive is not recognized as a recordable device
    http://support.Microsoft.com/kb/316529/

    Hardware devices not detected or not working - A Mr Fixit
    http://support.Microsoft.com/GP/hardware_device_problems

    Another possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
    ends. Remove and replace, do not just tight. For laptops, you can often clean power and
    contacts data with a pencil eraser.

    Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
    manufacturer of device to see if there is a firmware or drivers for your drive if necessary.

    ===============================

    Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
    Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
    do it right.

    Did you follow the Troubleshooting Guide for the reader who still does not work? There are
    the entries in registry that the troubleshooter does not solve and those who "might" be the cause.

    Check with your Maker system and a device for the two possible firmware updates and
    the correct registry entries for your car.

    Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
    as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
    the parameters.

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}

    -----------------------------------------------------------------------

    You can probably find more info here and maybe even the exact registry for your CD/DVD settings
    drive from someone with the same model.

    Forums - a lot of expert real help
    http://Club.myce.com/

    CD/DVD units
    http://www.myce.com/storage/

    Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
    nothing change) - find the DevManView device and then make a right click on it free in RegEdit.

    DevManView - free - an alternative to the standard Windows Device Manager, which displays all the
    devices and their properties in flat table, instead of the tree viewer
    http://www.NirSoft.NET/utils/device_manager_view.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

     
  • I get the same files repeat KB and how to stop it?

    I get the same files repeat KB and how to stop it?

    The KB record number are KB2478663 and KB2518870.

    Mike

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update/how-to-stop-the-KB-file-from-keeping-repeating-to/21fb21b2-9a13-4261-9c1a-e7ef90a9e6a0

  • I get the same twice fax, Microsoft Fax and Scan team

    Why I get twice the same fax, name of the senders in one says: Microsoft Fax and Scan team, without sender name?

    Hello mikesun,

    ؠ you get the same fax duplicate from the same number?

    Try to configure the fax once more with the default settings. Here is an article that will give you information about configuring fax:

    http://Windows.Microsoft.com/en-us/Windows7/set-up-your-computer-to-send-and-receive-faxes

    Check the fax settings, there will be an option to select the Fax number you receive from the sender.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • I get the same error message and cannot open a PDF file

    I have a link to an application that I am trying to download and complete. By default the link my browser to open. what he does normally. However, this document was a mistake. He said that I need the latest version of Adobe. So I downloaded the application, open the PDF file in the app and get the same error message. Help!

    Hello

    You see the following error message when you open the PDF document?

    If so, it is a special type of PDF created with Adobe LiveCycle Designer form called "Dynamic XFA".

    Acrobat Reader mobile apps (for iOS, Android, Windows Phone) do not support XFA forms.

    Please download the PDF document on your Windows or Mac computer and open it with Acrobat Reader DC desktop version.

    Please let us know if you have a different problem.

    Sorry for the inconvenience.

  • Bought LR6 DVD but the installer does not connect to the internet for I can register it.  I downloaded the trial version to work around this problem, but I can't get the program to start.  I get the same message that I should connect to the internet and c

    Purchase DVD LR6 Adorama, but Setup does not connect to the internet so that I can record.  Internet works fine.   I have Adobe account.

    I went to Safari to Chrome and downloaded the trial version in the hope to bypass the DVD version, but I can't get the program to start.    I get the same message that I should connect to the internet and connect.  It seems impossible after 3 hours.  Spent an hour chatting with the support of the India.

    Also remove the cookie file and reg Lightroom then enter the serial number and check.

    Windows:

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    programdata %

    It will open the ProgramData folder. inside locate Adobe folder.

    Go to Adobe > Lightroom.

    Open Lightroom and delete all the files inside,

    Then run LR 6 and enter the serial number,

    Mac:

    (1) right-click on the icon in the Finder, then select the 'Go - To Folder' option.
    (2) you will get a text box, type in the following command and then press the 'return '. (" Do not miss ~ symbol" "')

    ~/Library

    It will open the folder of the user's library.

    (3) then navigate to Application Support > Adobe > Lightroom.

    Open Lightroom and delete all the files inside,

    Then run LR 6 and enter the serial number,

  • When I click on the download button opens a page with three small boxes, and I think that this means a wait, but they lasted more than two hours, unfortunately and I tried many things and each time gets the same, I work now want photoshop required a

    When I click on on the download button opens a page with three small boxes, and I think that it means a wait, but they lasted more than two hours, unfortunately and I tried much and each time gets the same thingit's working now, I want photoshop necessary and reminders even when I tried to buy the same thing happened to me Please I want to a quick solution

    Make sure that you have enabled cookies and clear your cache.  If he continues to not try to use a different browser.

  • Tent for 3 days of bridge to work. I was told it could read cache - tired everything including deleting and reloading - still getting the same message. PL; help ease that I am on a deadline. Bob

    Cannot read the bridge cache

    Tent for 3 days of bridge to work. I was told it could read cache - tired everything including deleting and reloading - still getting the same message. Computer restarted several times as well. Please help me I'm on a deadline. Bob

    Let me guess: you're under Windows?

    Have you tried a different cache folder location? Because Windows can limit the bridge to access the folder that you have now.

  • Could not get the same font in the swf file

    Hello

    I created a swf files in which the text was written using a particular font. When I run the swf files on other computers that do not have this font, the text gets displayed in different characters.

    How to get the same font in other computers also without having to install the font.

    I tried embedding fonts in the fla file. But I made the mistake to a place. Could someone help me understand?

    Thank you!

    Hello

    Finally, I found the reason for the display of incorrect fonts on different computers. It is the font settings.

    In the font settings, Anti alias has been defined as use device fonts. That's why he was choosing fonts of device on which the machine is not. Now, I changed it to anti-alias for animation. I was not even embed all fonts. It works perfectly.

    I do not change even from static to dynamic text text. Just changed the parameters of smoothing. Is this right? Could you tell me whether he set the anti-alias for animation or anti-alias for readability, I see no big difference between the two but?

    Thanks for your great support in due course.

    Thank you.

  • I get the same message: a script on this page may be busy, or it may have stopped responding

    Since a couple of days I get the same error message: "a script on this page may be busy, or it may have stopped responding." You can stop the script now, open the script in the debugger, or let the script continue. »

    I'm not a COMPUTER expert, however, I have read similar online messages and tried many steps such as:
    --deleting history navigation and cookies
    -Mozilla resetting to the factory settings
    -Uninstall and reinstall Mozilla

    Unfortunately, the problem is always the same. What can I do? I work from home and need internet to work 100%.

    Moreover, the navigation works fine in other browsers, but not Mozilla.

    Thank you

    This script is the culprit in the following message?

    A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger or let the script.

    Script: resource://gre/modules/addons/XPIProvider.jsm-> jar:file:///C:/Program%20Files/Mozilla%20Firefox/browser/extensions/%7B82AF8DCA-6DE9-405D-BD5E-43525BDAD38A%7D.xpi!/bootstrap.js-> resource://gre/modules/commonjs/toolkit/loader.js-> resource://gre/modules/commonjs/sdk/loader/sandbox.js-> resource://skype_ff_extension-at-jetpack/skype_ff_extension/data/jquery-2.1.0.min.js:28

  • Why I get the same messages even after compaction?

    I read my mail in the AM and remove most but will get the same messages still sometimes two or three times. I'm doing a click right and hit compact several times a day. There has been talk for a month or two?

    To diagnose problems with Thunderbird, try one of the following:

    • Restart Thunderbird with disabled modules (Thunderbird Safe Mode). On the Help menu, click "restart with disabled modules. If Thunderbird works as usual, there is an add-on or theme interfere with normal operations. You will need to reactivate the modules one at a time until you locate the offender.
    • Restart the operating system in safe mode with network. This loads only the basics needed to start your computer while allowing Internet access. Click on your operating system for instructions on how to start in safe mode: Windows 8, Windows 7, Windows Vista, Windows XP, OSX
    If the safe mode for the operating system to resolve the problem, there are other software on your computer that is causing problems. The possibilities include but not limited to: AV scanning, virus/malware, background downloads such as updates of the program.
  • photos has not been loaded for weeks (usually the browser chrome on PC windows at work).  I tried now on some other computers and get the same error message and I report every time.  can I do or just wait for someone to fix it

    photos has not been loaded for weeks (usually the browser chrome on PC windows at work).  I tried now on some other computers and get the same error message and I report every time.  is there anything I can do or just wait for someone to fix it?

    If you want any help here, you'll have to tell us what the error message.

    Which report you errors to?

  • Does not update, said prev version needs to update and restart. It of not, get the same error

    Old version of Firefox running. Tried to update and get the message that a previous version has not finished installing and computer needs to reboot to finish. I restart, then try to install the new version, but just get the same error. I also tried to uninstall and start again, but got the same exact message he needed to finish the update before it could be installed.
    Suggestions?
    Thank you!

    Do a cleaning (re) install and delete the folder of the program Firefox (C:\Program Files\Mozilla Firefox\).

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox if possible.

    • Do NOT remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data in the profile folder.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

Maybe you are looking for

  • Smart playlists are not updated to Live

    Update my rMBP 15 "to OS X 10.11.4 with iTunes 12.3.3.17 and all my smart playlists refuse to update when changes in the criteria of the song.  For example, a simple reading list that captures the 5 pieces of stars: Side is *. Update selected Live Th

  • Cannot add a ringing tone on Mac

    I converted a file to m4r. I tried to slide in the section ringtones from iTunes on my Mac, and regardless of how many times I did it, it does not appear. The ringtone is not found on my phone.

  • How to Remote Desktop?

    Well, I have a little problem it seems: I'm a programmer, and I'm afraid of the personal computer, that I use at the moment seems to be a bit outdated, that allegedly by a draw. So I was wondering where do I go for some sort of program that will upda

  • drive CD/dvd is not working

    My cd/dvd drive does not work. The message I get is to insert a CD. Now after using Mr. Fix (from microsoft) I even see the drivers on my computer. What should I do?

  • Size printing Adobe Acrobat fails

    Since our employees updated Acrobat, noboday sees no more printer-dialogue.We tried the shortcut cmd + p as well as to choose the print on the top of the application and the file Menu icon > print...nothing happens after choosing the options mentione