NoamGr
Starting Member
12 Posts |
Posted - 2014-04-30 : 02:48:16
|
I am looking for the correct query, which give me the number of the correct guess numbers, within the LOTTO ticket.here it is:declare @TheWinnerNumbers varchar(40) = '01,02,03,04,05,06,07'declare @TheTicketNumbers varchar(40) = '01,02,03,04,08,09,10'the answer should be: 4declare @TheWinnerNumbers varchar(40) = '01,02,03,04,05,06,06'declare @TheTicketNumbers varchar(40) = '01,02,03,04,05,06,06'the answer should be: 7declare @TheWinnerNumbers varchar(40) = '01,02,03,04,05,06,10'declare @TheTicketNumbers varchar(40) = '01,02,03,04,05,05,05'the answer should be: 5ect' |
|