Question: I have two seperate data tables I need a sql query to pull data out of . The first table is called Collection _ Details

I have two seperate data tables I need a sql query to pull data out of.
The first table is called Collection_Details and contains a Text_Entry column and a Collection_ID column. The text entry column contains the names of completed text entry forms and the Collection_ID column contains unique ID numbers generated each time a text entry form has data entered into it.
The second table is called Sample_Details and contains a Collected_ID, Text_Entry, Value and Performed_Date columns. The Collected_ID column contains the unique IDs generated from the Collection_Details table. The Text_Entry column contains units of the type of entry that was being recorded and the Value column contains what was inputted for that entry. The Performed_DateColumn marks when the entry form was completed.
The sql query needs to have a search field for the Text_Entry column from the Collection_Details table. The Text_Entry names that will be searched for are (Gummy_Worm, Gummy_Bear, Taffy).Based on the name searched for in the Text_Entry column, the query needs to pull out each associated ID numbergenerated from the Collection_ID column. It then needs to take the Collection_ID numbersand search for them in the Sample_Details table Returning the values from the Text_Entry, Value and Performed_Date Columns. Data returned should be ordered by most recent performed date to least recent.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!