Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL doesn't format the way I want
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00484563
Message ID:
00484717
Vues:
17
>I think, that you can use:
>
>sele eval(right(cyear,2)), eval(cperiod)...
>
This works, but only if !empty(cYear). Otherwise I get an error.

Thanks for the idea, it's nice and simple.
>
>
>>>>>>>>>>>>your mesage below
>Hi everybody,
>
>I have a table with cYear, Period and other fields. cYear is 4 character representation of the year, Period is 2 chars field. 01-12 for months.
>
>The result of Query should have Year (N 2) field - 2 last digits and Period (N 2)
>I tried select val(right(cYear,2)) as Year, val(Period) as Period ..., but it formats the result to be N 2.2 Is it possible to change without messing around with set decimals?
>
>It's URGENT!
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform