answersLogoWhite

0

To unite data from two different tables. Say you had a table of your customers and a table of your staff and you wanted to list the names of all people from both tables in a single list, you would use a union query. Your SQL command would be something like this:

Select Firstname, Surname from Customers

Union Select Firstname, Surname from Employees

You would then get a list of two fields, taking data from the two tables. The field names don't have to be the same in both tables, as they are in the example, but the order in which you list them should be corresponding.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is a nested query?

It is a query inside another query. Sometimes we might use one query to reduce down the amount of data to go through and then use another query based on the output of that query to get what you want. The first query is inside or nested in the first query.


How to effectively use the keyword "hiw to d" in a search query to find relevant information online?

To effectively use the keyword "how to d" in a search query, you should include specific details related to what you want to learn or do. For example, you could search for "how to draw a cat" or "how to dance salsa." This will help narrow down the search results and find more relevant information online.


How to change a field to Uppercase in a query?

Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.Use an Update query and in it you would use the Upper function.


What is a keyword?

A keyword is a key for online users who use it to operate the search engine for their queries in the form of words and phrases to find information. A keyword is a valuable part of a website because it tells search engines about the content of your website page. “Keywords” are terms that indicate the words or phrases that an online user enters into a search engine to find the information that they are looking for. If a user’s search keywords match the keywords on your site, then the search engine will display your site on the search result page. Hope this will be helpful for you.


Can I use your keyword in my question?

Yes, you can use the keyword in your question.


How do you combine two tables data without using joins?

One way to combine data from two tables without using joins is to use a UNION clause. This allows you to stack the results of two queries on top of each other, combining the data from both tables. Another option is to use subqueries to retrieve information from one table and then use it as a filter or condition in the query for the other table. This way, you can indirectly combine data from both tables without using explicit joins.


Is it okay to use the keyword in this context?

Yes, it is appropriate to use the keyword in this context.


What query do you use to extract data from two tables?

You would use a JOIN query for this.


Use query in a sentence?

He was very query in the middle of the crowd.


What is the use of keyword new used in AWT programming?

what is the use of new keyword in awt programming


Why use one word when searching the net?

What you are looking for might be more precise. It depends on what you are looking for and what it's keyword(s) is/ are.


Who would use a query?

Just about anyone who will use access will need to use a query (interrogated the data) at some point