mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Upload initial version of CRM SQL Server R Demo
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user