Association rule in SQL Server Data Mining

I have been working on a problem on association rules in SQL Server Data Tools (Visual Studio 2008) for quite a while but have not yet been able to figure out the solution.
The problem is: I have a table named Sales_history in my SQL database. This table has following columns: CustomerID, ItemID, Month (from May2012 to April 2013), QtyShipped. I am looking to find association between Items and i want to provide recommendation
to the Customer (In this case CustomerID) based on their purchases.
Note: there are around 630 customers and about 34000 products in my table. 
My approach:
I marked History_Table as both Key and nested. And in the Key, i checked CustomerID as input and Key whereas in nested, i checked ItemId as Key, input and Predict. 
When i run the model, i get a solution but i am not sure if i am configuring it right. Also i am not sure how i can write prediction join query to generate Item recommendations . I am really struggling with
this problem, eagerly waiting for the reply. Thank you.

Hi Tatyana,
Thank you so much for your reply. I have now been able to create the data mining model using association rule and by writing a DMX query, i am able to generate the item recommendations to be given to customers for items they have purchased. However, i have
noticed one thing that in the DMX query, it gives the same item recommendation for any item i put inside the query. 
Also, if i put any item in the DMX query from the generated list of recommended items, the output of that query also shows the item that is inputted inside the query.
Here is the query, that i am writing to generate item recommendations
SELECT predictassociation (CrossSellingModelV3.[Ztb Customer Item v3],INCLUDE_STATISTICS,5)
FROM CrossSellingModelV3
NATURAL PREDICTION JOIN 
(SELECT
(SELECT '17IS56126' as m )
AS Ms)
AS t
What can be the possible reason behind this? Is this something related to the kind of data i have? In my data, there are 632 distinct customers and 34000 distinct products. 
If i execute this query in management studio.
select customer_CD, COUNT(Item_CD) from ztb_Sales_History
group by customer_CD
order by 2 desc
the output shows that  there are some customers who have bought just 1 item and also there are customers who have bought 2400 items. i mean the range is very high. 

Similar Messages

  • Microsoft Sql server data-mining add-on for excel 2013:

    In browsing the models using excel data-mining add-on the browsing query recognized that the query times out after 60 seconds. The question is how we can increase the query time-out
    time for data-mining add-on?

    Perhaps you are meaning the timeout settings for your Analysis Server -- under Properties, General, DatabaseConnectionPoolConnectTimeout defaults to 60.   Though I doubt that browsing any model should take 60 seconds.  Try browsing the model
    from Management Studio and seeing if you also need a lot of time.
    Mark Tabladillo PhD (MVP, SAS Expert; MCT, MCITP, MCAD .NET) http://www.marktab.net

  • Failure Installing SQL Server Data Tools 2012 on Windows 8.1

    I am trying to install SQL Server 2012 with SQL Server Data Tools on my laptop with Windows 8.1 standard edition.  It fails each time when it gets to the SSDT installation with the same 1935 error, other features still install.  The error
    text is as follows:
    The following error has occurred:
    SQL Server Setup has encountered an error when running a Windows Installer file.
    Windows Installer error message: An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.4053",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32"'. Please
    refer to Help and Support for more information. HRESULT: 0x80073715.
    Windows Installer file: F:\1033_ENU_LP\x64\setup\x64\SharedManagementObjects.msi
    Windows Installer log file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140220_201634\SharedManagementObjects_Cpu64_1.log
    Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
    For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xDC80C325
    I have disabled any antivirus software that may have been interfering and am not sure what else to try.  Any assistance on how to resolve this error would be greatly appreciated.

    Hello,
    Please read the following article about the cause of that error:
    http://support.microsoft.com/kb/2688946/en-us
    I would like to recommend you the following procedure:
    http://www.sqlcoffee.com/SQLServer2012_0008.htm
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SSIS: To run a SSIS package outside of SQL Server Data Tools you must install SCR - DP1 Connections of Integration Services or higher

    We have SSIS installed on a machine that is not part of a cluster but it is accessible by the cluster.
    Our job we have running on the cluster is failing with the following error:
    Error: 2014-01-31 09:14:37.52     Code: 0xC000F427     Source: SCR - DP1 Connections  
    Description: To run a SSIS package outside of SQL Server Data Tools you must install SCR - DP1 Connections of Integration Services or higher.  End Error
    Any advice or information on how to resolve this would be great.
    Many Thanks.

    Hi NessaBella,
    Integration Services service is not a cluster-aware service, and does not support failover from one cluster node to another. Therefore, in a clustered environment, Integration Services should be installed and started as a stand-alone service on each node
    in the cluster.
    Based on the error message, it seems that SSIS is not installed on the cluster node on which the job was running. Although SSIS is installed on a machine that is not part of the cluster and can be accessed by each cluster node, the SSIS service installed
    on a remote server cannot be used a cluster node. So, please install the shared feature SQL Server Integration Services on each cluster node. Besides, if certain packages need to run in 32-bit mode in certain jobs and the SQL Server installed is 64-bit version,
    you also need to install BIDS/SSDT on the cluster node to get the 32-bit runtime of SSIS.
    References:
    Integration Services (SSIS) in a Cluster
    Loading and Running a Remote Package Programmatically
    Regards,
    Mike Yin
    TechNet Community Support

  • Error "To run a SSIS package outside of SQL Server data tools you must install task name used in package of Integration service or highter.

    Hello Team,
    I am trying to execute a SSIS package from web page. When i try to do that i am getting following error.
    "To run a SSIS package outside of SQL Server data tools you must install <task name used in package> of Integration service or highter."
    In my machine Integration Services are installed and its service is also in running state.
    Please help me on this.
    Thanks,
    Ramesh
    Thanks, Ramesh Arige

    The SSIS package developed using SSIS 2008 Server R2 and Integrations Services 10.0 is exists in my machine. Is this wrong configuration, please help me on this.
    I am using the below code copied from CodeProject
    Thank you so much for responding.
    Ramesh
    Thanks, Ramesh Arige
    Which way are you using from the provided blog? Using 1) C# Code or 2) C# and Stored Procedure?
    Cheers,
    Vaibhav Chaudhari
    MCP, MCTS, MCSA (SQL Server 2012)

  • System Center 2012 R2 install: SQL server Data file and log file

    This might be a dumb question, but I can't find the answer anywhere.  
    I'm installing a new instance of  System Center 2012 R2 on a new server, I'm stuck on the SQL Server data file section.  Everytime I put in a path, it says that tne path does not exist.  I'm I supposed to be creating some sort of SQL Server
    data file and log file before this installation, I didn't get this prompt when installing System Center 2012 SP1 or hen I upgraded from System Center 2012 SP1 to System Center 2012 R2
    My SQL is on a different server
    Thank you in advanced

    Have you reviewed the setup.log?
    On a side note, why would you put the database file on the same drive as the OS? That defeats the whole purpose of having a remote SQL Server. Why use a remote SQL Server in the first place.
    Jason | http://blog.configmgrftw.com

  • Mapping between oracle data types and ms sql server data types

    hello
    i need mapping between oracle data types and ms sql server data types
    where can i find them ?

    read this
    http://download.oracle.com/docs/cd/E10405_01/doc/appdev.120/e10379/ss_oracle_compared.htm

  • How to convert MS SQL Server data to XML data using Java

    Hi all!
    How do I generate XML document for SQL Server data using java / jsp.
    Thanks in advance

    http://www.fdsapi.com

  • SQL Server Data Tools – Business Intelligence for Visual Studio 2013 (SSDT BI) and SSIS on SQL Server 2012

    This great blog entry titled
    SQL Server Data Tools - Business Intelligence for Visual Studio 2013 (SSDT BI), link below, highlights the lack of support for SSIS projects using SQL Server 2012, VS 2013 and SSDT BI for VS 2013. I see there is a new version
    on SSDT BI for VS 2013 (12.0.2430.0, File Name: SSDTBI_x86_ENU.exe, Date Published: 10/27/2014) link below.
    Does this version support SSIS projects using SQL Server 2012 using VS 2013 and SSDT BI for VS 2013?
    http://blogs.msdn.com/b/analysisservices/archive/2014/04/02/sql-server-data-tools-business-intelligence-for-visual-studio-2013-ssdt-bi.aspx
    http://www.microsoft.com/en-us/download/details.aspx?id=42313

    Hi cjrinpdx,
    According to the picture, it seems that we can use SSIS 2012 support is not included in SSDT-BI for VS 2013. And based on the previous versions, SSIS always different from SSRS, SSAS.
    SSDT-BI for Visual Studio 2012 supports versions of SQL Server as follows:
    SSAS project can target SQL 2012 or lower
    SSRS project can target SQL 2012 or lower
    SSIS project can target only SQL 2012
    The following blog is for your reference:
    http://blogs.technet.com/b/dataplatforminsider/archive/2013/11/13/microsoft-sql-server-data-tools-update.aspx
    Since I have no environment to test this at this moment,
    I recommend you that submit the feedback at
    https://connect.microsoft.com/SQLServer/. 
    Thank you for your understanding.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • The February 2015 release of SQL Server Data Tools is now available for download

    We'd like to announce the availability of the latest February 2015 release of SQL Server Data Tools.
    This update is now available for Visual Studio 2012 and 2013. For Visual Studio 2012, use the SQL > Check for Updates tool inside Visual Studio. For Visual Studio 2013, check the Visual Studio update channel (Tools > Extensions and Updates > Updates)
    for this update.  Alternatively, administrative installs are available via the link below.
    Get it here:
    http://msdn.microsoft.com/en-us/data/hh297027
    What’s New?
    Support for the latest Azure SQL Database V12 features
    Improved Cross-Platform Schema Comparison
    New advanced publish options
    Fixes for customer reported issues
    For more details, see the SQL Server Data Tools team blog:
    http://blogs.msdn.com/b/ssdt/archive/2015/03/03/sql-server-data-tools-and-data-tier-application-framework-update-for-february-2015.aspx

    While we are investigating this issue, you can revert to the November release with the links below.  You will need to uninstall your current SSDT.MSI and then run the installer from these ISOs.
    Visual Studio 2012 versions:
    SSDT_11.1.41025.0_BR.iso
    SSDT_11.1.41025.0_CN.iso
    SSDT_11.1.41025.0_DE.iso
    SSDT_11.1.41025.0_EN.iso
    SSDT_11.1.41025.0_ES.iso
    SSDT_11.1.41025.0_FR.iso
    SSDT_11.1.41025.0_IT.iso
    SSDT_11.1.41025.0_JA.iso
    SSDT_11.1.41025.0_KO.iso
    SSDT_11.1.41025.0_RU.iso
    SSDT_11.1.41025.0_TW.iso
    Visual Studio 2013 versions:
    SSDT_12.0.41025.0_BR.iso
    SSDT_12.0.41025.0_CN.iso
    SSDT_12.0.41025.0_DE.iso
    SSDT_12.0.41025.0_EN.iso
    SSDT_12.0.41025.0_ES.iso
    SSDT_12.0.41025.0_FR.iso
    SSDT_12.0.41025.0_IT.iso
    SSDT_12.0.41025.0_JA.iso
    SSDT_12.0.41025.0_KO.iso
    SSDT_12.0.41025.0_RU.iso
    SSDT_12.0.41025.0_TW.iso

  • Access SQL-Server Data from Oracle 10gXE

    Hello,
    I want to access sql-server data from oracle 10g XE. I need the same functionality provided by Sql-server by Linked Servers, by which we can query on any data source(oracle, Excel, Access).
    do, Oracle 10gXE provide us with same functionality ???
    any pointers ???

    Yes, it does work with Express Edition.
    Here is a thread from the XE forum with examples.
    Re: Database Link to MS Access
    They refer to a MS Access database, but the procedure is the same.
    Doug

  • SQL Server Data Tools : Schema Compare

    I have my SQL 2012 installed and also its' tools like management studio, visio studio shell 2010
    I know there is a function inside visio studio shell call "schema compare"
    how to enable/install this function ? extra license is required ?

    You can download SSDT(SQL Server Data Tools), install it. Then you can use it without extra license:
    Download SQL Server Data Tools
    more info plus tutorials:
    Microsoft SQL Server Data Tools
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • SQL Server Data Tools for SQL 2014 setup

    Hello,
    I have been using SQL server 2008 with Visual Studio 2008 to perform the ETL processes.
    I have recently got SQL 2014 and realized that Business Intelligence Development Studio does not come with it so I have to download SQL Server Data Tools for Visual Basics 2012 or 2013 from:
    https://msdn.microsoft.com/en-us/data/hh297027
    Can someone advise what exactly I have to do if I want to start using SQL  2014 with SSDT? I still have VB 2008 installed and all my packages were created with that version.
    Do I need to download VB 2012 or 2013 plus SSDT and then SSDT? Do I also uninstall VB2008?
    Thanks in advnce

    Hello,
    If you want to keep developing packages for SQL Server 2008 then you need to use BIDS 2008, you cannot use SSDT.
    If you want to upgrade BIDS projects to SSDT, then you can use Integration Services Project Conversion Wizard from Visual
    Studio or SSIS Package Upgrade Wizard from SQL Server Management Studio (SSMS).
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL Server Data Tools - for visual studio 2013

    Hi
    I have recently installed Visual Studio 2013 and need to install the SQL Server Data Tools too, as I have done in Visual Studio 2012, but I can not find the software, where can I get it?
    thanks
    MsdnMezzo

    Hi,
    I hope you serve.Regards
    SQL Server Data Tools for Visual Studio 2013 - 12.0.40403.0
    Portuguese (Brazil) 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/BR/SSDTSetup.exe
    Chinese (PRC) 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/CN/SSDTSetup.exe
    German 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/DE/SSDTSetup.exe
    English (United States) 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/EN/SSDTSetup.exe
    Spanish 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/ES/SSDTSetup.exe
    French 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/FR/SSDTSetup.exe
    Italian 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/IT/SSDTSetup.exe
    Japanese 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/JA/SSDTSetup.exe
    Korean 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/KO/SSDTSetup.exe
    Russian 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/RU/SSDTSetup.exe
    Chinese (Taiwan) 
    http://download.microsoft.com/download/2/A/4/2A4211D0-AA9B-4496-A9D4-48CDBED5C25C/TW/SSDTSetup.exe

  • SQL Server Data Tools (2012) and Business Intelligence Studios (2008)

    Hi,
    Can SQL Server 2012 Data Tools be installed alongside BIDS 2008 on my workstation or will I encounter issues?
    Thanks

    Related blogs: BIDS Templates Come to Visual Studio 2012 in SSDT Update
    QUOTE: "Of course you can. I had “BIDS” for SQL Server 2008 R2 installed earlier and then i upgraded it to SQL server 2012 . Now i have “SQL server data tools” and “BIDS ” , both running seamlessly."
    http://blog.sqlauthority.com/2013/03/10/sqlauthority-news-sql-server-data-tools-business-intelligence-for-visual-studio-2012-sql-server-2012-data-tier-application-framework/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for

  • How to have a hot spot open a small separate window

    Hi everybody.                     I'm trying to make a new website.  My old one (burrjohnson.com) is in bad need for an upgrade.  In my new website that I'm currently working on, I have a page that has a picture in the main div section. The picture i

  • Find table for report creation

    if i want to create a report, i nedd to give field name and table name to the ABAPer, which i try to find by pressing F1 in that field.But many times its structure.In this case how can i find the exact table?

  • Attachments within ROS? is it possible?

    Hello, I'm looking for some documents to try to ask vendors to upload some documents within ROS as part of questionnaires... If you have any input on this, please let me know... Regards, Gerardo.

  • Why we need externalizable interface in java

    Hi friends, I know the Concept of serliazation and externalization, apart from this concept i have one doubt about externalization, I feel both are doing same work. Then what is the nedd of externalizable interface. Can anyone tell what is the differ

  • It says 'iTunesSetup.exe is not a valid Win32 application.'?

    The way my company has set up software installs means we have to save any application to the hard drive and then run it from there.  It's supposed to keep unwanted stuff from being loaded onto computers by less than tech savvy users, but it makes it