How to Use a Junction Table in your database | Airtable Tutorial

How to Use a Junction Table in your database | Airtable Tutorial

66,957 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@russelpea
@russelpea - 05.04.2021 17:55

That is a major discovery for me. I will use this a lot, thanks 👍

Ответить
@Erica-pk5lf
@Erica-pk5lf - 05.04.2021 18:24

Love it! Thank you! :D Haven't figured out my specific use case for junction tables yet, but when the time comes, I know I'll be prepared!

Ответить
@davezdon4746
@davezdon4746 - 05.04.2021 19:07

We are using Airtable to track electrical construction projects (PROJECTS table), project clients and vendors (COMPANIES table), who worked on the project (PEOPLE table) and project photos (PHOTOS table). I have a junction table (PROJECT TICKETS) between PEOPLE and PROJECTS because this is many-to-many. PROJECT TICKETS also houses what the persons position was on the project, since this may change from project to project. The PEOPLE table also connects directly to the COMPANIES table since each person can only work for one company at a time. COMPANIES also links directly to PROJECT. The PROJECT table has separate fields for Client, Owner, General Contractor, Architect, Engineering Firm, each of which only hold one link to a record in the COMPANIES table. (Sorry for the long wind-up.) Here's my questions:
1. Should I be using a junction table to connect PROJECTS with COMPANIES and store the label of Client, Owner, General Contractor, Architect, Engineering Firm as a single select field type at the junction record level?
2. What are the pros and cons of each method?

Ответить
@JohnStarkC
@JohnStarkC - 05.04.2021 19:13

Nice! This strategy will help fix several struggles I've had with my airtable database! Now I just have to dig in and figure out how to adjust/fix my tables with this method. It will also help me with some metrics I've wanted to set-up but couldn't figure out how to do it.

Ответить
@Crotoua
@Crotoua - 05.04.2021 20:33

👍🏻 Thanks !

Ответить
@dariodasilva2853
@dariodasilva2853 - 06.04.2021 12:49

Junction script is a real winner :) Personal preference: I like to use the naming convention "Table 1 x Table 2" for junctions to keep track of the source tables.

Ответить
@williamho161
@williamho161 - 18.04.2021 10:02

This is something SUPER helpful!! Thank you Boss!!

Ответить
@Londya
@Londya - 05.05.2021 18:58

Hmm I definitely feel like this is something I've been missing in my AirTable bases and it's probably the reason why I get stuck a lot of the time. I still am trying to figure out what kind of use cases I can use this for when it comes to my personal task management...Thanks for giving me something to think about!

Ответить
@tcrlhdrvcszdbwmegfmz580
@tcrlhdrvcszdbwmegfmz580 - 07.05.2021 04:37

text

Ответить
@angeloandrade3214
@angeloandrade3214 - 25.05.2021 16:29

Excellent video and very instructive. Nevertheless this junction table creates records for all possible combinations table 1 x table 2, but what if only some records in table 1 relate to table 2 ? Is there a script for this ?

Ответить
@erwindgf
@erwindgf - 28.07.2021 22:44

Hi, thanks for your explanation, I think I'll be using this a lot :-) I've got a question: is a junction table the best way to go if I want to do a price update for item I'm selling? I haven't figured out quite how to do that; when I update the price per item, my sold items/finished orders are updated as well. Are you covering such a situation in any video? I've tried to use the discount strategy but it isn't working yet :-) Thanks in advance!

Ответить
@paarulshah1702
@paarulshah1702 - 19.08.2021 09:39

Thanks so much for this useful video! I have a scenario where all of my students would be signed up to different classes. Using the junction table in the way you described would mean that every student would be included in the attendance register for each class - even the ones they were expected to attend. How do you propose we go about creating an attendance register for only classes the student is signed up for?

Ответить
@tarzan3000
@tarzan3000 - 20.01.2022 14:04

Thanks. I have alrady heard from the junction tables but never used. Is there a practical way to use it in Aitabel? For example if i want to „put“ students in to class or give students classes. Heve we always go to the junction table?
Thanks and God bless you!

Ответить
@zionbrock_old
@zionbrock_old - 09.03.2022 03:58

Curious, is there any way to run this app from a trigger? Like a record gets update, or created?

Ответить
@imarithkongtho
@imarithkongtho - 17.03.2022 21:17

This is a great video. But please explain it gradually. I feel it's a bit fast for me. Thanks.

Ответить
@roxannecote1461
@roxannecote1461 - 05.04.2022 21:48

I feel like I over use junctions tables or over populate my bases.
I'm keeping track of an assembly process. The price of the various materials vary. I have some "sub parts" which can be used in multiple bigger assembly. then I have an output schedule and a promotional schedule, a cost table, client table and a revenu table oh and a tools table 🙈 I struggle a i spend too much much of my time entering things manually.

Ответить
@DanilKV
@DanilKV - 11.05.2022 02:54

Great video. Can you please do the same video on how to create matching automation, say like tinder for dating or better service companies with say 20 different service variations and a customer 50 different demands/needs, then once it's a match, they get notified via email and can continue communicating

Ответить
@itmomotitimo
@itmomotitimo - 05.06.2022 11:33

the datetime format is L (small) and not 1 ;)

Ответить
@deansrg6770
@deansrg6770 - 12.08.2022 09:55

Hi Gareth, love your content. Would this be the best approach when creating a 'Charge Summary' document (in Documint) that displays a summary of product totals from a line-item table, this table has multiple records containing the same product names, so I don't want individual records repeated- I just want to show total hours for a given product each month. I assume a junction table would give me a list of all products per purchase order, in which I could then use roll-up fields + filtering to line items assigned that product + PO combination (excluding products with totals = 0).
TIA!

Ответить
@johnb4542
@johnb4542 - 31.01.2023 18:14

Curious about the effect of junction tables on record limits in a base. For example a full outer join between 100 records in Table A and a 100 in Table B = 10,000 permutations in the J table. The requirement to re-run the script to account for any changes in Table A or Table B means that if you remove unwanted permutations in the J table, they will get recreated each time.

Ответить
@klemenslinvers8559
@klemenslinvers8559 - 08.02.2023 08:17

This was a moment of aha😇- or do you say moment of truth. Very good explanation for what I needed to know to get better in Airtable.

Ответить
@yuryhorulko3834
@yuryhorulko3834 - 19.01.2024 15:48

Thank you Gareth!

Ответить
@michael.knight
@michael.knight - 07.03.2024 15:01

Great explanation. Is there an easy way to create the junction table without the script? Airtable made extensions unavailable on the free plan, and I don't really want to spend $20 for exactly one extension.

Ответить
@devinschumacher
@devinschumacher - 03.05.2024 09:35

Does this particular set up work if you want to try and export your database schema and converted into a real relational database like postgres or something?

Ответить
@fedetipit0
@fedetipit0 - 31.07.2024 20:10

Excellent video, very useful tool. But what happens if I have many students, many classes, and I don't want to create the junction table for all students against all classes? Let's suppose I have 2000 students and 60 classes, and not all students are in all classes. Is there any way to filter which students I will cross with which classes so that it only makes the appropriate combination?

Ответить
@terdbrain484
@terdbrain484 - 19.01.2025 04:18

do you have a video explaining how to make a employee database for a company that does event staffing services with 100s of crew that tracks assigned crew to various locations all over the US and various roles with various shifts along with certifications, performance reviews, applications filled out, etc..

Ответить