sql - SELECT DISTINC LOWER : SUBSTR -


i'm having difficulties resolve request:

select distinct lower (customername),    substr(customer.postalcode, 1, 3) +" "+ substr(customer.postalcode,4,6)as'postal'  customer order customer.cuname 

i'm having message : expected lexical element not found

this 1 works perfectly.

select distinct customer.name, customer.postalcode as'postal'  customer order customer.cuname 

is can help?

select distinct                  lower (customername),                  substr(customer.postalcode, 1, 3) + ' ' +                    substr(customer.postalcode, 4, 6) 'postal'        customer  order        customer.cuname 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -