Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

CTEs and UNION SELECT in STAR Schema Expand / Collapse
Author
Message
Posted Wednesday, October 30, 2013 11:46 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, December 11, 2013 1:40 PM
Points: 43, Visits: 86
Hi there,
It seems I can't use old standbys like CTEs and UNION SELECT statements with STAR Schema databases? Is this true or am I missing something? Are there different ways to do this with non-RDBs? They are standard FACT and DIM tables but I need to pull data from the dimension tables to explain the fact tables and nothing seems to work. For information, I am pulling data from Teradata and not using SSMS to write the code as I am still on SQL Server 2005. Thanks!
Post #1509899
Posted Wednesday, October 30, 2013 1:46 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 13,322, Visits: 10,191
Star schema's with facts and dimensions is just a modelling technique used for data warehouses.
If your model is implemented in SQL Server, you can still use CTEs and UNION ALL queries.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1509928
Posted Wednesday, October 30, 2013 1:52 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, December 11, 2013 1:40 PM
Points: 43, Visits: 86
Thanks Ken. Unfortunately, I don't know of a way to connect directly to Teradata from SQL Server 2005 to write code. I think it works in SQL Server 2008 but not in 2005 unless I am mixed up about that which is entirely possible. I know that I can link from Visual Studio but not from Management Studio.
Post #1509931
Posted Wednesday, October 30, 2013 2:30 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 13,322, Visits: 10,191
I know there are specific SSIS connectors for Teradata, but not sure they are available for 2005.
Never worked with Teradata myself.




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1509942
Posted Wednesday, October 30, 2013 2:37 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, December 11, 2013 1:40 PM
Points: 43, Visits: 86
K,

Thanks for help. Was trying to avoid duplicate work but not sure it's possible. Don't really see the logic of pushing the data from an ERP into a DW and then into SQL but I grew up in the world of Keep It Simple.
Post #1509945
Posted Wednesday, October 30, 2013 2:59 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 5:26 AM
Points: 13,322, Visits: 10,191
Janie.Carlisle (10/30/2013)
K,

Thanks for help. Was trying to avoid duplicate work but not sure it's possible. Don't really see the logic of pushing the data from an ERP into a DW and then into SQL but I grew up in the world of Keep It Simple.


A datawarehouse is still the same as a regular SQL Server database. It's just more denormalized,, which is a modelling technique.
If you can get it into the DW, you can get it into SQL.

Unless you mean Teradata with DW, that's something else




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1509949
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse