Professor at MIT can read minds!

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

DECLARE @ TABLE(c char(2),i int identity(0,1))
INSERT @
--values('C3'),('H6'),('C6'),('S2') -- ready to test
--values('SQ'),('S4'),('S3'),('ST') -- ready to test
values('H9'),('CA'),('DA'),('SA')

SELECT 
max(d)+translate(char((max(w)+4+sum(r)/50+sum(r)/19%5)%13+49),':;<=1','TJQKA')
FROM
(SELECT*,(3-i)*power(10,rank()over(order by translate(right(c,1),'TKA','ARX'),c)-1)r
FROM @ WHERE i>0)y,(SELECT
ascii(translate(right(c,1),'TJQKA',':;<=>'))w,left(c,1)d FROM @ WHERE i=0)x

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results