SELECT
*
FROM
(
SELECT
*,
ROW_NUMBER() OVER (ORDER BY date DESC) AS rn
FROM
atable
) AS derived
WHERE
date >= CURRENT_TIMESTAMP - INTERVAL 1 YEAR
OR
rn <= 50
;
I'm a 26 years old female, got into an accident that almost killed me; I sued, and after attorneys fees and medical bills from hell... I will walk away with around 1.2 million dollars tax free.
Here are the crucial details:
I have no family (no one I can trust and I appear alone and vulnera...
@TomV yeah, I have the "luck" of working in an investment bank (or similar), so I'm quite aware of this things, but can be quite hard to grasp for a lot of people
I was curious about a logging choice. In the output log files for most of the tasks it has a job type prefix like DatabaseBackup_(JOBID)_(STEPID)_(DATE)_(TIME).txt
@hot2use Nothing prevents you from changing the output file structure, maybe he has come across situations where he preferred jobid
One thing I know is that he has a crazy powershell datawarehouse thing running where all kinds of data is matched to allow for alerting/monitoring, so maybe he needed the jobid there
@JoeObbish it is ok actually. I'm not writing the query myself, I need to put the business logic out of it for a sql coder to be able to understand everything
@TomV Thanks for the info. They would be unique for me but for how often I have to look at them I will leave it alone. Connecting the IDs is not difficult. Thanks. I had looked in the FAQ but somehow missed that.
I recently attended a conference where the speaker referenced the Stack Overflow database and actually did queries against it.
Some of the queries that he has provided to us also use the Stack Overflow database. I have looked in this forum and in the DBA forum to find it, to download it, so tha...
@ypercubeᵀᴹ Looking good! I don't have the experience to work with the unstructured data! But had a similar problem when I worked on my project for BI! I appreciate your help and will immediately forward those useful links to him!