Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Looking for advice for creating Views in SQL
Post Flair (click to view more posts with a particular flair)
Post Body

Hi everyone. Not sure if this is the right place to ask, so apologies if not.

I’m a member of a data migration project at work and volunteered myself (at the advice of my manager) to lead on data mapping etc. However, the new system will require an interface with a Lab system to retrieve Sampling results once they’ve completed.

I have very little experience with SQL, but my manager was very competent but has since left. So I’m in a bit of a predicament as he’s no longer able to assist me. But I want to develop my skills and also, deliver where I can.

The new system will need to run a job (daily, via middleware (SAP BODS) to look for any new sample results, retrieve elements of that data, convert to XML and be loaded into a Sample Results table within the new system.

I have created the SQL code to create the Views within the Lab Database (LIMS), containing all relevant fields from relevant tables.

My question is - is there a way I can include only new results? I.e. I don’t want every single result (as early as 2001) to show. Only results from say 1 week ago. Is it just a simple where clause for the Sample Date?

Sorry, I’m new to data and SQL, so my apologies if this is complete and utter nonsense.

Also, anything else you may be able to advise on that I may have overlooked would be great. Thanks again.

Author
Account Strength
100%
Account Age
10 years
Verified Email
Yes
Verified Flair
No
Total Karma
31,846
Link Karma
16,668
Comment Karma
14,978
Profile updated: 4 days ago
Posts updated: 6 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago