Skip to content

Instantly share code, notes, and snippets.

@tqaw19
Created November 25, 2019 02:28
Show Gist options
  • Save tqaw19/117516475c6df53c9d41971655aa437c to your computer and use it in GitHub Desktop.
Save tqaw19/117516475c6df53c9d41971655aa437c to your computer and use it in GitHub Desktop.
select CustomerKey, concat(FirstName,' ',LastName) as Comprador, BikeBuyer from dbo.vTargetMail where BikeBuyer=1;
create procedure sp_comprobici
as
select CustomerKey, concat(FirstName,' ', LastName)
as Comprador, BikeBuyer
from dbo.vTargetMail
where BikeBuyer = 1;
exec sp_comprobici
-------------------------------
select * from bikebuyerprediction;
alter proc ejercicio2 as
select count(cliente) as NUMERO_DE_CLIENTES,compra_nocompra, PROBABILIDAD from bikebuyerprediction
where compra_nocompra =1 and probabilidad >= 0.85
group by compra_nocompra , probabilidad
exec ejercicio2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment