Created
August 2, 2013 09:56
-
-
Save atopal/6138772 to your computer and use it in GitHub Desktop.
Taking a sample for the reports on the forum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * | |
| FROM `questions_question` | |
| WHERE `questions_question`.`created` > "2013-06-25 0" | |
| AND `questions_question`.`created` < "2013-07-10 0" | |
| AND `questions_question`.`locale` LIKE "en-US" |
Author
JOIN test ON questions_answer. question_id = questions_question.id
Author
SELECT *
FROM questions_question
INNER JOIN questions_answer ON questions_answer. question_id = questions_question.id
WHERE questions_question.created > "2014-07-01 0"
AND questions_question.created < "2014-07-31 0"
AND questions_question.locale LIKE "en-US"
ORDER BY questions_question.created ASC;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SELECT *
FROM
questions_questionINNER JOIN
testONquestions_answer.question_id=questions_question.solution_idWHERE
questions_question.created> "2014-07-01 0"AND
questions_question.created< "2014-07-31 0"AND
questions_question.localeLIKE "en-US"ORDER BY
questions_question.createdASC;