BaşlayınÜcretsiz Başlayın

INSERT time INTO table

As a data analyst you may be called upon by a developer to test a table that they have created for a particular task. In this scenario, you are a member of a team in charge of tracking the usage of an app tied to a fitness device. You are testing a new table called usage_fact having the columns user_id, usage_date, usage_duration, in that order. It will store the total amount of time that the device was used per day.

You want to insert test rows into the table to ensure that it works as intended.

Bu egzersiz

Time Series Analysis in PostgreSQL

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Add a row to the table such that for user 1 it assigns the usage date to be Dec 31, 2020, with a duration of 65 seconds.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

-- Insert a row into usage_fact
___
	usage_fact(___)
___ 
	(___);

SELECT *
FROM usage_fact;
Kodu Düzenle ve Çalıştır