Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with sql statement
Message
 
 
To
20/02/2002 12:42:56
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00622672
Message ID:
00622674
Views:
20
>I am having a problem when using select statement with an "AS" clause.
>
>For example:
>
>select cdow(datein) as dayin, minutes/60 as totHours from timecard
>
>
select padr(cdow(datein),12) as DayIn, 00.00+Minutes/60 as TotHours from TimeCard
>"Datein" field is of type date (not datetime) and minutes is a numeric field (width is 10) Is there a way to specify field widths, etc., of dayin and totHours? I am getting results like "Wednes" and "8.0000". It seems that the field widths are obtained from the original table values. (I have century set on I am not sure why dayin is getting truncated) I would like results like "Wednesday" and "8.00". (though it would be nice for it to display 8, but I want up to 2 decimal places)
>
>Thanks,
>Chris
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform