Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You will need to use DBeaver with MariaDB/MySQL (XAMPP orGoogle), SQLite, and PostgreSQL. In SQLite,MariaDB, and PostgreSQL create atable called date_dilemma with two fields as
- You will need to use DBeaver with MariaDB/MySQL (XAMPP orGoogle), SQLite, and PostgreSQL.
- In SQLite,MariaDB, and PostgreSQL create atable called date_dilemma with two fields as follows:
- fmt which contains text up to 25 characters in length
- a_date which is a DATE
- The quiz consists of questions pairs. One part will askif a certain date format is accepted, and then the next questionwill as if it is output correctly.
- For each question pair in the quiz you will write an insertstatement that inserts the formatted date, January 4, 2014, listedin the question. For example, the first row, '2014-01-04', would beinserted using INSERT INTO date_dilemmaVALUES ('''2014-01-04''', '2014-01-04'); You will do thisfor SQLite,MariaDB, and PostgreSQL. Fill inthe table for each insert.
- Be careful with the lines that have quotes, you'll need toescape the single quotes so that should up inthe fmt field.
- To test if it outputs correctly, you will use the followingqueries:
- SQLite: select fmt, a_date, strftime('%m', a_date) asmonth, strftime('%d', a_date) as day, strftime('%Y', a_date) asyear from date_dilemma;
- MariaDB/MySQL: select fmt, a_date, month(a_date) as month,day(a_date) as day, year(a_date) as year from date_dilemma;
- PostgreSQL: select fmt, a_date, date_part('month', a_date)as month, date_part('day', a_date) as day, date_part('year',a_date) as year from date_dilemma;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started