Created
November 25, 2019 02:28
-
-
Save tqaw19/117516475c6df53c9d41971655aa437c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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