Upload initial version of CRM SQL Server R Demo

This commit is contained in:
Zhou Fang
2017-07-10 15:02:20 +08:00
parent e634b80f2d
commit 4d12027586
14 changed files with 71085 additions and 0 deletions
@@ -0,0 +1,23 @@
use sqlr;
go
drop table if exists CDNOW;
go
-- create the fraud table to hold invoice data:
create table CDNOW(
[ID] int not null,
[Date] date not null,
[Volume] int not null,
[Amount] float not null);
go
-- Modify path to the data file: "po.txt"
bulk insert CDNOW
from 'C:\sqlr\mydemos\CRM\CDNOW_master.csv'
with(
fieldterminator = ',',
firstrow = 2);
go
--create clustered columnstore index cs_CDNOW on CDNOW;
--go
grant select on CDNOW to rdemo;
go