Want to select students who have duplicate addresses...

Hi,
In regular sql, I would do:
select student_id, count(student_id)
group by student_id
having count(student_id) > 1
how can i accompish this is discoverer?
i tried to do a totals on name:
but I do not have access to the total field to use in a condition.
Pls help, screen shots are appreciated... tx, Sandra

Hi Michael,
this is the generated sql:
1) IT IS using STUDENT:
I am new to Discoverer (have Microsoft Access background0 and
have noticed that Discoverer will throw in a table that i have not EXPLICITLY asked for.
Pls advise
2) I tried the trick of using MA twice in OR condition and am getting error msg when try to do OR conditio
of ambiguous error.
pls advise, tx, sandra
SELECT DISTINCT E102375 as E102375,E102392 as E102392,E105323 as E105323,E111001 as E111001,E113818 as E113818,E116608 as E116608,E117423 as E117423,E120159 as E120159,E120389 as E120389,E120422 as E120422,C_2 as C_2,C_1 as C_1 FROM ( SELECT E102375 as E102375,E102392 as E102392,E105323 as E105323,E111001 as E111001,E113818 as E113818,E116608 as E116608,E117423 as E117423,E120159 as E120159,E120389 as E120389,E120422 as E120422,C_2 as C_2,C_1 as C_1,NP100 as NP100 FROM ( SELECT o100055.ADDRESS_END_DATE as E102375,o100055.ADDRESS_STATUS_IND as E102392,o100055.CITY as E105323,o100049.ID as E111001,o100049.NAME as E113818,o100055.POSTAL_CODE as E116608,o100049.PROGRAM as E117423,o100055.STATE_PROVINCE as E120159,o100055.STREET_LINE1 as E120389,o100055.STREET_LINE2 as E120422,SUM(( 1 )) OVER(PARTITION BY o100049.ID ) as C_2,COUNT(o100049.ID) OVER(PARTITION BY o100049.ID ) as C_1,SUM(( 1 )) OVER(PARTITION BY o100049.ID ) as NP100
FROM ODSMGR.ACADEMIC_STUDY o100049,
ODSMGR.ADDRESS o100055,
ODSMGR.PERSON o100321,
ODSMGR.STUDENT o100384,
ODSMGR.STUDENT_ATTRIBUTE o100386
WHERE ( (o100321.PERSON_UID = o100055.ENTITY_UID(+))
and (o100321.PERSON_UID = o100384.PERSON_UID)
and (o100384.PERSON_UID = o100049.PERSON_UID AND o100384.ACADEMIC_PERIOD = o100049.ACADEMIC_PERIOD)
and (o100384.PERSON_UID = o100386.PERSON_UID(+) AND o100384.ACADEMIC_PERIOD = o100386.ACADEMIC_PERIOD(+)))
AND (o100049.ACADEMIC_PERIOD IN (:"Academic Period"))
AND (o100055.ADDRESS_STATUS_IND(+) IS NULL )
AND (o100055.ADDRESS_TYPE IN ('MA'))
AND (o100049.REGISTERED_IND = 'Y')
AND ( ( o100049.COLLEGE NOT IN ('MD') OR ( o100386.STUDENT_ATTRIBUTE IN ('M1','M2','M3','M4') ) ) )))
WHERE ( ( NP100 ) > 1)
ORDER BY E113818 ASC ;

Similar Messages

  • ORA-00054 - Find user who have lock

    Hi,
    I'm using "select for update NOWAIT" in my application for editing records. It works but after I catch ORA-00054 I want to find username who have the lock.
    The basic step is propably to query view v$lock and propably after then some else view.
    Thanks for any idea/solution
    SASA

    You'll need to scroll down a while to get to your particular question in the thread I linked... I believe it's about a third of the way down.
    It is not possible to know who is locking a particular row unless there are two sessions that are blocking each other. If session 1 has a lock on a particular row and session 2 requests a lock on that same row and session 2 is waiting for that lock to free up, session 3 can query the v$lock table to see which session holds the lock and which session is waiting for the lock. Assuming everyone is logging in with their own user name, you can join this information with v$session to find out the username of the person holding the lock. In your case, though, no session is ever blocked, so you cannot determine who owns the lock.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • For those who have taken SCJA

    Are the questions on the SCJA of the same difficulty as represented in the on-line test(s) here:
    http://193.192.249.9/ExamScam/get.jsp
    Or, is the author of theses 'ExamScam's, actually making the tests look harder than they are to spook people into buying their products?

    No spooks there!
    The exam questions are extremely similar to the ones you actually experience on the exam.
    Which questions did you find hard? The server and client technology questions are tough, but that's probably the toughest part of the exam.
    The OO and UML mock exam simulations are right on target, emphasizing the is-a and has-a type stuff.
    By the way, students who have bought the books, and taken the exams have done amazing - we're talking scores in the high 90's.
    By the way, I've actually posted a few new mock certification exams as well:
    http://studyguides.scja.com/ExamScam/sunjavacertifiedtutorialsandmockexams.jsp?link=mockexams
    Enjoy!
    -Cameron McKenzie
    http://www.scja.com
    http://ww.portorials.com
    http://www.scwcd.com

  • DUPLICATE ADDRESS BOOKS... ONE CONTAINS MY APPS

    I have duplicate ADDRESS BOOK folders on my dock. One contains my addresses and the other ADDRESS BOOK folder contains my APPLICATIONS !
    I am missing my APPLICATION FOLDER from the dock. I am a very new IMAC user  .Help please

    One of those is your Applications folder, being displayed as a stack with the top item (Address Book) on top.  Hover the mouse over each one to see the name.  The Applications folder should be the one over near the trash can.  Control-click the Applications folder and choose Folder in the Display As section of the menu that appears.

  • When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page.

    When printing a list in Address Book, how can I select more than the default Attributes and keep them selected when I print again? I want to print ALL information for contacts so I have email address, notes, phone, company, title, etc all on one page. I don't want to have to check off an additional 5 or 6 attributes each time I print out contact information. Is there a way to change the default setting for printing lists, so it is not just "phone," "photo," and "job title?"

    I have a user who wants to do this same thing. I did not find any way either to default the attributes to anything other than what you see the first time. Seems like such a trivial thing, hard to believe they do not allow it. I did find a program for this called iDress but I can't seem to download it from any links on the Internet. Not sure if it is free or not, but it was recommended by a link on the Mac support site.

  • Contacting Other Apple Discussions Members Who Have No E-mail Address

    Hello All;
    How do we contact other Apple Discussions members who have no e-mail address or contact information in their public profile listing? Some years ago, I was able to do this in the Apple Discussion Boards. There used to be a 'send e-mail to this person' icon in the profiles listings.
    Thank you.

    a brody wrote:
    If they are active in a thread you are watching, you can reply to them and ask them to e-mail you. Be careful though, these boards are public, and can be scanned by "bots" that belong to spammers. Do not use the @ symbol in your e-mail address, and instead use the word AT to represent that symbol. That at least will spoof the "bots."
    I don't think that works any more, nor does using "DOT" in place of the symbol. It is better to create a graphic of "name at site dot domain" and then just paste that in where you want to put your email address. Of course, it is easier to do that on a web page then it is to do it here.

  • When one or more family members who have been sharing one iTunes account wants to create their own iTunes account can they each upload the music/apps from the shared iTunes on their devices to the new iTunes account?

    When one or more family members who have been sharing one iTunes account wants to create their own iTunes account can they each upload the music/apps from the shared iTunes on their devices to the new iTunes account? 

    Yes. I would clarify your statement about the "shared" iTunes Library though. If you want each iOS device to have its own music library, you should create separate user accounts for them. Read:
    iTunes: How to share music between different accounts on a single computer
    How to use multiple iPods, iPads, or iPhones with one computer

  • HT201342 How will this benefit me. I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or

    I have been asked to set up an Icloud account by Apple.
    How will having another icloud email benefit me. I have my work email which is all i require, but had to set up a @me account to get email on my Macbook.
    I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or 5 times.
    My notes are duplicated, i have to delete my emails individually on all devices so whenever i put my phone on, all the emails i have deleted at work re-appear on my phone and again the same thing happens on my Macbook pro. I seem to spend all my time deleting emails 3 times.
    Is there something simple in the set up of these that i am missing?
    Any help would be appreciated

    I have been asked to set up an Icloud account by Apple.
    How will having another icloud email benefit me. I have my work email which is all i require, but had to set up a @me account to get email on my Macbook.
    I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or 5 times.
    My notes are duplicated, i have to delete my emails individually on all devices so whenever i put my phone on, all the emails i have deleted at work re-appear on my phone and again the same thing happens on my Macbook pro. I seem to spend all my time deleting emails 3 times.
    Is there something simple in the set up of these that i am missing?
    Any help would be appreciated

  • I have several disks with many comedy routines;I want to select a few from each disk and combine them to one disk for my personal use.How?

    I have several disks with many comedy routines;I want to select a few from each disk to make one single disk for my personal use.How?

    Copy the routines into a new folder on your hard drive. Then burn the folder to a new blank disc using Disk Utility.

  • I don't want to know how to delete duplicate photos anymore. I would like to know why Apple have not put in delete duplicate option menu in iPhoto? Very curious. Is it to frustrate users, so they have to go out and buy another apple photo product?

    Just want to know why Apple have not made an options menu to remove duplicate photos in iPhoto? I know about downloads you can purchase to delete Dups, but I'm very interested to find out from apple themselves as to why they left this out, to die without knowing this is like having viruses on a pc or waiting for the web page to pop up on windows...
    Option
    A. Is it to annoy the user, to frustrate them enough to go out there and buy another apple photo product?
    Or
    B. Is it to annoy the user, to frustrate them enough to commit suicide, to reduce population in the world?
    Is there a third reason? Can someone help me, otherwise I'll have to go with option B.

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • Birthday calendar for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    my birthday events for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    I have uploaded the InDesign file so that you can take a closer look at:
    http://www.hsdesign.comuf.com/downloads/
    The file is called "Template_File.indd"
    So, as discussed the main issues are:
    1) The TOC doesn't generate all the listings (only those with the applied paragraph style "Heading 1 - Appendix")
    2) When I try to create a new pargraph style and apply it to existing or new text, it reads the pargraph style in the Paragraph Style menu, but the style doesn't actually apply.
    Hopefully you can figure something out from this. I really appreciate your help.
    Thanks!

  • I plan on buying a new  I Pad wit wifi and cell from Apple. But  I don't want to select a cell carrier right now. Q 1: Do I have to select a carrier at purchase? and Q 2, In the meantime will I be able to get on line at home using my Cox Internet wi fi co

    I plan on buying a new  I Pad wit wifi and cell from Apple. But  I don't want to select a cell carrier right now. Q 1: Do I have to select a carrier at purchase? and Q 2, In the meantime will I be able to get on line at home using my Cox Internet wi fi? Thanks. 

    Thanks for the help. Now I can feel comfortable in not having to sign up for cellular when I buy, esp. Since I'll be using my new IPad mostly at home on my Cox wi fi. Then I can see, in using the i pad, how often I'd actually use the cellular, and where. This can help decide which type of cell plan I get. Small problem it may seem, but a very helpful answer. Thanks.

  • In my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears

    in my itunes tab is images / photo disappeared. . can not get it back, so now I can not get pictures on my iphone??? I do not want to use the photo stream. there are others who have experienced this tab disappears

    Make the iTunes window wider.
    It is on the far right.

  • I want to add Narration to my movies. I've watched the Elements Guided Help for Narration. But when I click the RECORD Tab, I get an error message. "Your current audio hardware selection does not have any inout channels." My question, therefore: Do I need

    I want to add Narration to my movies. I've watched the Elements Guided Help for Narration, and closely followed their procedure. But when I click the RECORD tab, I get an error message. "Your current audio hardware selection dos not have any input channels." My question, therefore: Do I need to buy an external microphone? I have an HP Pavilion Laptop, running WIndows 8.1. I thought I had a built-in microphone. But ,maybe not. Please help. Also, WHAT KIND of microphone - exactly - should I buy? Thanks for your help.
    Mike Moore
    Corvallis, Oregon

    mikem
    Go to Edit Menu/Preferences/Audio Hardware and ASIO tab and click on it.
    Under the Input tab, make sure that you have your microphone selected.
    Please let us know the outcome.
    Thank you.
    ATR

  • I want to change my primary e-mail address that I use with Apple ID - help guide says Select Edit next to "Apple ID and Primary Email Address." But there is no 'edit' on that section there is on every other but not that one. Can anyone help?

    I want to change my primary e-mail address that I use with Apple ID - help guide says Select Edit next to “Apple ID and Primary Email Address.” But there is no 'edit' on that section there is on every other but not that one. Can anyone help?

    You can create an alias @icloud.com email address within your current account that will receive email in your current iCloud inbox (see http://help.apple.com/icloud/#/mm6b1a490a).  (@me.com addresses are no longer available as new addresses.)  Just be aware that you cannot use an alias address later to create a new iCloud account or move it to a different account.
    Also, even if you created a new iCloud account with a new ID, your existing purchases would not be lost.  They are permanently tied to the original ID you used to purchase them.  You can also continue to use the existing ID for the iTunes store; it does not need to be the same as the ID you use for iCloud.

Maybe you are looking for