Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 create table from table

Author  Topic 

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2003-08-13 : 22:06:07
is possible to create table if the fields get from records on the other table??

oh

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-08-13 : 22:18:14
Yes:

SELECT EmployeeID, FirstName, LastName INTO SmallEmployees FROM Northwind..Employees
Go to Top of Page

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2003-08-14 : 01:40:39
no like that ..
but like this

TableA

NameOfObjects
======
name
birthdate
Address
...

is possible to create query and the result is
TableB like

name birthdate Address
==== ========= =======


-the row data in tableA ==> fields in tableB


oh
Go to Top of Page

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2003-08-14 : 02:08:58
If you can't be bothered giving correct information don't be surprised when the answer is wrong. You have just wasted Rob's time now.

Do a search on the front page of the site for "Crosstab"


Damian
Go to Top of Page

u2p_inst
Yak Posting Veteran

78 Posts

Posted - 2003-08-14 : 03:46:26
thanks Damian for your answer that solve my problem

oh
Go to Top of Page
   

- Advertisement -