I have some strange results of findAllByPropertyInList() and think this is a 开发者_JAVA百科bug in grails. See [1], the result is not what I expect it
I want to fetch distinct date from a DataTable. Currently I\'m using the below code: MyDataTable.DefaultView.ToTable(true, \"MyDateColumn\");
I would like to do a count of the total number of distinct COMPONENT_ID and PACKAGE_ID returned from this SQL.
I\'m trying to get the count of each distinct field in my database. For example, we are using something called sourceCodes - I want to be able to see how many of each different sourceCode there is in
Having a bit of trouble with getting total unique records and grouping by date. The end result is I am getting totals per day but it is not using unique emails based on the distinct function. Here is
I am using a select count distinct to count the number of records in a column. However, I only want to count the records where the value of a different column is 1.
I have a table with data like so: [ID, Name] 1, Bob 1, Joe 1, Joe 1, Bob I want to retrieve a list of records showing the relationship between the records with the same ID.
The following SQL query: SELECT messages.id, messages.created_at, comments.created_at FROM messages LEFT JOIN comments ON comments.message_id = messages.id
I\'m using Zend Framework for my website and I\'d 开发者_高级运维like to retrieve some data from my PostgreSQL database.
I\'ve got two tables (customer, purchase).I\'ve joined these two tables via the customerid key.This works great.My table looks like: