sqlite – sql producing duplicate column id on join?

Is there any way to only show one id column which is used to join on other tables?

This query produces two id columns used to join each other as primary and foreign key. I only want it to repeat the id column once.

SELECT * FROM products JOIN productimg ON products.id = productimg.id WHERE products.id IN (1, 2, 3)

Query results:

id    name     cid  stk prc    id       url
 1  product1    1   10  3000    1   /static/images/dresses/td1.jpg
 2  product2    2   10  2500    2   /static/images/dresses/td2.jpg
 3  product3    2   4   4000    3   /static/images/dresses/td3.jpg

sql – Como usar distinct Count y Join en codeigniter entre 2 Base de Datos

Hola necesito llevar esta consulta SQL a codeigniter

SELECT Count(DISTINCT uh.carrera.alumno_id)
From alumno.listado
Inner Join uh.carrera ON uh.carrera.alumno_id = alumno.listado.id

La consulta en SQL funciona perfectamente, lo que no se hacer la relación entre 2 base de datos en codeigniter, he probado muchas variantes pero ninguna con resultados, todas con errores, el objetivo es contar la cantidad de alumnos que hay en esa universidad.

Hello! Happy to join the community

My name is Heugo, co-owner of the Residential Proxy Network, programmer, software developer.
I wish all luck and success to everyone!

Unable to join google meet when WebRTC Control extension is enabled in Google Chrome

I am unable to join google meet whenever WebRTC Control extension is enabled in Google Chrome.
This is the error I am getting:

Couldn't start the video call because of an error.

So every time I had to disable the extension before joining the meeting. Why is that so? And after joining the meeting it is completely okay to enable the extension again.

database design – ınner joın two tables and count some variables

I have two tables


Keyif Veren Sunum   510
Musteri Odakli icerik Yonetimi  2467
Temel Yonetim Becerileri    2469
Veritabani Dosyalama Sistemleri 2889
Sunum   2890


I need to count these table like 

11146          CONTENT1          146
11147          CONTENT2           42
12456          NULL               12

but some variables IN ERHAN_FLASH_NAME EGI_CONTENT_CODE is null

how can I join these 2 tables and count

postgresql – Understanding JOIN Syntax


postgres=# d foo
                Table "public.foo"
 Column |  Type   | Collation | Nullable | Default 
 a      | integer |           | not null | 
 b      | text    |           | not null | 
    "foo_pkey" PRIMARY KEY, btree (a)

postgres=# d bar
                Table "public.bar"
 Column |  Type   | Collation | Nullable | Default 
 a      | integer |           | not null | 
 b      | text    |           | not null | 
    "bar_pkey" PRIMARY KEY, btree (a)

postgres=# select * from foo;
 a |  b  
 1 | one
(1 row)

postgres=# select * from bar;
 a |  b  
 2 | two
(1 row)

I then join‘d using the following JOIN syntax:

postgres=# select * from foo, bar;
 a |  b  | a |  b  
 1 | one | 2 | two
(1 row)

Then, I compared it to full outer join:

postgres=# select * from foo full outer join bar using (a);
 a |  b  |  b  
 1 | one | 
 2 |     | two
(2 rows)

and cross join:

postgres=# select * from foo cross join bar;
 a |  b  | a |  b  
 1 | one | 2 | two
(1 row)

Is it always true that the from a, b, c will produce a cross join?

customs and immigration – If my wife is allowed to enter France with me, can she travel alone to France to join me?

According to the current regulations, I (Polish citizen living in France) am allowed to travel from Israel to France together with my wife (Israeli citizen). To quote the relevant passage from the ministerial webpage:

If you are arriving from another country, you can only enter France if
your journey meets one of the following criteria for exceptions:


2.If you are a European Union citizen or a national of Andorra, the Holy
See, Iceland, Liechtenstein, Monaco, Norway, San Marino, Switzerland
or the United Kingdom, and your main residence is in France or you are
crossing France to reach your country of nationality or residence (you
may be accompanied by your spouse and children);

This phrasing strikes unusual since nowhere else do the regulations say that my wife is allowed to cross the border, it’s only that I’m allowed to cross the border with her. I’m confused as to how such regulations are interpreted. Currently, I am in France and my wife is in Israel. Is she allowed to travel to join me? It would seem utterly illogical if she couldn’t, but if the regulations are read literally that’s exactly what they say.

How do I join the Bitcoin Core PR review club meetings on IRC?

I would like to learn about reviewing Bitcoin Core pull requests at the Bitcoin Core PR review club. How do I join the ##bitcoin-core-pr-reviews channel on IRC and which IRC client do you recommend I install?

I can use the command line but I would prefer to maximize convenience and minimize setup time.

plugins – Last section (let’s join us) can’t go up while I created it with elementor…Need help please

I created the last section with elementor page builder while I used widgets to create the home page. Now the problem is that the last section is not moving up and its bleow the footer area. How to solve this problem??wor

How will this query be rewritten using JOIN?

How will this query be rewritten using JOIN?

There are 4 tables at least, like these:

1. PostsTable
pid, stat, title, etc etc

2. tagsTable
id, pid, tag

3. profilesTable
profileID, username, etc etc

4. ratingsTable
id, pid, profileID, etc etc

Currently am using:

select something something
from postsTable as p, profilesTable as pr, ratingsTable as r, tagsTable as t
p.stat=’y’ and
t.pid = p.pid and
r.pid = p.pid and
pr.profileID = r.profileID

“something something” are columns from profilesTable and from postsTable and from tagsTable.

I was hoping to do it using join statement, something like this:

select something something
from postsTable as p
left join tagsTable as t
on t.pid = p.pid
left join ratingsTable as r
on r.pid = p.pid
( this is where I am lost )
No idea how to connect ratingsTable to profilesTable here…
At this point I have to select username in profilesTable using profileID given in ratingsTable

I want to avoid creating a new table connecting postsTable to profilesTable for just this purpose…
profileID is already there in ratingsTable, I am already reading ratingsTable
So I do not want to create new connecting table for profileID and pid alone and read that also…