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
 SQL Server Development (2000)
 Incremental Recursive sub-select -- possible?!

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2001-11-09 : 14:34:11
Jeremiah writes "Since I can word the question, I'm positive there's a way to make the SQL query.

I have a table of buildings:
bldg C(10),
floors I

So, how can I get a select returning a separate row for every floor number? As in:
bldg1, 1
bldg1, 2
bldg1, 3
bldg2, 1
bldg2, 2
bldg2, 3
and on!

thanks for any help!!!"
   

- Advertisement -