navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

linking two tables

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> linking two tables
Page: [1]
 
s2bn1

 

Posts: 192
Joined: 2/2/2002
From: Dubai United Arab Emirates
Status: offline

 
linking two tables - 10/25/2003 14:02:49   
Hi guys
I got 2 tables one with the name,location,area of some shopping malls and the 2nd one is with the shops of the malls with the items,sale status price now,price before,name of the shop.In both the tables name of the mall is there and it is the key which links both the tables.Now I want to bring the shops and malls having sale.In this page I want the name of the mall should appear only once and I used the following SQL,

Select distinct mall.mall_name,mall.area,items.shop_name,items.item_name from mall,items where items.mall_name=mall.mall_name and items.sale_status='sale'

but the malls are comming recurring.What is the mistake in this.Please help me.
Thankyou in advance
Page:   [1]

All Forums >> Web Development >> ASP and Database >> linking two tables
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts