answersLogoWhite

0

I am confused with your question, so I will do both interpretations. The query wizards may help you but you didn't say which Access you are using so we will do it in the query builder instead.

.................

You have a table with 25 keys and a table with 10 foreign keys for this example. This could be a one-to-one relationship or a one-to-many in which the 'many' table just has records that match some of the keys in the 'one' table.

You want to see all the 25-key table and anything in the 10-key table that matches. So 15 of the keys from 25-key will not match the 10-key table but you want to see them anyway.

In the query builder, link the key fields going from the 25 table to the 10 table. Then right-click on the link and select the 2nd option "show all from 25-table and the matching records in the 10-table".

Run the query. You will see everything from the 25-table. In the fields from the 10-table there will be blanks where nothing matches.

..................

My second guess is you want to see the ones that don't have a matching key. If it matches you don't care about it, like when you are trying to find keys to fix so you can have integrity between the tables.

You have a table with 10 keys and a table with 25 foreign keys and you need to find those extra 15 foreign keys so you can fix the data integrity. (Notice that this is the opposite of the 2 tables in example 1 - the extras are in the foreign key table. You will most often have this problem when you import data, not when you are doing data entry.)

In the query builder link the tables, 25-table to 10-table. Again do the right-click on the link and select the 2nd option.

Show only the fields of the 25-table down in the bottom part. Now drag the key field from the 10-table down to the grid. Un-check the box under the field name and table name. In the criteria row type "Is Null".

Run the query. You will see the records from the 25-foriegn key table that need to have keys set up in the 10-key table.

..................

In both cases, if you want to filter the records do it in queries and then link the filter queries instead of the tables.

This is an over-simplification and I am assuming you have actual key fields set up, like an autonumber field on the 'one' side. If you have something like "blue", "red", "green" as your key field you have some real work to do.

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

What does the term query mean in relation to databases?

Query is a thing you are searching for in the database.


How do you delete all table in a database?

Unless you want to drop (delete) the entire database, you will must delete tables individually. To delete tables individually, execute the query "SHOW TABLES" in your database which will return a list of all table names. Iterate through that resultset and execute "DROP TABLE {$table_name}"


What is difference between interquery parallelism and intraquery parallelism.Explain with an example?

Inter-query parallelism results from the ability to execute multiple queries at the same time while intra-query parallelism is achieved by breaking up a single query into a number of subqueries each of which is executed at a different site, accessing a different part of the distributed database. If the user access to the distributed database consisted only of querying (i.e., read-only access), then provision of inter-query and intra-query parallelism would imply that as much of the database as possible should be replicated. However, since most database accesses are not read-only, the mixing of read and update operations requires the implementation of elaborate concurrency control and commit protocols.


Is it possible to access databases through C-CPP and if so how?

Most database vendors offer an API for this purpose. The usage will vary by vendor, but generally you open a connection, query (or runcommand), check or step through results, close connection. In the MS Windows environment, you can also use ODBC (Open Database Connectivity), which is an API that abstracts (no, its not C++ classes) the database, its tables, and its query language. You still have to install a vendor specific ODBC driver, and a vendor specific database client, so you still need to consult the vendor documentation. The procedure is similar to the non ODBC solution - you open the connection, query it, step through the results cursor, and close the connection.


What is the difference between QBE and SQL?

Query by Example (QBE) is a database query language for relational databases. A QBE parser parses the search query and looks for the keywords. A more formal query string, in languages such as SQL, is then generated, which is finally executed. However, when compared with a formal query, the results in the QBE system will be more variable.SQL (Structured Query Language) SQL is a set-based, declarative query language, not an imperative language such as C or BASIC. However, there are extensions to Standard SQL which add procedural programming language functionality, such as control-of-flow constructs

Related Questions

What is show table in Microsoft Access?

Show Table allows you to display the structure of a table. In a query, you need to have at least one table, and using Show Table, you can pick the table or tables you need for that query. Once you've picked your tables, you can then choose the fields you need.


What you can use inbuilt feature in MS Access to create tables?

You can use the Create Table Wizard, a Make Table Query or a Data Definition Query as ways that are built into Access to create tables.


What is an add query?

An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.An add query, more commonly known as an Append query, allows you to add records to a table. It can combine data from two tables, reading data into one of the table. There must be compatibility between the tables, like having similar fields. You could have two tables with names and addresses and having corresponding fields. They could then be transferred into the corresponding field. If there are no compatible fields, then it can't be done.


What evaluates a specified data set and returns certain fields from that days set as instructed?

query


What does the mean in Microsoft Access?

The * symbol is a universal wildcard symbol. In the Access Query By Example Design Pane, the * represents all fields in the table or query.


A(n) evaluates a specified data set and returns certain fields from that data set as instructed?

Query (apex)


How do you create update query in access?

If its 2007, Go to the "Create" tab, then "Query design" drag all the fields into the table at the bottom, Presto.


Query used to add fields to existing tables?

The query can be called an Append query. New columns can be added to existing tables by using the ALTER TABLE command in SQL. ex: ALTER TABLE tbl_employee ADD emp_address VARCHAR(100); The above command adds a column emp_address to an existing table tbl_employee


Which report creation tool will automatically pull in all the fields from a table or query access?

Report tool


Does retrieving data from two related tables require the creation of a query for each table?

No. One query can take data from more than one table. You would just need to make sure that you have set up the relationship between the tables that you put into the query. You also need to be careful about how you choose the fields and how you set the property of the join between the tables. If you don't do it properly you can get unexpected results.


When you want to extract data from two or more tables you use an query?

When you want to extract data from two or more tables, you can use a SQL JOIN query. By using JOIN clauses, you can combine rows from different tables based on a related column between them. This allows you to retrieve data from multiple tables in a single query.


When you define a query that performs a calculation you must add a field?

It is possible to do a simple calculation in a query without having any fields in it, but generally the whole point of queries is to work with data from tables, so there would be fields in them. If you wanted to do a calculation that did not involve any fields, then there would be no reason to use a database. You could use a spreadsheet or a calculator.