Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
forming date as nvarchar
--forming date as nvarchar in sql server select right('0000' + cast(year(getdate()) as nvarchar), 4)+'-'+ right('0' + cast(month(getdate()) as nvarchar), 2)+'-'+ right('0' + cast(day(getdate()) as nvarchar), 2)+' '+ right('0' + cast(DatePart(Hour, getdate()) as nvarchar), 2)+':'+ right('0' + cast(DatePart(Minute, getdate()) as nvarchar), 2) as date_time
run
|
edit
|
history
|
help
0
28-02 3
Movies
Program1
MyDatabase
Manish SQL
Hospital
Sql
Extracting Id No
Segundo
how can i mix both querys