Hi,
I am new to ALM, I am trying too figure out how to generate a report which will pick up items from a date greater or equal to todays date. Without using the filter. I have used SQL before, however what I would normally do comes up with an error. The query is as follows:
SELECT BG_BUG_ID as "TECR ID",
BG_SUMMARY as "Summary",
BG_USER_26 as "Defect#",
BG_STATUS as "Status (Pre-Deployment)",
BG_USER_02 as "Status (Post-Deployment)",
BG_USER_03 as "Deployment Type",
BG_USER_05 as "Release",
BG_USER_06 as "Sub-Release Name",
BG_USER_07 as "Environment",
BG_USER_09 as "Environment Name (Other)",
BG_USER_39 as "Reporting Date",
BG_USER_11 as "Start Date",
BG_USER_13 as "Start Time (24H)",
BG_USER_33 as "End Date",
BG_USER_35 as "End Time (24H)",
BG_USER_37 as "Duration (Hours, Minutes)",
BG_USER_12 as "System Group & System",
BG_USER_16 as "Process Stream(s)",
BG_USER_18 as "Outage Required",
BG_USER_20 as "Change Type",
BG_USER_22 as "Change Type (Other)",
BG_USER_36 as "Change Authority Approval",
BG_USER_38 as "Process Stream(s) Approval",
BG_DETECTED_BY as "Requested By",
BG_USER_28 as "Release CR or EER #",
BG_USER_30 as "Infoman DTF/Remedy Non Prod #",
BG_USER_24 as "Retrofit"
FROM BUG
WHERE (BG_STATUS <> 'Cancelled' and
BG_STATUS <> 'Rejected') and
BG_USER_11 >= GETDATE()
Order by BG_BUG_ID
I have tried DATENOW which has not worked either, similar to the previous post (http://h30499.www3.hp.com/t5/Quality-Center-Support-and-News/Excel-Report-Generator-SQL-and-Current-Date-syntax/m-p/5247761/highlight/true#M59924) it is the same issue, however the solution for that post does not work for me, it says "DATEADD" is an invalid identifier.
I have played around with it and it will accept BG_USER_11 >= '2014-04-22', however I would like to not have to modify the query everytime I run the report. I know the solution is going to be something simple but I have been trying to figure it out for a week now and I give up :(
I am currently using ALM 11.00
If someone could help it would be greatly appriciated.