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.

Case / If Perhaps

Featured Replies

Very fundamental concept query. This might not belong here, but I'm here to discover if I am thinking 'case' and 'if' wrong.

Quite often I come to a situation with 2 tables (something like this):

Table A fields: ID_A, RaceID, Horse Name, Time, Finish

Table B fields: ID_B, RaceID, Winner, Second

In Table B I want to populate 'Winner' and 'Second'.  I would do a simple look-up for 'Winner', but then I go for 'Second' and I start bumbling around and thinking like this (just English, not FM-ese): If Table A RaceID = Table B RaceID and Fin = 2 then give me the Horse Name. Then I start fumbling around. I check the manual, the Missing Manual, videos ... and then I start thinking that this is such a simple task, I must be thinking it wrong. Am I?

 

 

 

Edited by Poruchan

  • Author

Thanks, Doug

I reproduced it and I have the 2nd place horses now. My new recent goal is to understand why these things work rather than just ask for and get solutions. As what you did is not obvious to me, Im working up a few questions.  

In Table B I want to populate 'Winner' and 'Second'. 

What would be the purpose of that? The information already exists in the other table. If you're looking for fundamental concepts, here's the most fundamental one: in a normalized relational database, each fact is stored in one place only.

 

In Table B I want to populate 'Winner' and 'Second'.

I believe from context that populate is not the word, rather sort comes to mind.

Edited by ggt667

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.