Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1103693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:22:37+00:00 2026-05-17T01:22:37+00:00

Today, my boss told the below SQL query and went out without explaining it.

  • 0

Today, my boss told the below SQL query and went out without explaining it. Its working good.
But i want to know the way how it works.

SELECT NAME 
  FROM PERMISSIONTOKENS 
 WHERE ID IN (SELECT TOKENID 
                FROM ROLETOKENASSOCIATION 
               WHERE ROLEID = '1');
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T01:22:37+00:00Added an answer on May 17, 2026 at 1:22 am

    There are two queries here.

    The inner query:

    SELECT TOKENID FROM ROLETOKENASSOCIATION WHERE ROLEID = '1'
    

    Will get all of the TOKENIDs from ROLETOKENASSOCIATION that have a ROLEID of 1.

    The outer query:

    SELECT NAME FROM PERMISSIONTOKENS WHERE ID IN(...)
    

    This will get all of the names from PERMISSIONTOKENS that have an ID that was in the result set of the inner query.

    You might be able to re-write this with joins instead of using IN, if you don’t like the syntax of IN.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today my boss told me to use count(pkColumn) instead of count(*) , saying it
Today is my first day working with SQL so please bear with me for
Hi guys i got a strange job to do from my boss today, i
today i hit a really annoing problem with wpf. i just want to align
My boss decided recently to try out an outsourcing group for increased capacity as
My boss reported my a bug today because my configuration was decreasing whenever he
My boss has a C++ project that just began hanging today when he hits
Today i want to test my Mobile App on my Samsung Galaxy device. I
Today I tried to use const indentifier, but I find the const variable can
Today I just opened the project I was working on XCODE 4, and only

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.