SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old January 9th, 2008, 11:12 PM
renjithit renjithit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 1 renjithit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m
Reputation Power: 0
Problem when selecting data from different tables by ANDing different where condition

Hiiiii ,
The following query is not well in its execution time so please help me with some other options.Given sql query selects data from 6 tables and they are linked together by ANDing different conditions(where).so please i am waiting.........








SELECT customer_master.NAME,customer_master.ADDR1,subscri ption_details.ORNO,subscription_details.TRNO,sub_t ype.TYPE,
language_master.LANGUAGE,payment_details.RECEIVED_ DATE,subscription_details.SUBNO
FROM customer_master,city_master,sub_type,language_mast er,periodid_details,payment_details,subscription_d etails
WHERE sub_type.SUB_TYPE_ID = subscription_details.SUB_TYPE_ID
AND subscription_details.CUST_ID = customer_master.CUST_ID
AND customer_master.CITY_ID = city_master.CITY_ID
AND language_master.LANGUAGE_ID = subscription_details.LANGUAGE_ID
AND periodid_details.PERIOD_ID = subscription_details.PERIOD_ID
AND payment_details.PAYMENT_ID = subscription_details.PAYMENT_ID

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Problem when selecting data from different tables by ANDing different where condition


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway