Topics Search

Self Join Table Form Development

Self Join Table Form Development
Views: 12
I have a table with a field that relies on another field in the same table. Very much like the Employee/Boss table design that is used for self join examples. I have developed the tableand query but do not know how to make the form that would support the table design.

The field in the table are:

strID (Primary Key)
strName
strBoss

I think it will require a two form approach, one to create the employee and one to assign the boss. But I want the boss to be a combo box with only employees that have been created.
Sponsored Links:

Similar posts...

 

Left Join That Includes Null values on Right Table, Even If Match Found

Left Join That Includes Null values on Right Table, Even If Match Found Icon
I then have a table of answers for those questions. Each user gets the entire list of questions in a continuous form. I would like to join the answers table to the questions table. Here is my join statement.
 

10 plus tables to join

10 plus tables to join Icon
I have 10 + tables that I need to join together Easy when they have info in them, but sometimes info will only be in 1 table or 2,3,4 etc.

I can force an entry into each table - but that seems a bit crude (I.e add a record for every new entry in my main table into the 10 child tables - but this seems to be a waste - I only want to join tables when there is info in them - when I am doing this I can join two tables fine - but adding another one where there is no data FK seems to throw it. I will have about 10-12 tables to join.
 

inner join question

inner join question Icon
I have two tables with names and amounts

Table 1 - contains a whole range of names
Table 2 - contains ONLY some of the names ON TABLE 1

I created an inner join between the names on both of these table as I need the amounts from tble 1 with the names of table 2

Is it possible to also get a list of names and amounts from table 1 which DO NOT APPEAR IN TABLE 2

this was code used to find the similar names on tbl 2 with amounts from tbl1

SELECT tbl2name, tbl1Amount
FROM list2 INNER JOIN list1 ON tbl2name = tbl1name;
 

Implementing the Equivalent of a FULL OUTER JOIN in Microsoft Access

Implementing the Equivalent of a FULL OUTER JOIN in Microsoft Access Icon
There are many different kinds of joins, like INNER JOIN, LEFT OUTER JOIN, RIGHT OUTER JOIN, and FULL OUTER JOIN. The first three of these different join types are implemented in Access, but FULL OUTER JOIN is not. If you need to perform a FULL OUTER JOIN in Access, are you "up a creek, without a paddle"? No, you are not. This article will show you how you can write some SQL code in Access to implement a simulated FULL OUTER JOIN.
 

SQL Left Join

SQL Left Join Icon
I have a master table with 6 rows in it. Id like to run a query that would grab all those rows, then join a join table with it. Regardless if theres a match, I want all 7 rows from the master to display.

I've done this before only catch is now I need to use a where clause which removes the non-matching rows.
 

Multiple Table Queries

Multiple Table Queries Icon
Most of the queries you create in Microsoft Access will more that likely need to include the data from more than one table and you will have to join the tables in the query. The capability to join tables is the power of the relational database.

As you know, in order to join database tables, they must have a field in common. The fields on which you join tables must be the same or compatible data types and they must contain the same kind of data, however they do not have to have the same field name (although they probably will).

Occasionally, the two database tables that you want to bring the data from may not have a field in common and you will have to add another table to the query with the sole purpose of joining the tables.
 

Join 4 Tables in 1 Query

Join 4 Tables in 1 Query Icon
I have a Table joining problem.

I have 4 table and each table have 3 columns each. All Tables have ID as their primary key.

Here's the table names and columns (a, b , c are column names)

Tab1 - ID, a, b
Tab2 - ID, c, d
Tab3 - ID, e, f
Tab4 - ID, g, h

I need to change the order of columns in retrieved data should this order ID, a, h, c,g,b,d, e, f
Can Order by statement can be use with Table joining?

I can join 2 tables but, I need to join all 4. Not only that I need the exact order (not the ID, a ,b, c, d, e, f, g, h order)

Using Order by is the biggest problem I have.
 

Creating a Self-Join Query to relate data within a table in Microsoft Access

Creating a Self-Join Query to relate data within a table in Microsoft Access Icon
When working with Microsoft Access Queries you will no doubt work with a range of join types, from the default Inner Join to the more complicated Outer Joins. In some cases, however, the related data is all within a single table. In this situation you will use a special join type that can be used to retrieve the desired data.
This type of relationship does not exist between multiple database tables, it is actually a relationship that exists between the records within a single database table.
Consider the scenario where all of the data you require is contained within a single table, but you may need to be able to relate columns within that table to each other to extract the desired data. Usual examples of this type of data relate to Employee information, where the table may have both an Employee's ID number for each record and also a field that displays the ID number of an Employee's supervisor or manager.
To retrieve the data you need to be able to relate the data to itself. For this purpose the Self-Join is designed to do exactly this action.
 

LEFT JOIN, RIGHT JOIN Operations

LEFT JOIN, RIGHT JOIN Operations Icon
Combines source-table records when used in any FROM clause.
 

Help with database join

Help with database join Icon
I am trying to join two tables but keep getting attached error.

The tables which l cannot join are company and fleet data and management vehicles subform table.

I don't mind how the two tables are joined as long as l can create records without any problems and then create a query to link which combines the two.