Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2006
    Posts
    1,443

    how to combine 2 SQL queries

    i am not sure to write this question under this section
    but it can be related with SQLite plugin

    well my question is:

    how can i combine two SQL queries like below


    "SELECT * FROM customers ORDER BY ID DESC"
    "SELECT * FROM customers ORDER BY JOINDATE ASC"

    simly : i want tu use JOINDATE ASC and ID DESC in one query string

    maybe it was simple but i could not figure it out,because my brain is not working for now

    thanks for your help

  2. #2
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    You can sort on more than one column like this.

    Code:
    SELECT * FROM customers ORDER BY ID DESC, JOINDATE ASC
    Dermot

    I am so out of here

  3. #3
    Join Date
    May 2006
    Posts
    1,443
    You saved my life
    thank you very much

Similar Threads

  1. Running SQL Scripts
    By Rahvyn in forum Setup Factory 7.0
    Replies: 10
    Last Post: 06-09-2009, 11:37 AM
  2. Microsoft SQL Server 2005 Express Edition
    By linuxbox in forum Setup Factory 7.0
    Replies: 0
    Last Post: 12-25-2005, 07:55 PM
  3. REQ: sql queries and running databases
    By slafta in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 11-18-2005, 02:38 AM
  4. SQL - Easy does it
    By Intrigued in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 08-22-2004, 09:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts