473,395 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

append from table1 any sql equivalent query

232 100+
is there any sql equivalent of foxpro command
use tablefinal
append from table1
append from table2
append from table3
here append inserts matching column records from all three tables in final
insert data in tablefinal from table1,2 and 3
Oct 30 '11 #1
2 2647
patjones
931 Expert 512MB
Hi kk,

I don't know if there's a corresponding command in SQL Server (I suspect that you can find out for sure by combing through the help utilities). Why not just do something like this:

Expand|Select|Wrap|Line Numbers
  1. INSERT INTO tablefinal(column_name) SELECT column_name
  2.                                     FROM table1;
Oct 31 '11 #2
You can use union all operator as:
select * from table1
union all
select * from table2
union all
select * from table3.

You may use union operator if you want to avoid duplicat values.

Thanks

Alemayehu G. Desta
Dec 7 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Girish | last post by:
I need to run a query which will pull data from two tables and append it as one when it displays the result. The data are in two tables. But the result set will be identical in terms of number of...
2
by: Neeraj | last post by:
Hii , I am using Db2 V 7.1 on ZOS I have the following Java Code query.append("insert into "); query.append(schemaName+".EMAIL_DATA "); query.append("(EMAIL_NBR, DT_FIRST_SENT,SUBJECT...
3
by: Arijit Chatterjee | last post by:
Dear All, I have written a query in Oracle.It is actually doing a running sum for a particular field.I am giving the query details =============================================================...
1
by: Aaron | last post by:
Hello fellow programmers, I am trying to run an append/update query from code, a command button on a form initiates the queries. the format i am using is; ...
0
by: Hash123 | last post by:
Hi All, Does anyone know what is the equivalent query for 1 SELECT name, salary 2 FROM emp 3 START WITH name = 'Goyal' 4 CONNECT BY PRIOR empid = mgrid in DB2
2
by: atiq | last post by:
why isn't my Access giving me warning before runing the delete, append or update query because usually it warns you that you are about to append, update or delete the following number of records. It...
1
rsmccli
by: rsmccli | last post by:
Hello, using Access 2002. I was wondering if someone knows a way to show the results of an append or update query. When you run, let's say, an Append Query, Access notifies you that 10 records...
8
jinalpatel
by: jinalpatel | last post by:
I have two tables. tblClass and tblWithdrawn. On my main form(bound to tblClass) I have several data entry fields like Date withdrawn, Status (active or withdrawn) Date Classified etc. Also...
9
by: JoeKid09 | last post by:
Hey guys! Thanks in advance for your help. I'm working in loading a table with values from a product table, and then update those products with every customer name, So that every single customer...
3
by: Erik Pygott | last post by:
I'm trying to make a query in Access 2007 to append a record in one table to another table and include a bit of user-supplied information. Let's say there are two tables: TableA and TableB....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.