FreeLance Gossip
Quick Search
The Admin Zone Directory of Forums
Blogs, Reviews & links
My Little Site Buddy
Computerized Spirit
Video Search Engine
Printer Leasing
Performance Management Software
Web programmers
Tech FanaTic Blog
Amanda's Layouts
Wallpaper Site
Sexy Desktop
Cheap Web Hosting

Threads: 1,671
Posts: 6,682
Members: 1,069
Welcome to our newest member, Jenny Thomas
Outsource Projects
Freelance Programmer
You Tube
YouTube videos
Pinay Freelancer
Live Football Video
Business Application Development
Hire A Designer
Mobile Phone Deals
Submit URLs Now
Guitar and Music Forum




 
 

Webmaster Forum - Web Design and Development - SEO - Freelance > FreelanceGossip Website Development > Programming / Scripting / Coding Forum

IMPORTANT ANNOUNCEMENTS
COMING SOON: EARN POINTS 4 FREE STUFF, CHECK IT OUT HERE!

Our Main Sponsor - FreelancerStore.com
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-15-2008, 12:33 PM   #1 (permalink)
itHighway
Newbie
 
itHighway's Avatar
 
Join Date: Jan 2008
Location: Gujranwala
Posts: 10
Rep Power: 5 itHighway is on a distinguished road
Send a message via MSN to itHighway
Default Sql Query

I need help with a sql query. To make it easier to understand I

created an image. Please click on link below to see the image.

http://realestate.ithighway.co.uk/upload/sqlQuery.gif


Thanks!
itHighway is offline   Reply With Quote
Old 06-10-2008, 07:00 PM   #2 (permalink)
web_doctor
Super Moderator
 
Join Date: Jun 2008
Location: PH
Posts: 92
Rep Power: 11 web_doctor is on a distinguished road
Default

I saw your posts and your image, please try to write in your sql
SQL: "SELECT LS.* FROM tblListings LS, tblListingFloorPlans LFP WHERE LS.IngLIstingId=LFP.IngListingId AND LFP.txtBed='2' GROUP BYLFP.txtTitle"

If you want to sort your result in order basing on the LFP.txtTitle , just add ASC - for ASCending or DESC - for DESCending at the end of the query before the last diuble qoute, like this one.

SQL: "SELECT LS.* FROM tblListings LS, tblListingFloorPlans LFP WHERE LS.IngLIstingId=LFP.IngListingId AND LFP.txtBed='2' GROUP BY LFP.txtTitle ASC" ---> this will sort the result based on LFP.txtTitle in ASCending order

and another example is

SQL: "SELECT LS.* FROM tblListings LS, tblListingFloorPlans LFP WHERE LS.IngLIstingId=LFP.IngListingId AND LFP.txtBed='2' GROUP BY LFP.txtTitle DESC" ---> this will sort the result based on LFP.txtTitle in DESCending order

I hope this helps. Let me know. Thanks

Last edited by web_doctor; 06-10-2008 at 07:04 PM.
web_doctor is offline   Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
© FreelanceGossip.com
A vBSkinworks Design