Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create two new tables from one existing table

Status
Not open for further replies.

timhans

Programmer
Jun 24, 2009
75
Hello
very new to writing sql,I need to create two new tables from one existing table.

One table is all of the data of 1Section and the second table is all of the data of 2Section.

I have been trying but not getting it.

Any help is very appreciated.

Thanks

| ID | SUBJECT | RELATIONSHIP | 1SECTION | COL5 | COL6 |
---------------------------------------------------------------
| 1 | John | Boss | 1Section | 1sQuestion1 | 2 |
| 2 | John | Peer | 1Section | 1sQuestion1 | 4 |
| 3 | Sally | Boss | 1Section | 1sQuestion1 | 3 |
| 4 | Sally | Peer | 1Section | 1sQuestion1 | 5 |
| 1 | John | Boss | 1Section | 1sQuestion2 | 4 |
| 2 | John | Peer | 1Section | 1sQuestion2 | 3 |
| 3 | Sally | Boss | 1Section | 1sQuestion2 | 3 |
| 4 | Sally | Peer | 1Section | 1sQuestion2 | 6 |
| 1 | John | Boss | 2Section | 2sQuestion1 | 3 |
| 2 | John | Peer | 2Section | 2sQuestion1 | 2 |
| 3 | Sally | Boss | 2Section | 2sQuestion1 | 4 |
| 4 | Sally | Peer | 2Section | 2sQuestion1 | 1 |
| 1 | John | Boss | 2Section | 2sQuestion2 | 4 |
| 2 | John | Peer | 2Section | 2sQuestion2 | 5 |
| 3 | Sally | Boss | 2Section | 2sQuestion2 | 5 |
| 4 | Sally | Peer | 2Section | 2sQuestion2 | 3 |
 
Why would you need to create new tables when we typically use queries to create a filtered record set. If you really want to create two tables, you could build to make table queries.

Duane
Hook'D on Access
MS Access MVP
 
Hi,

Chopping data up into multiple locations (tables) only serves to complicate life. What is the business case for this exersize?

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top