Current location: Hot Scripts Forums » Other Discussions » Database » Solution for this Query


Solution for this Query

Reply
  #1 (permalink)  
Old 05-19-11, 05:51 AM
sridhars sridhars is offline
New Member
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Solution for this Query

I have a table "data_taxonomy" with following data

tid data_table_name id
3 feeds_data_syndication 234
40 feeds_data_syndication 97
43 feeds_data_syndication 101
77 feeds_data_syndication 97
79 feeds_data_syndication 1
80 feeds_data_syndication 97
85 feeds_data_syndication 97
85 feeds_data_syndication 99
85 feeds_data_syndication 221
783 feeds_data_syndication 97

I got tid values from other query that are.
40,77,80,85,783

My requirement is
For that above tid values corresponding id value is common in the "data_taxonomy" table . Then only i want that id value.The output should be like this
output:
id
97


Tanks.

Last edited by sridhars; 05-19-11 at 05:54 AM.
Reply With Quote
  #2 (permalink)  
Old 06-19-11, 12:40 PM
nafirici nafirici is offline
Newbie Coder
 
Join Date: Mar 2011
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
select id
from data_taxonomy
where tid IN (40,77,80,85,783)
__________________
Nafirici | MN Real Estate
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
code problem throws error matt001 ASP.NET 0 10-23-05 03:30 AM
General Query on finding a PHP solution themanmathias Script Requests 2 09-29-05 05:11 AM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM


All times are GMT -5. The time now is 05:16 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.