Post Updated to show actual DB info/Tables/Columns etc.
I'm a newbie at SQL, but learning fast. I've looked at a few Youtube explanations as well as some answers on this forum but I cannot relate them to my situation. I have a database, with three tables that I want to extract data from. All three tables have column that is constant ie. contains a unique reference number.
Under the DB "tree" I have:
nice_interactions
nice_storage_center
In nice_interactions
I have three tables that I require info from:
dbo.tblInteraction77
dbo.tblParticpant77
dbo.tblRecording77
The Columns in dbo.tblInteraction77
that I require are:
[iInteractionID] - *this is the unique field amongst all tables*
[dtInteractionGMTStartTime]
[dtInteractionGMTStopTime]
[biInteractionDuration]
The Columns in dbo.tblParticpant77
that I require are:
[iInteractionID]
[nvcStation]
[iSwitchID]
[tiDeviceTypeID]
[nvcCTIAgentName]
In nice_storage_center
I have one table that I require data from:
dbo.tblStorageCenter77
The Columns from dbo.tblStorageCenter77
are:
[iInteractionID]
[iLoggerID]
[iLoggerResource]
Does that make sense ?
I have managed to query two tables using WHERE
, but trying to switch to a JOIN
of some sort is not easy for me looking at text or videos etc.
Thanks in advance for any help you can give.
Regards
Netrix