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)
 virtual table

Author  Topic 

InF3sted
Starting Member

18 Posts

Posted - 2008-09-26 : 08:55:01
how to create virtual table from three tables
table one tStatTelekom
table two tStatTelenor
table three tStatVip
i need to create one table vstat,any solutions?

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-09-26 : 08:58:55
you mean a VIEW (read about them in Books Online)? start with a select query that joins all 3 together

Em
Go to Top of Page

InF3sted
Starting Member

18 Posts

Posted - 2008-09-26 : 09:00:23
yeah view,hell but i don't know how to join them?
Go to Top of Page

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-09-26 : 09:01:42
well, logically how are they related to each other? show us your table definitions

Em
Go to Top of Page

InF3sted
Starting Member

18 Posts

Posted - 2008-09-26 : 09:04:47
they are all in one base dbo.itvContentHR

they all have row Opcija za glasanje and all Have BrojGlasova row and the first one have ImeKandidata thats it????
Go to Top of Page

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-09-26 : 09:06:56
i have no idea what you just said

post your table definitions and some sample data

Em
Go to Top of Page

InF3sted
Starting Member

18 Posts

Posted - 2008-09-26 : 09:09:24
and final table needs to have tj Vstat
rows OpcijazaGlasanje ,ImeKandidata ,Br.Glasova Telekom, br.Glasova Telenor, Br.Glasova Vip, UkupnoGlasova ?
Go to Top of Page

elancaster
A very urgent SQL Yakette

1208 Posts

Posted - 2008-09-26 : 09:11:52
i have no idea what you just said

post your table definitions and some sample data


Em
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-09-26 : 09:19:26
Read this first and you will get an answer.

http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx
Go to Top of Page
   

- Advertisement -