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 |
Kotti
Posting Yak Master
129 Posts |
Posted - 2008-07-22 : 11:00:26
|
These are 6 tables Tbl_LkAskandAnswer ,Tbl_AskAndAnswer, UserMgmt , ProfileDetails ,Tbl_AnswerComments, Tbl_AskAndAnswerRating Questionid from Tbl_LkAskandAnswer Answer,Creationdatetime from Tbl_AskAndAnswerUsername from UserMgmtphotourl from ProfileDetailscomments ,Creationdatetime from Tbl_AnswerCommentsrating from Tbl_AskAndAnswerRatinguserid is common in UserMgmt,Tbl_AskAndAnswerRating,Tbl_AnswerComments,ProfileDetailsquestionid is common in Tbl_LkAskandAnswer ,Tbl_AskAndAnswer |
|
elancaster
A very urgent SQL Yakette
1208 Posts |
|
Kotti
Posting Yak Master
129 Posts |
Posted - 2008-07-22 : 11:08:39
|
he is my friend |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2008-07-22 : 11:14:30
|
so both of you have no idea what you're doing?simply join them together on the correct key columns._______________________________________________Causing trouble since 1980Blog: http://weblogs.sqlteam.com/mladenpSpeed up SSMS development: www.ssmstoolspack.com <- version 1.0 out! |
|
|
Kotti
Posting Yak Master
129 Posts |
Posted - 2008-07-22 : 11:18:21
|
[quote]Originally posted by spirit1 so both of you have no idea what you're doing?simply join them together on the correct key columns._______________________________________________Get unique username from Rating Table and Answer Table compare with User Table |
|
|
elancaster
A very urgent SQL Yakette
1208 Posts |
Posted - 2008-07-22 : 11:21:04
|
quote: Originally posted by Kotti [quote]Originally posted by spirit1 so both of you have no idea what you're doing?simply join them together on the correct key columns._______________________________________________Get unique username from Rating Table and Answer Table compare with User Table
huh?your 'friend' apparently got the answer they wanted so you just need to add in a 6th table. the join is all there for you alreadyEm |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-07-22 : 11:38:10
|
quote: Originally posted by elancaster
quote: Originally posted by Kotti [quote]Originally posted by spirit1 so both of you have no idea what you're doing?simply join them together on the correct key columns._______________________________________________Get unique username from Rating Table and Answer Table compare with User Table
huh?your 'friend' apparently got the answer they wanted so you just need to add in a 6th table. the join is all there for you alreadyEm
you dont know to copy and modify from it? atleast make a try.. |
|
|
VGuyz
Posting Yak Master
121 Posts |
Posted - 2008-07-24 : 11:01:17
|
use the "design query in editor" option in sql server 2005and get the tables from your database and then click the columns which you want from that table.the copy the query below and use it. |
|
|
|
|
|
|
|