Your technology certification is waiting. Enroll in Cloud Class ®
-- To create the columns
ALTER TABLE Travel
ADD Travel_Date date, Travel_Time time
-- To populate them based on your requirements
SET Travel_Date = CAST(ActualDateTime as date),
Travel_Time = CAST(ActualDateTime as time)
Open in new window
Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.
CAST(ActualDateTime as date) as Travel_Date,
CAST(ActualDateTime as time) as Travel_Time
CREATE TABLE Travel (ActualDateTime datetime)
INSERT INTO Travel (ActualDateTime)
VALUES ('2014-03-22 10:38:43.283'), ('2014-03-11 12:34:56.789'), ('2013-07-30 20:38:43.283')
convert(varchar, ActualDateTime ,5) as Travel_Date,
convert(varchar, ActualDateTime ,8) as Travel_Time
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.