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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Five table query

Author  Topic 

shajimanjeri
Posting Yak Master

179 Posts

Posted - 2007-01-29 : 03:02:29
Hi all,

I have 5 tables. Five table structures are as follows:

1- tbl_Users
* Users_Sno(PK)
* Users(varchar)

2- tbl_Inbox
* Id(PK)
* SmsBody(varchar)
* MobileNumber(varchar)


3- tbl_Subscribers
* ID(PK)
* AccountDate(datetime)
* MobileNumber(varchar)

4- tbl_Reply
* Reply_Sno(PK)
* Inbox_Sno(numeric)
* Feedback_Sno(numeric)
* Subscribers_Sno(numeric)
* RepliedMsg(varchar)


5- tbl_Feedback
* Feedback_Sno(PK)
* MobileNumber(varchar)
* SmsBody(varchar)

See please Here how to get all the SmsBody from table tbl_Inbox, RepliedMsg from table tbl_Reply, SmsBody from table tbl_Feedback, Users from tbl_Users
for a perticular Mobile number from table tbl_Subscribers

Please help me!!

Regards
shaji


khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-01-29 : 03:24:01
you have to explain how the tables are related


KH

Go to Top of Page
   

- Advertisement -