Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
abhishek
Starting Member
3 Posts |
Posted - 2007-08-09 : 06:31:09
|
| Hi,I would like to know how would i display following data.exa:- (Note:- I wrote '---' so to display properly in to the forumTable1ComputerName--IpAddress ABC1-----------10.1.2.3 ABC1-----------10.1.2.4ABC1-----------10.1.2.5ABC2-----------10.1.2.6ABC2-----------10.1.2.7ABC3-----------10.1.2.8ABC3-----------10.1.2.9ABC4-----------10.1.2.10Table2ComputerName--NetCard ABC1-----------<card1>ABC1-----------<card2>ABC2-----------<card3>ABC2-----------<card4>ABC3-----------<card5>ABC3-----------<card6>Table3ComputerName--ModelABC1-----------DEllABC2-----------DEllABC3-----------DEllNow i want output should be displayed like thisComputerName--IpAddress--NetCard ModelABC1-----------10.1.2.3---<card1>---DEll----------------10.1.2.4---<card2> ----------------10.1.2.5ABC2-----------10.1.2.6---<card3>---DEll----------------10.1.2.7---<card4> ABC3-----------10.1.2.8---<card5>---DEll----------------10.1.2.9---<card6>ABC4-----------10.1.2.10Black filled should not displayed anythingIs it possible--------------------Thanks and regardsAbhishek JoshiIndia- Bangalore |
|
|
DonAtWork
Master Smack Fu Yak Hacker
2167 Posts |
Posted - 2007-08-09 : 07:05:47
|
| Display = front end application.Otherwise (since nobody EVER listens, EVER) look up Cross Tab reports in BOL[Signature]For fast help, follow this link:http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspxLearn SQLhttp://www.sql-tutorial.net/ http://www.firstsql.com/tutor.htm http://www.w3schools.com/sql/default.asp |
 |
|
|
abhishek
Starting Member
3 Posts |
Posted - 2007-08-09 : 07:41:42
|
| Sorry I didn't get you...So mean to say what is frond end application....front end appilcation is SMS server 2003--------------------Thanks and regardsAbhishek JoshiIndia- Bangalore |
 |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2007-08-09 : 08:01:08
|
| SELECT a.computername,a.IpAddress,b.netcard,c.modelFROM Table1 aLEFT JOIN Table2 bON a.computername = b.computernameLEFT JOIN Table3 cON a.computername = c.computernameIs this what you mean? Jim |
 |
|
|
abhishek
Starting Member
3 Posts |
Posted - 2007-08-09 : 11:46:38
|
Thanks Jim for a idea.... i will work on it.. --------------------Thanks and regardsAbhishek JoshiIndia- Bangalore |
 |
|
|
|
|
|