Skip to content
Advertisement

Tag: sql

How to group by only year in DQL?

How can I translate this query to Doctrine Query Language Answer Since your query only needs to group by year from a datetime column, you will need the YEAR function, which is not supported by default in DQL. You can install DoctrineExtensions which will add the functionality you need. And then edit the doctrine config file (config/packages/doctrine.yaml) as follow: Now

How to show data that’s not in a table. SQL ORACLE

I’ve a data base with two tables. I need a SQL query which show “The players who have not won any game”. I tried but I don’t know even how to begin. Thank you Answer You need all the rows from players that don’t have corresponding rows in wins. For this you need a left join, filtering for rows that

Combine multiple selects for statistics generation into on result set

Hey Pros, I am far away to have good knowledge about SQL, and would ask you to give me some hints. Currently we aggregate our data with python and I would try to switch this when possible to. (SQL (Postgresql server) My goal is to have one statment that generate an average for two seperates column’s for specific time intervals

Connect to local database on other computers

How can I use my LocalDB on other computers? I tried this but it doesn’t work because I get this error: Local Database Runtime error occurred. Cannot create an automatic instance Does someone know how to fix this, or what I can do instead? I don’t want to use SQLServer because I am making a program for an offline computer.

Advertisement