Hi everybody,
I have a problem in SQL server 2000 I have a stored procedure that returns loads of data for my CrystalReport in
VB.NET
however I cant get over this problem
I have a table - tblConditions that looks lik this
DescId Description Condition
------------------------------------
1 Raw State
2 Cooked State
3 Partly Cooked State
4 Ambient Temp
5 Frozen Temp
6 Refrigerated Temp
Then I have another table - tblSamples looks like this
SampleId Name StateOfSample TempR TempS
------------------------------------------------------
1 Chicken 1 4 5
2 Beef 2 6 4
3 Prawn 3 5 5
I need a SQL query that will return data from both of the tables so the row returned for SampleId = 2 will look like this:
SampleId Name StateOfSample TempR TempS
------------------------------------------------------
2 Beef Raw Ambient Frozen
Does anybody have an idea how to do this in SQL statement?