SCDs With The Same Business Key

Apr 11, 2008

Hi all,

I've created a store dimension. Within the store dimension is a CityID column that is related to a City dimension. Currently this city dimension has the following columns:

CityID (primary key --- foreign key for the StoreDim)
CityName
CountyName
StateName
CountryName
...

My SCD's source is being loaded from a query to a Zip table that contains ZipCodes along with cityID, CountyID, StateID, and CountryID that can be joined out to their respective tables to find the information needed to populate my SCD. However, cities can have several number of zipcodes and several cities in different states can have the same names. This causes a problem with eliminating duplicates for my dimension as well as finding a suitable business key.

For example, let's take a case: Washington city, District of Columbia (county), District of Columbia (state), USA (Country)
Now, this city has SEVERAL zip codes so when I create my joins:


SELECT ...
FROM Zip Z
INNER JOIN City C
ON C.CityID = Z.CityID
INNER JOIN County Cty
ON Cty.CountyID = Z.CountyID


So this returns several CityIDs for the same city... which when I try to use for my SCD causes problems because i have several business keys based off my CityIDs so my dimension loaded would look like

CityID CityDesc CountyDesc StateDesc CountryDesc
1 Washington District of Columbia District of Columbia USA
2 Washington District of Columbia District of Columbia USA
3 Washington District of Columbia District of Columbia USA
4 Washington District of Columbia District of Columbia USA

I want to have just ONE record in my dimension for this city.... How would I do this and what would I use for a business key? Also any recommendations on which of these attributes should be historical attributes? I would appreciate any input you guys have.

View 4 Replies


ADVERTISEMENT

Processing SCDs In Bulk

Mar 15, 2006



I read another post. I'm hoping I'm just doing something wrong, and that the SSIS team wouldn't have done this:

I read in a batch of records that should cause changes in an SCD in some cases. The table is empty originally. In the wizard, its handling changing attibutes ,fixed and historical.

3 records in ( all with the same business key) = 3 records out?

In this case, it should only produce 1 record.

Are you kidding me? There must be a way to set the batch size to 1, right?



View 5 Replies View Related

Installing VS2005 And Business Intelligence Report Projects On A Vista Business Workstation

Oct 23, 2007

Does anyone have a successful prescribed sequence for installing VS2005 and Business Intelligence Reports Projects on a Vista Business workstation to be used to create reports for a server?

I've looked through everything I can find here and I don't seem to see a clear solution without a lot of trial and error.

Fact is, I've not been successful getting just the reports to install on a plain XP box. Of course, the report creation looks fine on the server but I don't want to work directly on the server.


Thank you

View 1 Replies View Related

Synchronization Of Business Contacts In Outlook With Small Business Accounting

Jun 10, 2006

Can anyone take me through synchronization of contacts within Business Contacts Outlook into Microsoft Small Business Accounts?

I run a stand alone PC with NO network. When SBA came SQL was also installed. Apparently you can synchronise Contacts within Business Contacts with SBA but both SBA & Outlook should work through the same SQL server.

Has anyone tried this?

Can someone walk me through the process?

Thanks

Debbie

View 1 Replies View Related

Business Intelligence

Feb 10, 2008

 I had to do a re-install of SQL 2005 Standand Edition.  I
now do not have the BI, I do not know if it came with it or not. 
What would I need to install ifit did?  I also wanted to
ask:  I know that MS Office Excel has the capabilites to sames as
an XML file, but it is not very readable to import into the SQLdatabase.  Is there a way to import the XML file into the database via one of the express editions? Thank youDee 

View 1 Replies View Related

Business Days

Jun 20, 2008

dear gurus,

I want to get the working days between two days..
in a single query.

i will give the start_date '06-02-2008',end_date '06-13-2008' the result should be as below.


06-02-2008Monday
06-03-2008Tuesday
06-04-2008Wednesday
06-05-2008Thursday
06-06-2008Friday
06-09-2008Monday
06-10-2008Tuesday
06-11-2008Wednesday
06-12-2008Thursday
06-13-2008Friday


Thanks in advance.

cool...,

View 5 Replies View Related

Business Intelligence

Jul 12, 2005

I want to understand what is Business intelligence and what is functions of it

View 1 Replies View Related

Business Days

Sep 24, 2007

I Have a date range and i want to calculate the number of days - the weekends(saturdays and sundays) so that only businessdays are obtained.

A simple table's example:

Name, surname, datebeg, dateend

How can can it be done with sql?
BB

View 3 Replies View Related

Calculating Business Day

Aug 20, 2007

Hi,

I am wondering what is vb.net method of calculating the prior business day (Monday - Friday).

For example, if today is Monday, Aug. 20, the last business day would have been Friday, Aug. 17.

I have a way to do this in SQL, but not vb.net.

Thanks much

View 4 Replies View Related

Using Business Objects

Feb 28, 2008

Ok, probibly an easy question but I haven't been able to find what I am looking for.

If I have a simple class (see below), how would I make the People List avalible to build a report off of?

Thanks

asdf46





Code Snippetpublic class Person
{
public string FirstName { get; set;}
public string LastName { get; set;}
}

// and put them into a list
List <Person> People = new List<Person>();
People.Add(new Person () { FirstName = "Joe", LastName = "User"});
People.Add(new Person () { FirstName = "Jane", LastName = "Smith"});

View 3 Replies View Related

Business Intelligence

Jul 24, 2007

The Business Intelligence isn't showing up in the menu with ( Visual Basic, Visual C##, etc). A teckie installed the pro version and said she installed everything, can some one point me in the right direction. We purchase the media and installed from that.

View 2 Replies View Related

Business Logic File Needs Something...

Feb 26, 2008

Or maybe it can't find something it's looking for to make my additional symetrical with everything else. This is from one of my businesslogic files.  What causes Visual Studio to not allow me to add something here and have it behave like the other parameters/  I'm talking about ShortDesc.  Visual studio inserted () and the Get instead of GET like all the others.  It would not allow me to capitalize the "get". There has to be a reason for this. Currently my program is adding all of the fields except the ShortDesc to the table in my database. Does anyone have any thoughts as to why this is the case?
 
 #Region "Pvt Members"        Private _ArticleID As System.Int32        Private _UserID As System.Int32        Private _WebSiteID As System.Int32        Private _ArticleTitle As System.String        Private _Author As System.String        Private _ShortDesc As System.String        Private _ArticleText As System.String        Private _AnchorText As System.String        Private _ShowInDirectory As System.Boolean        Private _Active As System.Boolean        Private _DateAdded As System.DateTime#End Region#Region "Properties"        Public Property ArticleID As System.Int32            GET                Return _ArticleID             End Get             Set(ByVal Value As System.Int32)                _ArticleID= Value             End Set         End Property         Public Property UserID As System.Int32            GET                Return _UserID             End Get             Set(ByVal Value As System.Int32)                _UserID= Value             End Set         End Property         Public Property WebSiteID As System.Int32            GET                Return _WebSiteID             End Get             Set(ByVal Value As System.Int32)                _WebSiteID= Value             End Set         End Property         Public Property ArticleTitle As System.String            GET                Return _ArticleTitle             End Get             Set(ByVal Value As System.String)                _ArticleTitle= Value             End Set         End Property         Public Property Author As System.String            GET                Return _Author             End Get             Set(ByVal Value As System.String)                _Author= Value             End Set         End Property        Public Property ShortDesc() As System.String            Get                Return _ShortDesc            End Get            Set(ByVal value As System.String)            End Set        End Property        Public Property ArticleText As System.String            GET                Return _ArticleText             End Get             Set(ByVal Value As System.String)                _ArticleText= Value             End Set         End Property         Public Property AnchorText As System.String            GET                Return _AnchorText             End Get             Set(ByVal Value As System.String)                _AnchorText= Value             End Set         End Property         Public Property ShowInDirectory As System.Boolean            GET                Return _ShowInDirectory             End Get             Set(ByVal Value As System.Boolean)                _ShowInDirectory= Value             End Set         End Property         Public Property Active As System.Boolean            GET                Return _Active             End Get             Set(ByVal Value As System.Boolean)                _Active= Value             End Set         End Property         Public Property DateAdded As System.DateTime            GET                Return _DateAdded             End Get             Set(ByVal Value As System.DateTime)                _DateAdded= Value             End Set         End Property #End Region

View 1 Replies View Related

Number Of Business Days

Mar 22, 2001

Is there any easy way to calulate number of business days between the 2 dates ?
I want to exclude all sat and sun between the 2 dates.

View 1 Replies View Related

Calculating Business Hours

May 10, 2006

I am trying to calculate business hours that an order that is open. The rules are 8am-5pm. For instance the first row, the clock would stop at 17:00, and pick up again at 8am and add on to total business hours. If the order was created after business hours, and the endstamp was before business hours, this would be 0. If created after 5pm friday, and the endstamp was before 8am monday, this would be 0. In the second set of timestamps I have here the order was recieved at 14:39 but took until the following day at 14:49 to be ordered. I imagine I have to use datepart and datediff for this, but other than that I am not sure on how to do it. Any help would really be appreciated!



StartStampEndstamp
6/27/2005 14:356/27/2005 17:41:11
6/27/2005 14:396/28/2005 14:49
6/27/2005 18:486/27/2005 18:54
6/27/2005 11:416/27/2005 11:45

View 7 Replies View Related

DATEDIFF For Business Days Only

Aug 16, 2007

I'm looking for a DATEDIFF function which will give me the
BUSINESS days difference between 2 dates.
e.g: datediff(day,'08/08/2007','08/14/2007) would normally result in 6 (i think), however in business days this would be 4.
is there such a function?
Thx

View 4 Replies View Related

Business Intelligence Top 10 Issues

Mar 3, 2008

Interesting news article

http://www.theserverside.com/discussions/thread.tss?thread_id=48599

View 1 Replies View Related

Computing Business Hours

Mar 16, 2004

I am attempting to compute Service Levels for an interaction based upon business hours. For example, an email arrives at 4pm and is handled the following day at 10am. Call Center Hours are 8-5.

Essentially I have a number of different alternatives, and have found some potential solutions, including:

www.dbforums.com/arch/7/2003/9/914261

However, my situation has a couple of additional twists to the standard 8hrs of business M-F. The call center is open different hours depending upon the day of the week. For example, 8-5 M, 10-7 T, 8-5 W Th F, 10-2 Sat, 10-12 Sun

Additionally, I would like to remove Holiday's from the calculation for service level as well.

I have explored a number of different table DTD's, but none seem to be a perfect fit for determining the number of "open" hours between when an interaction arrived, and when it was handled.

The DTD I have for the Holiday table is as follows:

CREATE Table Holidays (HolidayDate DateTime)
GO
Insert Into Holidays (HolidayDate) Values ('12-25-2004')


Please let me know what you feel would be the DTD for storing the business hours and also the query for extracting the number of Open hours between two dates

Thank you in advance

View 13 Replies View Related

Defing Business Processes

Feb 12, 2007

Sorry, didn't quite know where this should go.
I'm reading Kimball Group's "Microsoft Data Warehouse Toolkit"
Has anyone got any experience in defining business processes? I'm struggling a little to look at my employer's recruitment busines and work out exactly what the real processes are.
Or maybe one of you has read something somewhere about this specific skill?

------------------------
Me: What do you want to know from your data warehouse?
Client: Err...Emm...Everything
Me: OK, that's great. That's all I need to know. I'll see you when it's done.

View 2 Replies View Related

SQL Business Intell. Dev. Studio

Nov 8, 2007

SQL BI Dev Studio is installed our SQL 2005 Server, however, it also needs to be on the person who is developing reports. I've already given her access to the sql db she will be working with. Can I install just the BIDS be installed on her desktop from the SQL CD?

View 1 Replies View Related

Want To Calculate Business Hours

Nov 8, 2007

hi Everyone,

I have one query, i want to calculate the business working hours (like from monday to friday 9 to 5 pm and saturday 9 to 2 pm) for the given dates. And also i want to eliminate the public holidays with in the given dates.



If any one was faced the same situation plz help me.




Regards

Venki

View 3 Replies View Related

Not Seeing Business Intelligence Projects

Dec 16, 2007



Hello everyone..

Start with a Vista Ultimate laptop running in x64. VS 2005 loaded second in x64 mode and sql 2005 developer loaded with everything in x64 mode.

I see the x64 service running in the sql server configuration manager but I don't see business intelligence project under sql server in the start menu or as a type in VS 2005.

Please help.. I love SSIS

View 5 Replies View Related

Business Intelligence In SQL Express?

May 5, 2006

Hello,

I have spent about half an hour looking for an answer to this, so apologies if I have missed it.

Can you get Business Intelligence Development Studio together with SQL Server 2005 both in Express editions? There was mention of an Express toolkit which includes BIDS but it seemed to imply you couldn't combine it with SQL Server Express.

If not, what is the cheapest way for an individual to get Business Intelligence Development Studio? My evaluation edition is about to run out.

Thanks,

View 1 Replies View Related

Business Intelligence On ROLAP

Aug 23, 2006

Hi all,

I am inquiring whether I can have some business Intelligence on Relational DBMS in SQL 2005 as projecting the number of patients within a health care basing on the available data.

Please help me out.

Regards,



Ronnie

View 7 Replies View Related

SQL - Business Contact Manager

Jun 8, 2006

I downloaded Business Contact Manager. With the download an SQL server is part of the download. When I rebooted my machine. The SQL server is not connected.



It's asking for:

Server
Service

How is this process completed to operate correctly?



Thank you,

Golf4Dee

View 3 Replies View Related

Business Rules Table

Aug 8, 2007

Which is the best practice for Business Rules


a. Hardcoded Column Names

b. Rowwise values RuleName, Criteria
Please suggest the best method

View 4 Replies View Related

Why Is Data Mining Use Too Little In Business?

Jan 11, 2007

Hello everybody,
 
There have been a lot of promising words around about data mining for (at least) the last decade. If one investigates how much data mining is applied in business, it can be concluded that this is rather limited. Currently I am investigating the possible causes of this limited data mining usage for my Master Thesis of Industrial Engineering and Management. This investigation includes a literature study and input a couple of experts from the data mining field.
 
Currently I want to check my results for two aspect with aid of other data mining practitioners:


 Is my analysis of possible causes complete (iow: what is missing?)

 Are the identified causes recognized confirmed or rejected by data mining practitioners?
 In order to proceed with my verification, I am looking for data mining practitioners, who are willing to give feedback on my work. I will send the participants a document with my findings to enable them to give their comments and other kind of feedback. (Or is it a better idea to start the discussion right here in this forum, let me know!) I think that my findings might be useful for every practitioner in the field and encourage you to participate.
 
Are there any people in this forum, who are willing to participate? In return you will receive my final results, which may be valuable for you as well.
 
Thanks!

View 3 Replies View Related

Business Logic In Store Procedure

Apr 5, 2006

Hey guys,I have to import a csv file to my database and then add
some values to other fields based on these values. At present I use a
store procedure that does a bulk insert and then I use an update and
fetch inside the sql to perform these updates. I am not sure if this is
the best way. Is this bad, since some amount of busniess logic is in
the store procedure?If it is, how can I do this better?Thanks for the answer.

View 1 Replies View Related

Business Objects Locking Problems

Mar 23, 2000

We have a user who uses Business Objects to run queries on the database. They are reporting that the query can lock the database up and that they were told at a conference that there is a setting which can aleviate this problem, but they are not sure if it is in SQL Server or Business Objects.

Anyone got any idea what they are talking about?

Colin.

View 1 Replies View Related

Need Function To Count Business Days

Apr 21, 2000

I need a function to count business days (exclude Sat, Sun) that I can call within a view. I would rather not build a "calendar table" this will be used ongoing for years into the future.

Does anyone have anything like this they could share? If there is another source you could direct me to I would appreciate that as well.

TIA
Phil

View 1 Replies View Related

Vista (Business) Odd Issue With ODBC

Jun 13, 2007

We are still using SQL2k. I've installed the clients stuff for SQL. One thing I noted is that it was all but impossible to setup an ODBC connection because the driver does not appear in the list.

Every other driver shows up and works fine but not the SQL Server driver. A week or two ago I somehow found it and was able to create a system DSN. Now, I can't find the driver to save my life. I know it is there because my system DSN still works.

I've looked all over the internet and haven't found a thing except someone else having this same issue (and of course no replies). I've tried to install MDAC 2.8 and reapply SP4 with no results. I know Vista is new and all but SQL 2k still has a huge install base so I can't imagine this should not work much less not be supported. Microsoft's own website is of little use as well.

I have tried to create a DSN as my domain user, local admin and domain admin all with the same issue.

View 6 Replies View Related

SELECT To Get The Last 5 Business Days- Tricky

Apr 7, 2008

I have stumbled upon a sql question I cannot answer. I am looking for the following SELECT sql statement:

Basically I need a way to get "5 days ago from today". BUT, the trick is that there is a table called tblnoworkday with contains weekends and holidays and those dates cannot count. So basically what I am really trying to get is "5 Business days ago from today".

So it would basically do this for an query input date of '4/9/08'. If the table is called TblNoWorkday and contains the following records:

...
2008-04-06 00:00:00.000
2008-04-05 00:00:00.000
...

This is the last 5 business days then: (not in the table)

4/9/08
4/8/08
4/7/08
****weekend****
4/4/08
4/3/08

The query should return just 4/3/08. The problem is 4/3/08 doesn't exist in the database since the database only contains the no work days.

Any ideas on how to do this in a simple query without having to create another table with the valid working dates?

Thanks Before Hand,
Adiel

View 10 Replies View Related

SQL FUNCTION Business Date/Time

Jan 2, 2007

Is there an SQL function out there, that calculate date like this

Todays Date 02/01/2006 - dd/mm/yyyy
Staff working in time 9.00am
Staff end of work time 17.30pm
A customer log a call at 15.30 and this call should be resolved within 3 hours of recieving the call therefore the call should be resolved before
or at

03/01/2006 - 10.00am

Being that End of work time - Call time = 2hrs remaining 1 hr
then add 1 hr to the start of working tommorrow which is
03/01/2006 - 10.00am

Tips/Code will be appreciated
Thanks


If it is that easy, everybody will be doing it

View 20 Replies View Related

Business Intelligence Development Studio

Sep 5, 2007

Hi

I have recently started working in a SQL 2005 (Enterprise Edition) clustered environment. I neeed to start using the Business Intelligence Development Studio but it is not installed.

I have tried re-running the setup but there is no component option for BIDS. At which point during installation does it get installed or what do I need to run to install it?

And if I do run setup again will it affect other installed components?

Thanks
Mike

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved