Quiz: Query Your Database

Test your knowledge on querying the database.

1

Which type of syntax is used to write the following query?

query = "tracks"
|> join(:inner, [t], a in "albums", on: t.album_id == a.id) 
|> where([t,a], t.duration > 900)
|> select([t,a], [t.id, t.title, a.title])
A)

keyword

B)

Ecto

C)

macro

D)

pipe

Question 1 of 50 attempted

Get hands-on with 1400+ tech skills courses.