You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need easier ways to query the database without doing a ton of joins.
Something like this, but for datums and attributes.
--CREATE OR REPLACE VIEW sparrow_views.all_data AS
SELECT
*
FROM datum d
JOIN datum_type dt
ON dt.id = d.type
JOIN analysis a
ON a.id = d.analysis
JOIN session s
ON s.id = a.session_id
JOIN sample sa
ON sa.id = s.sample_id
JOIN sample_researcher sr
ON sr.sample_id = s.id
JOIN researcher r
ON r.id = sr.researcher_id;
-- Also want attributes
The text was updated successfully, but these errors were encountered:
We need easier ways to query the database without doing a ton of joins.
Something like this, but for datums and attributes.
The text was updated successfully, but these errors were encountered: