SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3

Thread: SQL Query

  1. #1
    Apprentice
    Join Date
    Jan 2014
    Posts
    26
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    SQL Query

    Hi,

    I have a query below that extracts email addresses and user names for a given project in QC

    select a.user_name, EMAIL from users a, users_projects b, projects c
    where a.user_id = b.user_id
    and b.project_id = c.project_id
    and c.project_name = 'ICT_SCC_TestDefect'

    Does anyone know of a query that could extract the same information as above from more than one QC project?

    Regards,

    Colm

  2. #2
    Advanced Member
    Join Date
    Aug 2004
    Location
    Wellington, New Zealand
    Posts
    832
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Hi Colm,

    The best way to do this is to query the Site Admin database.
    Regards,

    Alex
    ... just another Tester ...

  3. #3
    Apprentice
    Join Date
    Jul 2010
    Location
    SF Bay Area, CA, US
    Posts
    46
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Remove the last line in your SQL query to get the results for all ALM projects.

    Alternatively you may get a list of users from several projects by specifying project names in the last line:

    select a.user_name, EMAIL
    from users a, users_projects b, projects c
    where a.user_id = b.user_id
    and b.project_id = c.project_id
    and c.project_name in ('project_name_1', 'project_name_2')
    I use HP ALM QC reports from www.rbreporting.com

 

 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 08:51 AM.

Copyright BetaSoft Inc.