Short description of my environment : Symfony : 1.4.8 Doctrine : 1.2.3 Centos 5.5 (PHP 5.3.3) MySQL 5.1.52
For my own edification, I\'m trying to write this SQL functionality in a single statementwithout using temporary tables. For the life of me, I can\'t get the query to work without getting a MySQL \"ER
I have trouble with a query, the problem is that i am left joining three times from the same table. The query in question is this:
I have something similar to the following HQL: select count(distinct car.id), count(distinct w1.id), count(distinct w2.id),
I\'m trying to do a rather complex (for me, at least) query that involves fetching rows that may have NULL values.
I have the following two tables quote(date,market,ticker,close) and scenario(date1,date2,period,market,ticker,ratio). I have written the following LEFT JOIN query which does what i want except for one
I have the following criteria. session.CreateCriteria<DomainModels.Models.FreieAbrechnung>() .CreateAlias(\"FreieAbrechnungPositionen\", \"fp\", JoinType.LeftOuterJoin)
I\'ve got a class that looks like this: public class KpiValue { public string ID { get; set; } public string NAME { get; set; }
I am pretty sure I can get the results I want from a single Linq statement, I am just not able to find it by myself! This is what I have so far:
I\'m trying to create a DQL query with two conditions in a left join. It\'s ok with one condition, but impossible to find the semantic for more conditions. Just below a SQL example about what I\'m try