Hello Guys,
I want take your help to solve out my question so please give me better way to implement the query to get records from search parameter
Below I have drawn one scenario and from that I want to get result
Suppose one organization held the draw of lottery ticket of various categories
LotteryTicketBuyerMaster
LuckyTicketMaster
1st Day Draw
DrawDate(Date) | Category(Varchar) | LuckyTicketNo(Varchar) |
01/03/2017 | Electronics | 11001,11003 |
01/03/2017 | Automobiles | 14016,14018 |
2nd Day Draw
DrawDate(Date) | Category(Varchar) | LuckyTicketNo(Varchar) |
02/03/2017 | Electronics | 11005,11006 |
02/03/2017 | Automobiles | 14018,14020 |
02/03/2017 | Furniture | 13002,13003 |
And at end of the each day I want to send email to lucky winner so, how to write a query in better way to get winner Name and Email in LotteryTicketBuyerMaster from TicketNo by LuckyTicketMaster’s LuckyTicketNo
ResultTable
1st Day ResultTable