Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

I am still learning SQL and I was hoping for some help to add another relationship to my equation.

I would like the SQL to show me all the ItemsIDs that are assigned to selected years (via key) that are originated from Details table layout.

This is working good, but it's showing my ALL ItemsID meeting that year criteria, but I would like to only see __ItemsID based off the layout I am on, which is Details.

I think I need to add FROM "\Details\" and WHERE _fkDetailsID = ? ; Details::__DetailsID, but I am struggling to add in another table!!

Any help would be greatly appreciated to get where I am going or simplify!!

 

 

Details::__DetailsID <-> Items::_fkDetailsID 

                         Items::__ItemsID <-> AssignedYears::_fkItemID

                                              AssignedYears::_fkYearID <-> Years::__YearsID
Let (

[

Key = 8  // YearsID from Dropdown

] ;

ExecuteSQL( "

SELECT \"_fkItemsID\"

FROM \”AssignedYears\” INNER JOIN \”Years\"  

ON \”AssignedYears\ . \"_fkYearsID\" = \"Years\" . \”__YearsID\"

WHERE \”AssignedYears\ . \"_fkYearsID\" = ?

ORDER BY \"_fkYearsID\" ASC "

; " " ; "" ; Key )

    )

 

Edited by shredded

Your graph doesn't match your SQL -- fkItemsID vs. fkItemID , fkyearsID vs. fkyearID -- so first thing is double check the field names are correct.

It doesn't look like you need a join. You're selecting a field from AssignedYears, querying a field from AssignedYears, and sorting by a field in AssignedYears. All same table.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.