Ask a Question related to Coldfusion Database Access, Design and Development.
-
ranger #1
null indication in number field
would like to indicate when field was not writen to OR if a null value was
posted in a number field. is there any way to write 'null' or other marker to a
field set up to record a single number. can't use 0 as throws off 'SELECT
avg()' when doing query as n/a entries must be ignored in stats. used in
multiple choice where 'not applicable' is '' visitor can return to page so
needs to post to display selections already made. client does not want a
default choice preselected. tnx in advance.
ranger Guest
-
NULL To DateTime field through sp
How can I insert null value into a datetime field through stored procedure? i use cybase,cf 4 -
hidden field 'is null or not an object'
I've created a WYSIWYG HTML editor. I have an ImageButton whose onClick event is supposed to set the value of a hidden form field called txtHTML to... -
Set a datetime field to Null
Hi I created a record set at client side and added a coulmn as date time DBRS = CreateObject("ADODB.RecordSet") DBRS.Fields.Append... -
Problem with null field. Plz help!
Hi all. Could someone please help me diagnose what might be wrong with this code snippet (taken from within a program) that cropped up after I... -
Returns a NULL field ?
Hi. I'm stuck! I am querying two tables in a DB using the following string SQLQuery = "SELECT GuestBook.*, GuestPic.PicName FROM GuestBook... -
kim il sung #2
Re: null indication in number field
for ms sql server
for statistics
avg works only with numeric values, by default null values are ingnored.
select avg(salary) from foobar where salary IS NOT NULL is same than select
avg(salary) from foobar
posting preselections
you could change null values to some number like 666666 and trap them in your
app.
with text fields you can replace null values with following code:
select ISNULL(salary_text,not applicable') as salary
you can change datatype with CAST and CONVERT functions.
check book on line or google to learn more.
kim
kim il sung Guest
-
ranger #3
Re: null indication in number field
is there any way in SELECT to ignore 0 in AVG tag as in AVG(s1) AS a1 s1 has
to be numeric (can't do in WHERE statement as using a loop in SELECT statement
SELECT <cfloop index=catz from=1 to=96 step=1> AVG(s#catz#) AS a#catz#,
</cfloop> )
ranger Guest



Reply With Quote

