-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: sjvr01
Message 3 in Discussion


 
Hope one of the column is unique or primary 
.........
 
 
    SELECT  ( SELECT 
COUNT( au_id ) FROM authors a 

                
WHERE   a.au_id >=  b.au_id  ) AS sl_no  , b.au_id 
,b.au_fname FROM  authors b 
 
ORDER BY  sl_no
 
hope this will do...........

  -----Original Message-----
From: BDOTNET 
  [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 25, 2004 8:38 
  PM
To: BDOTNET
Subject: SQL


  
    
      
      New Message on BDOTNET
    
      

  SQL


    
      
      
        Reply

        
          
            
            
               
              Recommend 
              Message 1 in 
                Discussion 
      
        
          
            
            
              From: mrp 
            
              

                
                
i want to 
                display the srno in my output query,how to do it
eg;if i say 
                "select name,code from emp"

i want some thing like 
                this
no name code
1 abc a01
2 xyz a02

how to do 
                like this,i wish to do this in sql query only ,no 
                proc
View other groups in this 
    category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to