SELECT Id AS PostId, CreationDate, Body, Title, PostTypeId,

0

Please login or register to vote for this query.

(click on this box to dismiss)

GenAI Meta

Q&A for GenAI enthusiasts and practitioners and those interested in learning more about using GenAI tools

-- Fetch Java-related questions from January to June 2024
SELECT 
    Id AS PostId,
    CreationDate,
    Body,
    Title,
    PostTypeId,
    NULL AS ParentId, -- Questions don't have a parent post
    'Question' AS PostType
FROM 
    Posts
WHERE 
    PostTypeId = 1 -- Questions
    AND Tags LIKE '%<java>%' -- Java questions
    AND CreationDate BETWEEN '2024-01-01' AND '2024-11-09'

ORDER BY 
    CreationDate DESC;

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results