I have a number of tables from which I need to select. To try to explain myself simply, I have a table which holds data about PCs ie location, number. I have another table which holds data about each PC. However, different types of data ie IP Address, Make, Model etc are held within the same column within this table. How do I represent these as column headings within my query.
This is my code, which seems to select the right data but in an inappropriate format.
select distinct unit.unitid,name,itval,lrundate from unit,infoname,infotxt where
(unit.domainid=infotxt.domainid and unit.unitid=infotxt.unitid) and
(infotxt.domainid=infoname.domainid and infotxt.itnameid=infoname.itnameid)
and infotxt.itnameid in (72,93,216)
order by unit.unitid,name,itval,lrundate
If anyone can give me a clue I will be very grateful.
Kind regards
This is my code, which seems to select the right data but in an inappropriate format.
select distinct unit.unitid,name,itval,lrundate from unit,infoname,infotxt where
(unit.domainid=infotxt.domainid and unit.unitid=infotxt.unitid) and
(infotxt.domainid=infoname.domainid and infotxt.itnameid=infoname.itnameid)
and infotxt.itnameid in (72,93,216)
order by unit.unitid,name,itval,lrundate
If anyone can give me a clue I will be very grateful.
Kind regards