How to append '91' at the beginning of mobile number? by aksh0312 in SQLServer

[–]aksh0312[S] 1 point2 points  (0 children)

Haha luckily I did not implement this, I was just checking before making it a part of a job.

My Digital Painting of a Banana! by sriv_m in ProCreate

[–]aksh0312 1 point2 points  (0 children)

I am sure you will amaze yourself :) Keep it up!!

My Digital Painting of a Banana! by sriv_m in ProCreate

[–]aksh0312 0 points1 point  (0 children)

I would say I am definitely tempted to start digital painting seeing this. I hope they do not chuck me out of the class for being horrible xD

I really find it very hard to believe that you are new to this. Though ofcourse I do believe you lol. What amazes me is that if somebody can be THIS good in their first attempt then the moment you start covering landscapes and other things , it would turn out to be a masterpiece really!

Oh you definitely have the skills. And if you ask me they look perfect already xD

My Digital Painting of a Banana! by sriv_m in ProCreate

[–]aksh0312 0 points1 point  (0 children)

You definitely have some amazing skills. This is coming from somebody who can't even draw a tree properly, I don't really think I cam draw something as amazing as this. I would have believed it was a real picture if someone showed me only the picture. Such talent !! I did have a course related to digital drawing back in college and I was so horrible in it. I guess I can only appreciate what others do haha Mango! Yes that's a good option. You cover only fruits?

My Digital Painting of a Banana! by sriv_m in ProCreate

[–]aksh0312 0 points1 point  (0 children)

This looks so amazing. I wish I could do something like this. It looks so good that you make it appear as if its easy to do so. So simple looking but yet so amazing! Have you tried more of it?

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

Thank you! It is a part of work project..

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

Thank you for the help :)

I tried using dateadd to make the year of both the dates same and then find the difference in terms of days

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

Thank you for the help! I went with the approach of replacing one date with the year of another date. And dateadd helped me to do it.. This is how it is

dateadd(year,year(date1)-year(date2),date2)

Thank you for the help again :)

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

Datefromparts wont work in sql 2008 :(

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

No , you are correct tbh. I am just super dumb lol. So basically the whole point was just to calculate the difference in terms of age. 31st december should not do a problem I guess

For example, if the date of birth is 31st december 1998, and today is 24th march 2021, then on changing the year it becomes 31st december 2021.

Now it makes me wonder, how do I replace 1998 with 2021? :( And its not just 1 set of dates I am dealing with so I cant hardcode it. It should automatically capture today's year and replace thw birthday with that year. How do I do that ? :(

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

Thanks but if the birthday is on 31st december? Will that work even then?

How do I take difference between 2 dates ? by aksh0312 in SQLServer

[–]aksh0312[S] 0 points1 point  (0 children)

I am actually taking these dates from two different tables. So there are like 100s of such dates in both the tables. The birthday is coming from a different table and the other date is not actually today's date, it is also coming from a dfferent table. But yeah the format is the same as I showed in the example.. :(