Find the number of days between December 21, 2020 (winter solstice), and March 21, 2021 (spring equinox). •?

• Find the number of days between December 21, 2020 (winter solstice), and March 21, 2021 (spring equinox).

• Put both dates in a table of constants, so they both have a datatype of date.

Starting points:

Oracle SQL

drop table ex0904a;

create table ex0904a

(beg_date date,

end_date date);

insert into ex0904a

values ('21-dec-2020', '21-mar-2021');

commit

select end_date - beg_date as number_of_days from ex0904a;

drop table ex0904a;

create table ex0904a

(beg_date datetime,

end_date datetime);

insert into ex0904a

values (#21-dec-2020#, #21-mar-2021#);

select end_date - beg_date as number_of_days from ex0904a;

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 1QUIZZ.COM - All rights reserved.