skip to Main Content

Postgresql – Select counts from one table based in the results from another table

I have two tables, lets call them t1 and t2. Fiddle select setseed(.42); create table t1(a,b,c,d)as select (random()*9)::int , (random()*9)::int , (random()*9)::int , (random()*9)::int from generate_series(1,100); create table t2(a,b,c,d)as select (random()*9)::int , (random()*9)::int , (random()*9)::int , (random()*9)::int from generate_series(1,200); I'm…

VIEW QUESTION

Mysql – count(*) querry

I tried to solve a problem code in Hackerrank. An OCCUPATIONS table that contains the following records: and here are for the sampel output: Ashely(P) Christeen(P) Jane(A) Jenny(D) Julia(A) Ketty(P) Maria(A) Meera(S) Priya(S) Samantha(D) There are a total of 2…

VIEW QUESTION
Back To Top
Search