Which Language is known by only one programmer? and their names. If possible all details

This is my table structure
PNAME DOB DOJ GENDER PROF1 PROF2 SALARY
ANAND 12-APR-66 21-APR-92 M PASCAL BASIC 3200
ALTAF 02-JUL-64 13-NOV-90 M CLIPPER COBOL 2800
JULIANA 31-JAN-60 21-APR-90 F COBOL DBASE 3000
KAMALA 30-OCT-68 02-JAN-92 F C DBASE 2900
MARY 24-JUN-70 01-FEB-91 F CPP ORACLE 4500
NELSON 11-SEP-65 11-OCT-89 M COBOL DBASE 2500
PATTRICK10-NOV-65 21-APR-90 M PASCAL CLIPPER 2800
QADIR 31-AUG-65 21-APR-91 M ASSEMBLY C 3000
RAMESH 03-MAY-67 28-FEB-91 M PASCAL DBASE 3200
REBECCA 01-JAN-67 01-DEC-90 F BASIC COBOL 2500
REMITHA 19-APR-70 20-APR-93 F C ASSEMBLY 3600
REVATHI 02-DEC-69 02-JAN-92 F PASCAL BASIC 3700
VIJAYA 14-DEC-65 02-MAY-92 F FOXPRO C 3500
and title of this question is my question. How can i get the info. Please tell me with simple logic and efficient query.
I am enjoying sql queries...

IF OBJECT_ID('dbo.[test]','U') IS NOT NULL
DROP TABLE [dbo].[test]
CREATE TABLE [dbo].[test](
[PNAME] [varchar](10) NULL,
[DOB] [date] NULL,
[DOJ] [date] NULL,
[GENDER] [char](1) NULL,
[PROF1] [varchar](30) NULL,
[PROF2] [varchar](30) NULL,
[SALARY] [decimal](8, 2) NULL
INSERT [dbo].[test] ([PNAME], [DOB], [DOJ], [GENDER], [PROF1], [PROF2], [SALARY]) VALUES
(N'ANAND', '1966-04-12', '1992-04-21', N'M', N'PASCAL', N'BASIC', CAST(3200.00 AS Decimal(8, 2)))
, (N'ALTAF', '1964-07-02', '1990-11-13', N'M', N'CLIPPER', N'COBOL', CAST(2800.00 AS Decimal(8, 2)))
, (N'JULIANA', '1960-01-31', '1990-04-21', N'F', N'COBOL', N'DBASE', CAST(3000.00 AS Decimal(8, 2)))
, (N'KAMALA', '1968-10-30', '1992-01-02', N'F', N'C', N'DBASE', CAST(2900.00 AS Decimal(8, 2)))
, (N'MARY', '1970-06-24', '1991-02-01', N'F', N'CPP', N'ORACLE', CAST(4500.00 AS Decimal(8, 2)))
, (N'NELSON', '1965-09-11', '1989-10-11', N'M', N'COBOL', N'DBASE', CAST(2500.00 AS Decimal(8, 2)))
, (N'PATTRICK', '1965-11-10', '1990-04-21', N'M', N'PASCAL', N'CLIPPER', CAST(2800.00 AS Decimal(8, 2)))
, (N'QADIR', '1965-08-31', '1991-04-21', N'M', N'ASSEMBLY', N'C', CAST(3000.00 AS Decimal(8, 2)))
, (N'RAMESH', '1967-05-03', '1991-02-28', N'M', N'PASCAL', N'DBASE', CAST(3200.00 AS Decimal(8, 2)))
, (N'REBECCA', '1967-01-01', '1990-12-01', N'F', N'BASIC', N'COBOL', CAST(2500.00 AS Decimal(8, 2)))
, (N'REMITHA', '1970-04-19', '1993-04-20', N'F', N'C', N'ASSEMBLY', CAST(3600.00 AS Decimal(8, 2)))
, (N'REVATHI', '1969-12-02', '1992-01-02', N'F', N'PASCAL', N'BASIC', CAST(3700.00 AS Decimal(8, 2)))
, (N'VIJAYA', '1965-12-14', '1992-05-02', N'F', N'FOXPRO', N'C', CAST(3500.00 AS Decimal(8, 2)))
;with mycte as (
select PNAME,DOB, DOJ,GENDER,SALARY, count(PNAME) Over(partition by PROFs) cnt
FROM test t
CROSS APPLY (VALUES(PROF1),(PROF2))p(PROFs) )
Select PNAME,DOB, DOJ,GENDER,SALARY FROM mycte
WHERE cnt=1

Similar Messages

  • Showing desktop, then only one programme

    In Leopard and Snow Leopard, you could show the desktop, then click on one programme and only the last active window from that programme would be shown. It was great for dropping files on the desktop into Finder or such. I can't seem to get this to work in Lion, it shows all the windows open for all programmes instead.

    it shows each of the pdfs open but I have to create 20 pdfs and then combine them all. Then close. In previous version, all the individual files would open with only one application tab opening. That's what I want to get back to. I'm sure it's just a display setting somewhere.
    I'm using Vista.

  • Need to use only one sender and receiver communication channel.

    Hello Experts.
    I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
    For Eg;
    Sender                              
    D://dir1/file1 --->                  E://dir1/File1
    F://dir2/file2 ---->                 G://dir2/file2
    H://dir3/file3----->                 I://dir3/file3.
    Can this be achieved by using pass through scenario?
    Please let me know if the requirement is not clear.     
    Thanks in advance.
    Advit Ramesh

    Hi Advit,
    I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
    For Polling from multiple directories:
    http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
    Dynamic Configuration:
    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

  • Ever since I updated the operating system, itune doesn't play music on iphone 4. if it plays, it plays only one song and gets stuck.

    Ever since I updated the operating system, itune doesn't play music on iphone 4. If it plays, it plays only one song and gets stuck. I've tried to reconnect to the computer to see whethere there has been missing portion during the upgrade... but not really. does anyone have the same issue?

    What does "gets stuck" mean?
    It repeats?
    It stops playing?
    Have you tried the basics from the manual?  Restart.  Reset.  Restore.

  • Can iTunes be set to play only one song and then stop when the song is finished and not go on to play another unless commanded?

    Can iTunes be set to play only one song and then stop when the song is finished and not go on to play another unless commanded?

    If you uncheck all of the songs, they will only play if explicitly commanded. Command-click in a checkbox and they will all be unchecked. Command-clicking again will check the all again should you want to do that.

  • HT201342 i have a 10.6.8 mac os x system in a intel processor computer. how can I addressbook contacts to icloud. I tried exporting my  import my addressbook and failed, then exportind a vcard from all contacts and failed and finale only one vcadr and fai

    i have a 10.6.8 mac os x system in a intel processor computer. how can I addressbook contacts to icloud. I tried exporting my  import my addressbook and failed, then exportind a vcard from all contacts and failed and finale only one vcadr and failed. Something might i doing wrong

    I just had the same problem, I've updated to 10.6.8 yesterday, and since then the browsing are very slow, no matter what broswer I am using, the upload download speed are still the same. But browsing just take forever, It takes for example google.com 30 seconds to load. I have Extream high speed internet connection, 3 other computers, and the only one is having this problem is the Mac after the update.
    Something in this update screwed my browsing capabitilties, I tried downloading Crome browser, same issue.
    I hope there is a way beside TimeMachine to revert the latest update. I don't want to reformat as I am sure as soon as I am going to do the update it will cause the same problem.
    Model Name:    iMac
      Model Identifier:    iMac11,3
      Processor Name:    Intel Core i7
      Processor Speed:    2.93 GHz
      Number Of Processors:    1
      Total Number Of Cores:    4
      L2 Cache (per core):    256 KB
      L3 Cache:    8 MB
      Memory:    12 GB
      Processor Interconnect Speed:    4.8 GT/s
      Boot ROM Version:    IM112.0057.B00

  • My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    My imsg is not working with only one person and her imsg is working perfectly fine with her friends

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    From Apple:
    MacBook Air (Mid 2013): FaceTime HD Camera might not work after OS X 10.8.5 update
    Yes, a fix is coming soon.

  • HT1349 Win 7 64 bit:  iTunes won't install, get error code 2324 or installer says I am not logged on as administrator:  only one user and it is an administrator user.

    Win 7 64 bit:  iTunes won't install, get error code 2324 or installer says I am not logged on as administrator:  only one user and it is an administrator user.

    Hey there k8ei,
    Thank you for using Apple Support Communities
    I found this article for you to help troubleshoot installing iTunes named Trouble installing iTunes or QuickTime for Windows found here http://support.apple.com/kb/HT1926.
    Here is a general overview on where the troubleshooting will take you:
    General installation troubleshooting
    1. Empty your Temp directory and restart
    2. Completely remove iTunes and related components
    3. Install the latest version of iTunes
    Additional troubleshooting
    After performing each of the steps below, you will need to completely remove iTunes and related components and then install iTunes again to determine whether the issue is resolved.
    1. Make sure you have administrator account access
    2. Make sure your folder names don't contain strange characters
    3. Get the latest Windows updates
    4. Disable other conflicting software
    All the very best,
    Sterling

  • Why are my text messages being sent through my Apple ID to only one person and through my phone number to all other contact when using iMessage?

    Why are my text messages being sent through my Apple ID to only one person and through my phone number to all other contact when using iMessage?

    Is this one person using an iphone or ipad for imessaging?

  • IPhone plays only one playlist and won't others

    Hi guys,
    can anyone help me; I have my iPhone for so long time, always updated with latest version of software, but recently after latest update 3.1.3. iPod plays only one playlist and won't play any other. Also can't enter any other artist file or videos. When I try to, Ipod closes! The rest of phone works fine.
    Could it be problem with latest update? How can I reset latest update?
    Thanks!

    The latest update works fine for most people, but your's might not have been applied correctly for some reason.
    Try the standard troubleshooting steps in order:
    Restart your phone: Press and hold the Sleep/Wake button for a few seconds until a red slider appears, and then drag the slider. Then press and hold the Sleep/Wake button until the Apple logo appears.
    Reset your phone: Press and hold both the Sleep/Wake button and the Home button for at least ten seconds, until the Apple logo appears.
    Restore your phone: Restore: http://support.apple.com/kb/HT1414
    Make an appointment to have an Apple Retail Store Genius look at your phone. http://www.apple.com/retail/geniusbar/
    If you're in the US, call U.S. iPhone technical support: 1-800-MY-IPHONE (1-800-694-7466)
    If somewhere else, find the contact number here: http://www.apple.com/support/contact/phone_contacts.html

  • Firefox stop to work in one time,and i have to restart all because ff dont wor when i try to change page with mouse

    firefox stop to work in one time,and i have to restart all because ff dont wor when i try to change page with mouse

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • HT4910 I accidentally deleted my AppleID off of one device and it deleted my account all together.

    I deleted my AppleID off of one device and it deleted my account all together on every device. Have I lost all of the apps on my devices if I create a new account and sign in using my devices? Or is there a way to get back the deleted account?

    What, exactly, did you do to "delete" your ID off of your device? Where did you delete it? What you do on one device has no effect on any other device, unless you are talking about changing your Apple ID or something along those lines. So we need to know what you mean by "deleted" it, and what you did to do that.
    Cheers,
    GB

  • Due to NAS issues, when I started a new time machine backup it did not have the old backups available. My question is do I need to delete them or will time machine automatically reclaim the space?  Only one Sparse Bundle, same name.

    Due to NAS issues, when I started a new time machine backup it did not have the old backups available. My question is do I need to delete them or will time machine automatically reclaim the space?  There is only one sparse bundle but when I enter time machine I don't see my historic backups.  I use a synology DS212 for my time machine.  Started a new backup which is 218gb but it says 618 gb is occupied  therefore it looks like 2 or 3 backups are still on the disk. Before my NAS issues the last backup was in 2014.  As you can see there is a second sparse bundle from 2012.  Not sure what that is.

    This is an old message now, but what happened to me similarly was:
    I had a major computer crash and through complicated pathways ended up reinstalling (Mavericks) as a new user (long story).
    At least I had good Time Machine backups on an NAS drive (Synology DS212j), or so I thought - when I started Time Machine up again, the old backup file was gone, replaced by a new one using my "new computer" name. The old file was gone both by directly mounting the NAS drive and by clicking "Enter Time Machine".
    It's like I had {OldShareName}.sparsebundle and then it was replaced by {NewShareName}.sparsebundle, all of the old info vanished.
    (I have spent a week finding old files elsewhere and have completed a satisfactory self-restore. It pays to "archive" [my own variation of] as well as "back-up".)
    My belief is that if this were a wired-netword-drive, e.g. plugged right into my iMac with a USB cable, then the old file would have remained.
    But this is an NAS drive, connected directly to my Airport wireless router, and I don't know the significance of the fact that it stores its Time Machine backups as "sparsebundle" files rather than simply as plain(er) files.
    As usual when things get complicated with computers (not just Apple computers) there was never a warning message. Something like "YOU'RE ABOUT TO DELETE A TIME MACHINE BACK-UP FILE!!!" would have made my life a lot simpler.
    BTW, I did try a "restore from Time Machine" option the first thing I had my "new computer" (old hardware, 2009 iMac) up and running, using Migration Assistant, and it ran for many hours and then failed in the wee hours - what that has to do with anything I'm not sure.
    I'm not sure that I have a question about this other than "why do these things happen to me?", but it's a warning. Apart from that I've been very happy with the stability and reliability (but not the cost or set-up complexity) of NAS vs. directly-cabled external drives.
    Charles

  • Is creation of only one transport req(Customizing or WorkBench) possible

    Hi,
    In Urgent Correction when the correction is set into development the transport request is created. The system creates 2 transport requests: Customizing and workbench. Is there any possible way in which i can determine which sort of transport request gets created (either customizing or workbench). I want that only one type of transport request should be created.
    Regards,
    Kriti Bhalla.

    well I did as I wrote. Just in case anybody needs it, this is how I add new messages that will be processed later by BPEM background job
    1. Calling FM BAL_LOG_CREATE
    2. Calling FM EMMA_LOG_PROCESS_START
    3. Adding messages with FM BAL_LOG_MSG_ADD
    4. Calling FM EMMA_LOG_PROCESS_END
    5. Calling FM BAL_DB_SAVE  (not sure if really needed)
    if you need to add messages for different objects within one BPEM Job just repeat points 2 - 5 for each object.
    Best Regards
    Marcin

  • With only one computer and email address is it possible to create two separate itune accounts.

    my husband and I each have Iphones but only one itunes account - this is causing problems in playing words with friends, etc. as it appears we need separate accounts. also when we sync our phones we both get all the same data and we really need separate data.  how can we fix this

    method one from the following support article should do the trick: How to use multiple iPods, iPads, or iPhones with one computer.

Maybe you are looking for