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

Hosting from $3.99 per month!

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

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

 

Distinct Order By Help Needed

 
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 >> Distinct Order By Help Needed
Page: [1]
 
truwebs

 

Posts: 80
Joined: 7/10/2006
Status: offline

 
Distinct Order By Help Needed - 5/2/2007 0:31:48   
In an application I have a datalist with a gridview inside a datalist template. The gridview is bound to the datalist select.

When I run the following some records duplicate. But without the [Catalog].catID and Order By in the Select it works fine. What do I need to change to get this to work right with the Order By DESC?

DATALIST SELECT

SELECT DISTINCT Images.imgName, [Catalog].subID, [Catalog].imgID, [Catalog].catID FROM (([Catalog] INNER JOIN CatalogImage ON [Catalog].catID = CatalogImage.catID) INNER JOIN Images ON CatalogImage.imgID = Images.imgID) WHERE ([Catalog].subID = ?) Order By [Catalog].catID DESC


GRIDVIEW SELECT

SELECT [Catalog].catID, [Catalog].catNum, [Catalog].catPrice, [Catalog].catDescription, Vendors.venName, Images.imgName FROM (([Catalog] INNER JOIN Images ON [Catalog].imgID = Images.imgID) INNER JOIN Vendors ON [Catalog].venID = Vendors.venID) WHERE ([Catalog].imgID = ?)

TRU
Page:   [1]
OutFront Discoveries

All Forums >> Web Development >> ASP and Database >> Distinct Order By Help Needed
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