AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
SQL Sub Query throu...
 
Notifications
Clear all

Questions [Solved] SQL Sub Query through Generic Inquiry UI?

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by ChrisW 5 years ago
4 Posts
3 Users
1 Reactions
3,358 Views
RSS
ChrisW
Posts: 3
 ChrisW
Topic starter
September 14, 2020 1:42 pm
(@chrisw)
Active Member
Joined: 5 years ago

In a query it would look kinda like this: Select column a, (select Column a | from table | where data ='TR') as column b ......

I need to reuse a column but i need specific data to come through and am unsure how to go about this in the Generic Inquiry UI.


3 Replies
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
October 14, 2020 12:36 am
(@timrodman)
Famed Member
Joined: 10 years ago

Not currently that I know of. Here are two related Discussion Topics that mention a workaround and a feedback idea to vote on:

https://www.augforums.com/forums/acumatica-generic-inquiries/gi-with-2-or-more-different-values

https://www.augforums.com/forums/acumatica-generic-inquiries/generic-inquiry-use-subqueries-for-a-field

Unfortunately the feedback ideas can only be viewed now if you login to the new community website so I'm including a picture of it here:

image

Reply
Wyatt.ERP
Posts: 128
 Wyatt.ERP
October 16, 2020 3:05 pm
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

Hi @chrisw

If I was a betting man, I'd wager that you can accomplish what you're after without using a sub query, and be better off for it.  Having sub queries in the FROM section is unavoidable and I think the main shortcoming of GI.  Having sub queries in the SELECT statement, though unavoidable in some situations, is very undesirable and will become a performance issue given enough scale. 

What kind of data do you want to put together?  I could suggest something, but there's not really enough information to go on in your original post.


Reply
ChrisW
 ChrisW
(@chrisw)
Joined: 5 years ago

Active Member
Posts: 3
October 16, 2020 3:10 pm
Reply toWyatt.ERPWyatt.ERP

@wyatt-erp, Thank you for your help. Our solution was we added a new table to bridge the data gaps.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 34 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×