Get groups AD with getResourceObjects

Hello,
I'm trying to get AD accounts using the following rule:
<Rule name="get accounts ad">
<RuleArgument name="session"/>
      <invoke name="getResourceObjects"class="com.waveset.ui.FormUtil">
     <ref>session</ref>
     < s>person</s>
     < s>AD</s>
     <map>
            < s>searchAttrsToGet</s>
         <List>
          <String>dn</String>
          <String>groups</String>
          </List>
          < s>searchContext</s>
         < s>OU=Users,OU=HR,dc=brussels,dc=airport</s>              < s>searchScope</s>
         < s>oneLevel</s>
     </map>
     <!-- clear the server cache -->
     < s>false</s>
     < s>0</s>
     < s>true</s>
     </invoke>
</Rule>But I can't seem to retrieve the dn's of the groups of which a user is a member of. When I use the attribute "memberOf" instead of groups, the method returns only the dn of the first group in the list. Is there a way to get the whole list of groups in the generic object using this method?
Kind regards,
Robin

Assuming this is the exact code used, you have a typo in the
<um:getGroupNamesForUser> tag. It should be:
<um:getGroupNamesForUser username="<%=currentUser%>" id="userGroups"/>
If that was just a typo, then I don't know.
Greg
Dom wrote:
Hi!
I'm trying to get the groups for a logged in user in a jsp page using the getGroupNamesForUser
tag like this:
<% String currentUser = request.getRemoteUser(); %>
<netui:content value="<%=currentUser%>"/>
<um:getGroupNamesForUser username="currentUser" id="userGroups"/>
Unfortunately, i'm getting the following NullPointer error:
Error opening /portlets/SAE/PortalAdmin/PortalAdmin.jsp.
The source of this error is javax.servlet.ServletException: EJB Exception: ; nested
exception is: java.lang.NullPointerException
Any idea why this doesn't work?!?
I'm using Weblogic 8.1.2!
Thx!
Dom

Similar Messages

  • In a group text with two phones that use Imessage and one that does not. The person that does not, does not get my message when its sent in group text. How do i fix this?

    I have a group text with two of my friends. here's each person break down
    person 1 ATT network, using imessage
    person 2 verzion network, using imessage
    person 3 verzion network, using SMS
    All three of us are in a group chat. When person 1 sends a message, person 2 recieves it, but person 3 does not. Then when person 3 sends a message, both person 1 and 2 get it. When person 2 sends an Imessage, person 1 and 3 get it
    so the problem is when person 1 sends an imessage, it doesnt change to sms and person 3 doesnt get it, but person 2's automatilly switches it to green.
    How can person one get their phone to automaticlly switch it to green in group message while keeping on imessage?

    The quote below from http://support.apple.com/kb/HT5760 indicates that it in the situation you describe it should be going as MMS to everyone -- which is not what you are seeing actually happen (and also not what you want to happen if I understand correctly). There may be something else helpful in the link.
    Group messages will be sent using iMessage if all recipients have iMessage enabled. If not, the conversation will be sent as MMS. Group messages use MMS even if the content is text only.

  • How to get BU, Company, Group details with the help of Employee number

    Hi Friends,
    How to get information related with Employee like Business unit, Company, Business Group and other details.
    Pravin

    Yes Arul.
    I want to get these information in a custom Java webdynpro application but if you can guide me how to get these values in SAP-Hr. Can you just give me details of tables. I have Employee number(pernr) with me and want to fetch Group, Company, Business Unit.
    With rgds,
    Pravin

  • Analytical Services failed to get user's parent group tree with Error

    Hi,
    We have a frequent errror during our weekly batch for an application.
    The context:
    - Essbase Administration Services we are using is version is 9.3.1.
    - 8 applications are calculated during the week-end. The scripts executed are exactly the same for the 8 applications.
    - For example let's say that 5 scripts are launched during the night in the batch for each application (script 1, script 2 ... script 5)
    - App1 and App2 are launched alone and before the 6 others applications as these applications database are 3 x bigger (App1 is calculated alone, then app2 is calculated alone, then app3 to app8 scripts are launched in the same time).
    The issue :
    - We don't see any issue for app3 to app8, the calculation are executed without any problem from script1 to script5.
    - But we have an error in App1 and App2 log when the bath execute script 4 and we see the following error in the server log **
    "Analytical Services failed to get user's parent group tree with Error".
    (** : we don't see any log for script 4 in the application log - it's like the server bypass script 4 to go directly from script 3 to script 5 )
    Nothing special is done in script 4 but just an aggregation of the Year dimension (using a @SUM(@RELATIVE(Year,0)) calculation.
    I think that there is may be a synchronization error with Shared Services but what is strange is that it's always for the same script 4 and the batch is launched at different time every week-end.
    Can the issue be linked to the size of the database of applications (8 Gb) and difficulties for the processor to executes aggregation in a large database volume ?

    Hi,
    According to your description, my understanding is that the error occurred when sending an email to the user in workflow.
    Did you delete the existing Connections before setting NetBiosDomainNamesEnabled?
    If not, I recommend to delete and recreate your AD connections, then set NetBiosDomainNamesEnabled to true.
    Or you can delete the original User Profile Service Application and create a new one, then set the NetBiosDomainNamesEnabled to true and start the User Profile Service Application
     synchronization.
    More reference:
    http://social.technet.microsoft.com/wiki/contents/articles/18060.sharepoint-20xx-what-if-the-domain-netbios-name-is-different-than-the-fqdn-of-the-domain-with-user-profile.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Cannot get wanted data with MAX and GROUP BY function

    Hi
    All
    I have a table like below:
    COLUMN     TYPE
    USER_ID     VARCHAR2 (10 Byte)
    PROCESS_ID     VARCHAR2 (30 Byte)
    END_TIME     DATE(STAMP)
    TO_LOC     VARCHAR2 (12 Byte)
    TO_LOC_TYPE     VARCHAR2 (15 Byte)
    FROM_LOC      VARCHAR2 (12 Byte)
    ITEM_ID     VARCHAR2 (25 Byte)
    CASES     NUMBER (12,4)
    LMS_UDA1      VARCHAR2 (250 Byte)
    ZONE     VARCHAR2 (2 Byte)
    I only want get one record with all columns, only have one clause MAX(END_TIME)
    But the other column have difference value.
    when i use MAX(END_TIME) and GROUP BY USER_ID,PROCESS_ID,CASES,....
    the sql didnot give one record,
    It give many records
    Please help me on this
    Regards
    Saven

    Hi, Saven,
    Sorry, it's unclear what you want.
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    If you can show your proiblem using commonly available tables, like those in the scott or hr schamas, then you don't have to post any sample data: just the results and the explanation.
    Always say what version of Oracle you're using.
    See the forum FAQ {message:id=9360002}
    Are you trying to see all data related to the highest (that is, latest) end_time?
    I think you want something like this, that finds all the ionformation about the employee with the latest hiredate:
    WITH     got_r_num     AS
         SELECT     emp.*
         ,     ROW_NUMBER () OVER (ORDER BY  hiredate  DESC  NULLS LAST)
                   AS r_num
         FROM     scott.emp
    SELECT     *     -- Or list all columns except r_num
    FROM     got_r_num
    WHERE     r_num     = 1
    ;What do you want in case of a tie, that is, if 2 or more rows have the same latest end_time? You may need to add tie-breaking expressions to the analytic ORDER BY clause, and/or use RANK instead of ROW_NUMEBR

  • How do you get your experts with negative stance for new things / innovations to HANA

    We have over 50 ABAP developer (senior experts). Primarily we develop in the old core module (SD, MM, FI, CO, HR, PP, CS, IH, PS) on ERP systems / business suite.
    We have three groups of developer:
    Group 1: They can’t await to work on new architectures – they’re open for all and have fun to work as a pioneer and dig in the deep of the system
    Group 2: For this developer it’s all the same – for this people it’s not a problem to go to a other architectures
    Group 3: They have no interest
    to work in new architectures
    to spend time to learn new things
    they are very closed for new things
    they have for all topics bad statements
    I am part of the group 1. In my opinion in the IT it’s normal to spend much time at new topics in free time to keep up to date. New topics / innovative things make the developer job very exciting. For me it’s regular process – and that’s my own passion .
    Since two month we have our own HANA system in our data centre as play field :-) (business suite on SAP HANA). I’ve some colleagues who made the HANA certification – and we made the first steps in our system. For group 1 and group 2 everything is okay and they’ve fun .
    We have problems with the group 3. They find every hair in the soup – they spend very much time to search arguments against HANA. That’s our “negative group” . We copied our SAP System to a new system and made a technical migration. Now they compare the SAP System, which is based on an oracle datebase, with the new SAP System which is based on a HANA System. They go through the standard ERP process (offer / order / purchase order / goods movements / delivery / MM invoice / SD invoice / material master data / customer master data / vendor master data / conditions / financial bookings / etc.). They main argument is, that they can’t see a grow up of the performance / the added value of the invest / etc. Our other problem is that the group of this people have experience over 20 years in ABAP developing – and their opinion have a high weight. The other arguments: IBM and oracle are working on similar architectures – and we can hold on on the open sqlsyntax / on the present coding.
    Have you similar problems to get the acceptance of group 3?
    Have you tips / tricks for us?
    Have you ideas for catching the group 3?
    What standard components are really optimized for HANA?
    In which standard components can we see a really performance grow up?
    There are standard use cases to see the differences?
    Which data volume do we need in the data model to see the differences?
    What can we do to take the group 3 with us?
    How can we open the group 3 for innovations?

    Hi,
    Please find my reply below.
    1. Have you similar problems to get the acceptance of group 3?
    In IT world we have similar groups. Only results help this group3. I would suggest showcasing on results.
    2. Have you tips / tricks for us?
    As you mentioned in your email, you already have HANA System to play with. So I would suggest looking at high performance transactions like MRP run and FICO Month-end Close.
    3. Have you ideas for catching the group 3?
    SAP has few use cases. Take-up these use cases build data models and use in ERP.
    4. What standard components are really optimized for HANA?
    Recently in our organization we replaced database from DB2 with HANA. Now our SAP ECC is running on HANA. Straight away we have seen 30% of performance improvement in all the transactions. SAP is providing optimized SAP Transactions and there is significant performance improvement and SAP Road Map clearly talks about providing more optimized SAP Transactions on top of HANA to its customers.
    We tried to push some of our high performance code to DB layer by creating the Data Models and using those views in SAP ABAP Programs or Transactions. This gave us significant performance improvement.
    Please refer to below document. This has list of standard optimized transactions.
    Link
    5. In which standard components can we see a really performance grow up?
    This blog throws light on following high performance transactions.
    Link
    6. There are standard use cases to see the differences?
    Use Case
    7. Which data volume do we need in the data model to see the differences?
    MRP run transaction has huge performance issue you can work on MRP Run data model.
    8. What can we do to take the group 3 with us?
    Only Proof of Concepts (POC) results will help to take this group.
    9. How can we open the group 3 for innovations?
    As per your email, I feel group 3 is most demotivated group. I would suggest to talk to each individual and understand there areas of interest and try to put them in their areas of interest. As per my experience this will give good results.
    -VJ.

  • How do you get a line with MULTIPLE fields to WRAP ?

    How do you get a line with MULTIPLE fields to WRAP ?
    Good afternoon everyone...
    THE PROBLEM: Why doesn’t a line with multiple fields WRAP?
    HYPOTHETICAL EXAMPLE/WHAT I”D LIKE TO SEE
    If I have 2 fields on a line (this is now a hypothetical example and nothing to do with my actual report)….let’s call them field A and field B. And if field A has values of all ‘X’ and field B has values of all ‘Y’…then….the normal case would be (ignore dots – only for spacing):
    A……………………… B
    XXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYY
    But what if A is too long? I would want to see B wrap onto the next line like this:
    A……………………………………………………B
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX YYYYYY
    YYYYYYYYYYYYY
    And similarly….if B is extra long, can the line print as:
    A………………………. B
    XXXXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYYYYYYY
    YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
    I don’t want the case where B is long and I get:
    A………………… …B…
    XXXXXXXXXXXXXXXXX YYYYYYYYYYYYYYYYYYYYYY
    ………………………..YYYYYYYYYYYYYYYYYYYYY
    I can see how you can wrap an individual field like that…but how can you WRAP a line of[b] fields within the frame so it wraps to the BEGINNING of the frame on next line?
    My SPECIFIC CASE
    I have a report that I have stripped down to a simple structure for the purposes of this explanation.
    My DATA MODEL has the main QUERY (for plant family and species data). The columns of the query are divided into 2 groups. The 1st GROUP contains the family data. Below that is the rest of the species data in a 2nd GROUP.
    Linking from the 2nd species group (above) is a new QUERY to extract REGION data based on the common key field. Under this 2nd query is another group with all the REGION columns.
    The LAYOUT MODEL has a group frame (the main , base one)
    On top of this is a repeating frame based on the 1st group (family data).
    On top of this is another repeating frame for the 2nd group (species data).
    On top of this is 2 Frames on the same line line. The 1st frame contains columns from the species group .
    The 2nd frame on this line is a repeating frame. The PRINT DIRECTION for this frame is ACROSS/DOWN. It repeats details of the REGION where the species is found. These columns come from this group come from the REGION QUERY and GROUP.
    All fields on the report line have variable horizontal elasticity.
    The problem is that when there is too much data on the line, it does NOT WRAP to the 2nd line.. It TRUNCATES.
    Can the line be made to WRAP????..
    In my current report, 1 of 2 things is happening:
    1) All fields print on the line until it hits the page boundary and then it just stops. Truncated!
    2) All fields print on the current line, then Oracle Reports throws a new page to print the REMAINDER of the long, input line
    But I would like a LONG line to continue printing onto the following line of the same page.
    I have tried all combinations of the elasticity fields and the ‘ADVANCED LAYOUT’ properties.
    I have been focussing my attention with this problem on the frames .
    We are using REPORT BUILDER V 6.0.8.26.0
    Thankyou to anyone who may offer assistance.
    Tony Calabrese.

    Steve,
    you gain 1 thing, but you lose something else!
    This thing is SO frustrating!
    Hey Steve! Good afternoon.
    I've done as you suggested....I have a long text boilerplate item - the only 1 on the line...and it has all the column in it.
    So it looks like:
    &col1 &col2 &col3 &col4 &col5 etc etc etc
    And the line expands nicely to each field's requirements.
    And when it gets to the right page boundary...it WRAPS to the next line! Beautiful!!!
    The only thing is that...when I had individual fields across the line I was able to create format triggers for those fields. And in doing so I was able to reduce the font and change the justification. I had to do that because some of the fields had to appear superscripted.
    So I wanted something like (ignore the dots):
    ...................................ppppp
    AAAA BBBB CCCCC DDDD EEEE FFFFFF
    So the field of 'ppppp' appeared slightly higher on the line than the other fields...
    I can't see how I can do this with a single TEXT field containing all the &COL values.
    Have you ever come across anything like this?
    Thankyou again,
    Tony Calabrese 12/4/2007

  • What's the right way to get in touch with devs? arch-general list?

    tl;dr version: skip to the questions at the bottom
    Today I saw an unfortunate thing happen during the Bug Day proceedings. It surprised me to see it, because the knowledge needed to avoid the problem was made available in advance. Bear with me as I tell a story, so I can point out an example of what looks like a communication problem between users and devs.
    A while back, I sent mail to arch-general giving advance notice of upcoming releases (within the next two days) for some xiph.org software (libogg, libvorbis, libao, and vorbis-tools). No one responded to it. That's not really a problem - after all, there wasn't any work to be done yet, since the releases weren't finalized yet.
    When the releases happened, I flagged them out of date as usual, and provided extra details to avoid difficulty with the upgrades (whether rebuilds were needed, and which upgrades depended on which other upgrades). One package belonged to Snowman, two to Tobias K, and the last (and most difficult) to Hugo D. I knew Hugo was no longer a dev, and later saw that Eric was going inactive also. (I don't know Tobias K's status.) That's probably part of the problem - this info getting lost since it wasn't sent to the same devs who later did the upgrades. (I guess the "multiple owners" feature should help alleviate this problem.)
    A few days back, I sent another mail to arch-general. I admit that I was nagging a bit, though I do believe that I was contributing helpful info - mostly the same as I put in the flagging messages. Again, no one responded. Not exactly nice, but again, not wrong either. You'll get to it when you get to it, and I can (and did) do these rebuilds for myself. Note that I'm NOT complaining about a week or two lag in updating packages - that's perfectly reasonable, and I'd be a huge jerk to make noise about that.
    Today, bash was doing upgrades to close bugs, with help on IRC from Pierre and wonder. One of those packages was libvorbis, and he wondered if a rebuild would be needed. I knew for sure that it wasn't, and told him so, which he acknowledged with a "thank you". He then went on to duplicate my research, which felt a little odd to me. In the end, this package was upgraded perfectly fine.
    The other package he upgraded was vorbis-tools. Unfortunately, building that against the old libao in [extra] generates an incomplete package, missing ogg123. When I saw this problem, I opened a bug, and had it handled exactly as I thought it should have been. The end result was fine.
    Now, the point here is that I had identified the dependency of the new vorbis-tools on the new libao in several of my previous messages, and reading those could have saved some trouble. It's reasonable that no one working this on IRC today saw my flagging messages, since I understand that those only go to the maintainer. However, my second mail to arch-general was definitely available, and based on what happened today, no one it would have been useful to, actually read it. That's a communication breakdown, and that means somebody did something wrong. It's entirely likely that it was me, and I want to know the solution.
    I've always believed that arch-general is the best way for an ordinary user to get in touch with "the devs" as a body. Many devs don't go on IRC, and it's a bit too busy in there most of the time anyway. Many devs also don't hang out here on the forums, and that's easy to understand as well, given how high-volume they are now. The bug tracker generally gets excellent dev responses, in terms of both timeliness and quality, but it's not appropriate for communications that are not bugs. All devs seem to read arch-dev-public, but users like myself of course can't post there.
    So arch-general has to be it. In fact, I always thought that was the intended purpose of that list. Until recently, it was a low-volume list. Lately, it's grown quite a bit, and is starting to resemble these forums: general tech support questions (some of them stupid), users plugging their own creations, and just chatter. (There are a small handful of posters accounting for a great deal of the noise.) I keep wanting to tell them to take it to the forums, but restrain myself as I'm not really sure if I'm right about their posts not being appropriate for the list. I'd leave the list, as it now annoys me, but then I can't reply to things posted on arch-dev-public. (Probably what I'll really do if this keeps up is stop using [testing], so I can do away with both of those lists. Oh well.)
    Now, the questions here:
    - Are devs also dropping out of arch-general because of the increasing noise, and is that why my second mail got lost?
    - Are the "noisy" posters abusing the list, and should they be told to go to the forums instead?
    - Is arch-general actually intended as the primary way for users to talk to devs?
    - If so, how to fix it so it works that way again?
    - If not, where should I have been sending messages like the ones I linked to in this post?

    I think almost every dev is on arch-general, so that is the place to contact the group in general.  Specific points can probably be emailed to the dev involved, if one is identifiable and if the bug tracker is not a better place (bug reports to my email get ignored).
    I think the whole problem here is that there is really no dev in charge of that package.  So your emails were probably seen then skipped over by all devs thinking not my problem...  (I know that is true for me).   Then Andrea noticed an "orphan" package that needed updated and went ahead with it without connecting it to your previous emails, which is unfortunate.
    Now our maintainer backend is fixed, hopefully we can get all the orphan packages adopted out, or at least know if we need to bring on new people to maintain them.  That way, there should always be someone who information about specific packages should be sent to.

  • How can I get an album with multiple artists to display in my Nano as one album insteadof multiple albums?

    How can I get an album with multiple artists to display in my Nano as one album insteadof multiple albums?

    See this page for helpful information.
    http://samsoft.org.uk/iTunes/grouping.asp
    B-rock

  • Group Text with Android Doesn't Work

    Hi- I had been using an iPhone for a few years, and decided to switch over to Android. It took some time to get my phone number disassociated from iMessage/iCloud, but I was eventually able to get that done. Since iOS8 came out, though, I'm starting to experience problems again. Specifically, whenever I group text with multiple iPhone users, everything works fine -- until my wife (an iPhone 6 user) is added into the group. When this happens, everything automatically switches back to iMessage and I stop receiving any messages.
    Has anyone else experienced this? Are there any fixes?
    Thanks

    Just in case other people found my post by Googling, here is my fix I added to my post on the OpenOffice forum.
    Re: Text to speech only reads the document title  
    by Trish8 » Sat Feb 14, 2015 9:58 am
    I tried as many suggestions as I could from the plethora of suggestions above. I'm sure you are correct, it must be the Mac's problem. I took a chance and downloaded LibreOffice; Text to Speech now works the same as it does on TextEdit, the internet, and PdF. Thanks for all the help, I mean that sincerely. OpenOffice is a really fine product.
    Patt

  • I am no longer able to get group text on my iphone4 how do I fix this

    I Am no longer able to get group text on my iPhone4 how do I fix this

    Hello Jchild!  I'm sorry for any issue with group messaging on your iPhone 4. Let's see what we can do to get this going for you OK? Please try these steps first: http://vz.to/1DVzEoW Once that's done, please send the group message and let us know if the message is received by the recipients. Please include your own number in the recipients list, so you can test and make sure you receive it too. Keep us posted!  ChristinaB_VZW Follow us on Twitter @VZWSupport If my response answered your question please click the "Correct Answer" button under my response. This ensures others can benefit from our conversation. Thanks in advance for your help with this!!

  • Can I group charts with objects in Numbers 3.0?

    In Numbers 2.1 I could group charts with objects and text.  I can't get this to work in Numbers 3.0.  The objects will group but not the charts.
    I used this to create marked-up charts in Numbers and paste them into a Pages document.
    (I just purchased a new iMac and don't have the old Numbers on it.)

    The only way around this is to print to PDF and open in preview, then use the rectangular selection tool to select the are you want to add to pages, then copy, then paste into Pages.
    You can post feedback to Apple using the menu item "Numbers > Provide Numbers Feedback"
    There are several features that were dropped and may be added back in... see this link:
    http://support.apple.com/kb/HT6049?viewlocale=en_US&locale=en_US

  • Problem with getResourceObjects

    Hello,
    We are encountering problem with getResourceObjects method in that it throws an error when fetching
    attributes of type integer. LDAP search ran with the search filter works fine. We contacted sun support and they say that this is a known issue when there are large groups in AD. We are trying to explore if there is a work around to this, as changing the settings on AD is not permissible.
    Appreciate if any of you can provide your insights on this.
    Thanks,

    Got it working. Thanks

  • IOS 8 creating multiple group messages with same recipients

    After updating to iOS 8.0, my iPhone 5s has started creating multiple group messages with the same recipients. For example, my phone has created three group threads with the exact same people in it. Different friends' messages go to different threads. It is terrible confusing and annoying. It has done this with several of my group messages. Deleting the duplicate threads have not worked. They keep recreating themselves when certain people text the group.
    Any suggestions? This has been a problem for many of my friends as well.

    Hi hkapn,
    Do you and your wife use the same Apple ID and are connected to the same wifi network?  Your phone ringing to multiple devices is called Continuity and is a feature of iOS8. https://www.apple.com/ios/whats-new/continuity/
    Essentially, it allows you to use your iPhone cellular connection on all of your iOS8 devices: iPhone, iPad, Mac computers with Yosemite.  On some devices the call will look like it is coming through FaceTime, but likely on your wife's iPhone it just looked like a regular call.
    Since your iPhone was "hosting" the phone call through it's own cellular connection, you were able to pick it up after your wife answered, which caused your wife's phone to disconnect.  This is called Handoff and is also a feature of iOS8.
    You can turn off Continuity if you'd like, but you could also look into getting your wife her own Apple ID.  I'm guessing you were sharing one so that you didn't have to make purchases twice.  Also in iOS8, there is a feature called Family Sharing which allows you to link multiple Apple IDs and share purchases (among other things).
    In regards to the group text message issue, as far as I can tell, splitting group messages is NOT a feature.   I agree that there should be an answer to this already!

  • Count(*) , group by with multiple columns from multiple tables involved

    Hi all,
    I am relatively new to SQL.
    Currently I have these few requirements, to display quite a number of fields from 3 tables for display of report.
    In my query I need to:
    1.) count(*)
    2.) select quite a number of fields from table 1,2,3
    However when count(*) is used, grouped by has to be used to.
    How do I actually use group by with so many columns to be selected?
    I have actually used the query below, but the count(*) returns 1, the correct output should be 3 instead.
    select count(*), table1.col1, table1.col2, table1.col3, table2.col3, table2.col4, table2.col6, table3.col1, table3.col4, table3.col5
    from table1, table2, table3
    where
    <conditions>........................
    group by table1.col1, table1.col2, table1.col3, table2.col3, table2.col4, table2.col6, table3.col1, table3.col4, table3.col5
    I know this group by statement looks very unrefined. How can I select multiple fields from different tables, and yet get the count(*) correctly?
    Thank you so much for your time.

    Hmm yes it actually does return count as 1 for each row. But there are 3 rows returned. E.g.
    ctr table1.col1 table1.col2 ..........
    1 value1 value1
    1 value2 value3
    1 value3 value4
    If I put the count(*) outside, it returns 3 , the correct output
    ctr
    3
    select count(*) from
    select table1.col1, table1.col2, table1.col3, table2.col3, table2.col4, table2.col6, table3.col1, table3.col4, table3.col5
    from table1, table2, table3
    where
    <conditions>
    group by table1.col1, table1.col2, table1.col3, table2.col3, table2.col4, table2.col6, table3.col1, table3.col4, table3.col5
    Thus I was wondering if it was the group by of multiple colns that resulted in the count stucked at value 1.

Maybe you are looking for

  • IMac Finder cannot see external hard drive but Disk Utility can

    I have a WD external hard drive and it has been attached to my iMac for a year or two.  About two months ago I upgraded to Lion 10.7.5 and hard drive still worked.  Then suddenly about a week ago the iMac no longer sees the external hard drive in Fin

  • Install old iLife from 10.3 disks onto iBook w/ a clean install of Tiger?

    My ibook originally came with Panther 10.3. iLife was included on the install disks. A few months ago, I did a clean install of Tiger. I then tried to reinstall iLife from the Panther 10.3 disks. However, only Garageband and iDVD show up ---iPhoto an

  • Problem with FWSM 4.1

    Hi, I have de mars v.6.0.6. The problem is: The FWSM option is not available in Add Module  (Admin>System Setup>Sec& monitor device>add), only are available IOS, ASAs, PIX. The version FWSM is 4.1 Appreciate your comments, jorge

  • Recover deleted Mobile Me Gallery

    Is there any way to recover a deleted Mobile Me Gallery? I selected a photo, pressed Delete and lost the entire gallery. There is no Undo for this action and yesterday's Time Machine just opens today's library.

  • Error when trying to purchase second eGift Card

    I was able to purchase one eGift card but I can't purchase another.  I'm receiving the message: "Please note that the maximum number of vouchers that can be purchased & redeemed by a single user in any one calendar month is 5."  When I click "OK" it