count gold

Hi all

I have a question, if I have a query, the following text:

Select * from EMP

where hiredate = 12 March 1981 ' or SAL = 5000;

The result is

PRESIDENT OF KING 783917/11/1981-00:00:00 500010
7900 JAMES CLERK 7698 1981/12/03 00:00:00 95030
7902 FORD ANALYST 7566 1981/12/03 00:00:00 3000

20

How can I get the number of the column hiredate and DSAL group, i.e.:

the lines including the hiring date = 12 March 1981 ' are 2 and SAL = East of 1/5000 lines and lines total is 3.

Thanks in advance

Select result | "and is the total of lines | TO_CHAR ((select count (*) from emp where hiredate = date '' 1981-12-03 or sal = 5000)) result

from (select "lines including the hiring date =" 12/03/1981"' | ')

number of cases (cases when hiredate = date ' 1981-12-03' then 1 end) when 1"then" other end "are" |  ' ' ||

TO_CHAR (count (case when date hiredate = ' 1981-12-03' then 1 end)).

"and ranks for SAL = 5000' | number of cases (cases when sal = 5000 then 1 end) when 1"then" other end "are" | ' ' ||

TO_CHAR (count (case when sal = 5000, 1 end)) result

WCP

)

RESULTS
the lines including the hiring date = 3 December 1981 ' are 2 and lines SAL = 1/5000 and lines total is 3

Concerning

Etbin

Tags: Database

Similar Questions

  • System broke down and how I can't restore my recovery disk or my windows disc premium one should buy another app GOLD...

    Microsoft Windows system report I am crashed right now I can't restore my recovery disk or have my windows premiun a disc buy a GOLD RECORD ANOTHER no: Please tell me I can't restore my computer right now im not on my count all ready and I have to kmnow pls before returning home that they have a free restore disk set my key it after me tell me please now Lee I really want to rto be sure after that long fight thank you cordially for you inquiry

    Hello

    1. what happens when you start on the desktop?

    2. do you have an error message?

    3. don't you make changes before that this problem occurred?

    4. are you able to boot the computer to any mode?

    Method 1:

    Start the computer in safe mode and try to run the system restore.

    Step 1: Startup options (including safe mode)

    http://Windows.Microsoft.com/en-us/Windows-Vista/advanced-startup-options-including-safe-mode

    Step 2: run system restore and check. What is system restore? http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    Method 2: Do startup repair in Windows recovery.

    What are the system recovery options in Windows Vista?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-Vista

  • For the gold watch bands

    I want a new group for my Apple Watch Gold but I can't find with gold (like the button on the sportband) details, everything is money! Apple doesn't sell strips separate w Gold (or pink) details or I simply cannot find them?

    Hello

    At the present time, when you buy woven Nylon and bands Sport separately as accessories, only bands that offer a colored PIN or loop are the strip of black Sport (which is available with a black space pine) and the strip of black woven Nylon.

    http://www.Apple.com/shop/watch/bands

    If you want Apple to consider offering more bands - like accessories - with loops of color and pine, you can submit your comments here:

    https://www.Apple.com/feedback/watch.html

  • The battery: Cycle Count

    I recently bought a new macbook pro 13 inch (my first macbook never) and decided to read a little about the life of the battery.

    To my surprise, I realize that my cycle was 7!

    (Note: I only bought the macbook for about 4 days and charged for 3 - 4 times)

    And according to the sites, cycle counts only account all costs 100% (fresh short accumulation).

    In addition, my battery life estimated at 05:10 hours at 92%, but jumped to 08:40 hours to 84%.

    Should I be worried?

    I read that you can actually leave your macbook to charge overnight, but do you do with the power supply on or off?

    What is the best way to charge your macbook?

    If you are not satisfied with this experience, please return it and get another.

    You can return a Mac within 14 days of the purchase.

    For more information:

    http://support.Apple.com/en-us/HT204054

  • I want to install windows os(not genuine) in the mac, I use mac air beginning 15, 4 GB of ram, 128ssd.     I want to play counter strike (overall offensive) in the windows operating system.     is 4 GB of ram enough or it takes 8 GB of ram.

    in fact, I want to install windows os (not authentic) because I'm fond of counter strike

    so, mac support this game?

    or it takes 8 GB ram to play counter strike?

    operating system windows (not authentic) will cause no effect on mac?

    If I install the windows on mac operating system, I will award 58 GB in the windows operating system and remains to mac, goes no problem in the future, due to the windows operating system?

    ALSO POINT OUT THE ADVANTAGES AND DISADVANTAGES OF INSTALLING WINDOWS ON A MAC.

    operating system Windows (not authentic)

    This means that you ask for assistance on the use of a pirate copy of Windows?

    If you install Windows, you have the advantage of being able to run Windows and the inconvenience of having to deal with all the viruses and stuff for which Windows systems are prone.

    Why not just buy the Mac version? It seems relatively inexpensive: http://store.steampowered.com/app/730/

  • iCloud says it is complete, but it is count files that do not exist

    Hello world.

    I have a problem with iCloud reports that it is full, but when it calculates the space that I used, it's counting the things that have been deleted and removed from all appliances (including bins/albums "recently deleted").

    I was testing my iPad battery life, because I want to do a shoot and I wanted to see how long I could record for. On both devices, I made a video of 10 GB and a 20 GB video.

    As soon as I finished filming, I deleted the videos. Also, I went into the album "recently deleted" and removed them.

    A few days later, however, I got a warning: my 50 GB of storage iCloud was completely full, and had ceased to backups.

    I looked at my MacBook Photos app, and of course, the videos have been synchronized and downloaded, despite me to delete and remove the "recently deleted".

    I deleted the videos from my MacBook photo library and once again removed from the tray.

    My photo library real iCloud should take 19 GB. However, when I looked at the Finder to "Library.photoslibrary Photos", it took 49.5 Go. I dug into the library, and despite videos being removed from the MacBook photo library, the actual files themselves were still sitting here in my library.

    In addition, iCloud had ceased to sync my actions regarding these two files, so deleting a device has not removed the from all devices. I had to go through this same process on my Mac Mini, my iPhone etc.

    But on all my devices, if I go to "storage utilization & iCloud", he always tells me that my photo library iCloud is 49.5 gb and my storage is full.

    These files do not exist on any device. They are not visible when I go on iCloud.com - they are nowhere.

    What can I do? Still, the synchronization does not reliable (a few photo editing are not synchronized between devices now and some destruction of photo are not replicated between devices - obviously, 'something' is a little messed up because of these two files).

    My only option will be to disable and remove my iCloud photo library and wait 30 days?

    If anyone can give me any help, I would appreciate it.

    The iPads are: Mini 2 and Pro, originally in iOS9.3.5 and now on 10.0.1; Macs are: retina 2014 of the MacBook Pro and Mac Mini end of 2012, both on OS X 10.11.6. I've done different things, like turning off iCloud photo library on all devices, deleted photos, emptied bins, rebooted devices, switch things on.

    Thank you all

    What happens when you turn on the backup/disable under settings > iCloud?

  • How many time you listen to a song to count as "played" (= 1 flow)?

    How many time you listen to a song to count as "played" (= 1 flow)? I know it is 30 seconds for Spotify, is it different for music from Apple?

    Thank you

    Leo

    Until the end of the song.

  • iPhone 6 s gold 32 GB

    Hi where can I buy iPhone 6s gold 32 GB for £499? It says online that he is currently not available, the price would be the same in-store?

    prices would be the same in-store

    the appliance does not go on sale until the 09.09.16 00: 01 Pacific standard time and does not begin to ship until the 16.09.16

  • Help formula: count the number of whites in a column "up to the...» »

    name string metric
    Matthew 5
    brand 1
    brand optimusPrime
    brand
    Luke 2
    Matthew jamesLikesSteak
    John 3
    Luke lukingGood
    Matthew
    Luke
    John johnnyPop
    John

    Hey guys - so I do business with a bit of a problem in number. I have a number table - the table above is a simplified representation of the corresponding parts of the table. The left column 'name' is a series of 12 names repeated and 0 missing values. The "string" middle column is a column that has a lot of missing values by a formula based on another column that is not relevant to this problem. Who is not missing is all strings. The problem I have is in the 'metric ': right column

    I am trying to create a dynamic formula which will result in the numbers and blanks, exactly as above. My goal is to create a formula that, for each line, account the number of whites in the column 'chain' until we reach an empty 'string' which occurs next to "namesake" as in the line of housing the formula - and if there is no such a situation, so that it is empty. For example, if the second row (including header row) bears the name of "Matthew". The next time that a white 'string' occurs next to the name "matthew" is tenth. The number of whites that occur between the second row, and the ninth is 5 (lines 2, 3, 5, 6 and 8). I manually coded a small part of the table to use something like this (which would be installed in cell C2 in this example):

    = IF (B2 = "", COUNTBLANK(B2:B9), "")

    This formula produces the correct number for the first row of data (5), but it does not dynamically fulfill what I'm trying to do this since I am currently having the formula to find the next blank 'chain' that occur next to "name" in the formula line.

    I hope that someone has encountered anything like this before. I tried to go through all the functions and numbers from formulas, but so far I have not found much success.

    Hi BaronDe,

    I need to ask, "why you try to do this? So what you want is possible it will be a complex solution. It may be much easier to get your information in a different way. Indicate these blanks?

    You should know that COUNTBLANK() will not count a cell with a formula, even if this formula resolves to «»

    Quinn

  • fade the color rose gold?

    I want to buy a Apple Watch in rose gold, but want to know if the color fades over time? My previous time of pebble in yet dissipated.

    Hello

    The case of Apple Watch Sport has an anodized finish (color but pink isn't a painting that can fade):

    "Each case are machined and polished, then sanded with pearls microscopic zirconia to create a uniform, satiny texture. A special anodising process creates a hard, clear outer layer that helps protect against scratches and corrosion. »

    To avoid damage to long-term of the watch, follow Apple's handling and cleaning, including:

  • Update resulted today in count of the number of messages in different folders disappear, except new

    I was asked to update to Thunderbird and did, when I came back later in the afternoon, the messages were always in each folder (sent for example), but the count of the number of messages in each category had disappeared.

    What about the small thing square on the line with the name above the part of the file. He has options for/unread and size

  • Summary of complex scenario (counties)

    Hi all

    Looking for inspiration and ideas with this little teaser

    I'm trying to find a common approach to the production of four counts (A, B, C and D) indicated in lines 1 to 5 below. This function of a table that contains about 4 000 entries.

    In affect, I try to summarize the different permutations in the classifications of four cells show in the image above, using a common approach. I might add a column for each company and use wild-card account, but I'd rather keep the table of (imported) origin of tact - I know that I could build a table of distinct society in another piece of work, but there must be a smarter way to achieve this.

    The legend below presents an overview of how the data looks like with different options (style truth table). The reference column contains a master list starting with RE - unique references.

    NC and P columns contain company names. There are two additional columns and the television that contain one or more numbers starting with- and TV - respectively.

    The idea is to check that the RE has a link to references or TV in the respective columns when there is a company name in the naming context and / column P

    There are a number of scenarios based on conditional counts in two columns: following NC and P with the possible permutations:

    Swap 1: Where there is a company name in the column "NC" count the number of:

    • RE links to OF
    • RE TV links
    • RE links to OF and TV
    • RE completely unrelated
    • More than one company with no link

    Swap 2: Where there is a company name in the column 'P' count the number of:

    • RE links to OF
    • RE TV links
    • RE links to OF and TV
    • RE completely unrelated
    • More than one company with no link

    Switch 3: When there is an entry in the column "NC" both "P":

    • RE links to OF
    • RE TV links
    • RE links to OF and TV
    • RE completely unrelated
    • More than one company with no link

    At this point, my head began to ache - would be very grateful and ideas on how this could be done.

    Thanks in advance

    Perry

    If I understand correctly, you can compile your different counts using COUNTIF with the * wildcard, something like this:

    For more convenience in formulas to set up your data in a table and your account in another.

    Here are the formulas in the table 'Account':

    B2: = COUNTIFS(Data::$B,"*RE*",Data::C,"<>"&"",Data::$F,"*DE*")
    C2: = COUNTIFS(Data::$B,"*RE*",Data::D,"<>"&"",Data::$F,"*DE*")
    D2: = SUM(B2:C2)
    B3: = COUNTIFS(Data::$B,"*RE*",Data::C,"<>"&"",Data::$G,"*TV*")
    C3: = COUNTIFS(Data::$B,"*RE*",Data::D,"<>"&"",Data::$G,"*TV*")
    D3: = SUM(B3:C3)
    B4: = COUNTIFS(Data::$B,"*RE*",Data::C,"<>"&"",Data::$F,"*DE*",Data::$G,"*TV*")
    C4: = COUNTIFS(Data::$B,"*RE*",Data::D,"<>"&"",Data::$F,"*DE*",Data::$G,"*TV*")
    D4: = SUM(B4:C4)
    B5: = COUNTIFS(Data::$B,"*RE*",Data::C,"<>"&"",Data::$F,"",Data::$G,"")
    C5: = COUNTIFS(Data::$B,"*RE*",Data::D,"<>"&"",Data::$F,"",Data::$G,"")
    D5: = SUM(B5:C5)

    You can learn more about COUNTIF here (you can also access it via help > formulas & functions help menu.)

    For more information on the search for wildcards of 'wild' in help > formulas & functions help

    The function works with pairs of columns-condition, where you add a reference to a beach (usually a column because it's more convenient) and then apply a 'condition' against it, indeed the application of several filters.

    You can add pairs more than necessary.

    SG

  • How to put the "counting" effect as a video in the background of another video play WITHOUT him covering the original video?

    If you got confused of what I said, I'm basically saying that I put the color to count the white text, but the white color will cover up to another video I play there not "transparent" color? Thank you!!

    How is this created "count"? With the help of a generator of FCP X? Or is it a separate video that you created?

    If it's a separate video, you need make the background transparent and must be exported in a codec that supports alpha channels - it would be ProRes 4444.

  • Counting of string separated by commas in the cells of a column

    Hi all

    Try to pass some of my Excel spreadsheets in numbers. I'd appreciate help with a specific string of text/number in the cells in a column. In the example below (no sheet of complete works) is a column, the packs work (WP01, WP02 and so forth)-which means work packs a particular Test & Validation document (e.g. TV-102) applies to.

    I would like to be able to simple counting the number of occurrences, say "WP05", is applicable. If I use COUNTIF, on the "WorkPack" column, he has only the cells that contain only the string "WP05" (i.e. in the sheet, I work with, I know there are 22 entries for "WP05" in the column of pack work, but only the 14 account)

    Note: I am building this on my MAC, but would like to be able to access and use these sheets on my iPad - don't know if that makes a difference.

    Any suggestions / ideas?

    Thank you in advance...

    ATB Perry

    ID

    Paper group

    WorkPack

    TV-91

    Validation of NFR

    WP05 WP06

    TV-102

    Certificate of conformity

    WP05 WP06

    TV-103

    Validation of NFR

    WP05 WP06

    TV-206

    Test EN

    WP05

    TV-207

    Test EN

    WP05

    TV-208

    Test EN

    WP05

    TV-209

    Test EN

    WP05

    TV-212

    Certificate of conformity

    WP01, WP02 WP03, WP04, WP05, WP06, WP07, WP08 MICROSOFT WINDOWS CURRENTVERSION, WP09, WP10, WP11, WP12, WP13, WP14, WP.15

    TV-213

    Validation of NFR

    WP01, WP02 WP03, WP04, WP05, WP06, WP07, WP08 MICROSOFT WINDOWS CURRENTVERSION, WP09, WP10, WP11, WP12, WP13, WP14, WP.15

    TV-214

    Test EN

    WP01, WP02 WP03, WP04, WP05, WP06, WP07, WP08 MICROSOFT WINDOWS CURRENTVERSION, WP09, WP10, WP11, WP12, WP13, WP14, WP.15

    TV-215

    Validation of NFR

    WP01, WP02 WP03, WP04, WP05, WP06, WP07, WP08 MICROSOFT WINDOWS CURRENTVERSION, WP09, WP10

    TV-308

    Validation of NFR

    WP01, WP02 WP03, WP04, WP05, WP06, WP07, WP08 MICROSOFT WINDOWS CURRENTVERSION, WP09, WP10, WP11, WP12, WP13, WP14, WP.15

    TV-338

    Test EN

    WP05

    Here's how I would approach (without more):

    Add additional columns to your table (those titled "WP01',"WP02", etc.).  Enter the names as shown

    The first line is a heading row.

    Also... Add an extra line at the end and make a footer row

    D2 = (LEN ($C2) −LEN (REPLACE ($C2, D$ 1, ""))) ÷LEN ($1 D)

    It's shorthand dethrone select cell D2 and type e (or copy and paste it here) the formula:

    = (LEN ($C2) −LEN (REPLACE ($C2, D$ 1, ""))) ÷LEN ($1 D)

    Select cell D2, copy

    Select cells D2 the bottom of column R, paste

    in the footer row (row 15 of this example) iff the following formula:

    D15 = Sum (D)

    Select the cell D15, copy

    Select the cells D15 thru R15, dough

    I could never find 22 WP05 instances (even when I search your message on this web page):

  • Numbers: Count the number of times that a country occurs in the list

    A bit of history... I use version numbers 3.1 (OS X El Capitan 10.11.3)

    I have a list of countries of origin of the students in my school.

    I would like to have a form of analysis of the how many times a country occurs in the list.  IE: Australia 13, England 46, China 2, etc.

    I tried to use the COUNTIF function but I can't seem to make it work.

    Thanks in advance

    Assuming that the column with the country of origin is the D column

    Create a second table as shown where you can summarize the country of origin.

    in the tables of bothe, the first line is a heading row.

    in the table on the right, enter the list of countries in column a.

    B2 = COUNTIF (student Roster::C, A2)

    This is short hand dethrone select cell C2, then type (or copy and paste it here) the formula:

    = IF (counta (a2) > 0, COUNTIF (student Roster::C, A2), ' ')

    Select cell C2, copy

    Select cells C2 at the end of the C column, paste

Maybe you are looking for

  • How do you see the State of the download?

    downloaded a file... would like to see download status... will display in the screen of the notification. only shows the status...

  • Firefox 9.0.1 crashes when writing texts. Tried everything, can't diagnose the problem

    In safe mode FF does not block when I type the text.I tried then disable all add-ons, after that I reworded in normal mode, it did not help.I did a new install of FF, it also has not helped.I tried to disable anti viruses, nothing.I can't understand

  • HP ac123 tx: F3 key does not not on HP ac123 tx

    Hello My f3 brightness key does not work, but somehow the f2 button works. When starting laptop, it shows full brightness indication and screen stands still, until I press windows or the change of volume button (f7/f8). I have already updated the lat

  • HP 15f009wm: removal of hard disk, HP 15-F009wm

    I got it from my father, he didn't like it, built it a desktop computer, so now I have the top of the tower. It of Nice, got Windows 7 to work on it, I noticed there is no HARD drive access door, I really don't like if there is no guarantee of more.

  • moved taskbar at the bottom next

    Recent.y, no reason apparent, my taskbar crossed form the bottom of my Start menu to the left side, running from top to bottom. How can I move it back to where it was at the bottom?