Jump to content

Sql Doubt


Recommended Posts

Posted

how to find employees joined between jan 1 and jan 30 in 2014??

and how to convert string date into datetime ??

Please help

Posted

how to find employees joined between jan 1 and jan 30 in 2014??

and how to convert string date into datetime ??

Please help

 

what is the query you tried first? then I can give you an example... I don't want to just answer assignment questions man... everyone please follow same... just don't give answers cos you know.. only answer to those who are trying man...RT-26.gif

Posted

SELECT *
FROM Table
WHERE Joined BETWEEN TO_DATE ('2003/01/01', 'yyyy/mm/dd')
AND TO_DATE ('2003/12/31', 'yyyy/mm/dd');

Posted

these are not assignment questions...these are interview questions asked by some famous company

what is the query you tried first? then I can give you an example... I don't want to just answer assignment questions man... everyone please follow same... just don't give answers cos you know.. only answer to those who are trying man...RT-26.gif

 

Posted

these are not assignment questions...these are interview questions asked by some famous company

 

questions chustey basic unnayi.... company emo famous antunnav.... endo man...

 

any how..

 

employees from Jan 1st to Jan30

 

select count(*) as count from employees where empstartdate between '01/01/2014' and '30/01/2014'

 

date to string

 

you can use CAST, CONVERT and use which datepart you want as required... google CONVERT in SQL to know what is a datepart.

RT-26.gif

Posted

questions chustey basic unnayi.... company emo famous antunnav.... endo man...

 

any how..

 

employees from Jan 1st to Jan30

 

select count(*) as count from employees where empstartdate between '01/01/2014' and '30/01/2014'

 

date to string

 

you can use CAST, CONVERT and use which datepart you want as required... google CONVERT in SQL to know what is a datepart.

RT-26.gif

neeku netezza vacha?

Posted

teradata lo ithe diffrnt ga rayalemo

 

akkada sql ani adigitey nuvvu teradata , mainframes ani alochistunnav enti man...RT-26.gif

Posted

lol teradata lo sql vere gaa rastham kadha antunna

 

sql ekkadaina sql ye man... platforms will be different antey so keywords will differ...huge changes will come in when you are using logics in teradata... not with sql man...RT-26.gif

Posted

TEradta ayinam SQL ayina painaa love india eaasina query chooskoo

×
×
  • Create New...