Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issues in retrieving results using a Query

 
Varshini Priya
Ranch Hand
Posts: 95
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Im trying to retrieve two different values from the same field for a single record using a query. My query is something like this



In the above query, Im trying to get the user, instructor id and instructor name from the user table. But Im not able to retrieve the correct results. I have also tried creating an alias name for the user table but still not able to get the complete list. Im getting duplicate records as well. please Advise

Regards,
Varshini
 
John Bengler
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Varshini,

maybe this thread can help you. Have especially a closer look at the example with the EMP table:

Using Aliases



John
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic