Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 08 Jan 2004 @ 14:26:38 GMT


     
  <Prev Next>  
<<First
<Prev
Next> Last>>  


Subj:   The ORDER BY clause
 
From:   Narayan Murthy

Given you had 4 columns in a table say "T1" and given a query

SELECT * FROM T1 order by 1,2,3,4;


Can the above query contain the following values in the ORDER BY clause

a. null

b. <= 0

c. > 4

d. repeating column specification i.e. ORDER BY 1,2,1


Case a. & d. give no error currently, but do they make sense, if so what.

Case b. & c. give error (this is correct - isn't it)


Narayan



     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023