+ 1
How to write sql query?
to comparing date and month for selecting upcoming birthday list in the only current month using substring for fetching in the gridview......share me..who knows related queries please https://www.sololearn.com/discuss/1390307/?ref=app
16 Answers
+ 7
date, month means if date_column and month_column . If the column is enlisted as birthday as a whole, use date (birthday) and month (birthday)
+ 9
mark first one as the answer
+ 9
shene What do you mean
+ 6
do you want to compare date and month of today with the date and month provided in the database for birthdays. And if both match return Happy birthday as a message?
+ 6
do you want to show this message in java or in mysql or other language?
+ 6
use this link to connect your asp.net to mysql
https://dev.mysql.com/doc/connector-net/en/connector-net-tutorials-asp-roles.html
and query for mysql is
select date, month from database_name where date=date(curdate())&&month=month(curdate());
Edit : date, month means if date_column and month_column . If the column is enlisted as birthday as a whole, use date (birthday) and month (birthday)
+ 6
Welcome
+ 6
And mark my post as the answer
+ 5
are you working in MySQL?
+ 1
tysm 😣
+ 1
👍
0
yes
0
yes
0
asp.net
0
i dont know
- 1
do you know any related queries ....?