Re: Count of lines in dynamic request
iap wrote: it is passed... At first, not Cost, and COUNT?Secondly, did not understand sense of words about different columns - I like told to you;That NULL and so do not get to result of your...
View ArticleCount of lines in dynamic request
There is a label in which it is necessary to count an amount of lines on a condition.Normal request it would be so:SELECT COUNT (Ni) From Result Where Ni between @min and @maxToo most it is necessary...
View ArticleRe: Count of lines in dynamic request
SET @s = ' SET @cn = (SELECT Count (' + COL_NAME (OBJECT_ID (' Result '), @sch) + ') FROM Result WHERE Id_s = ' + @id_s + ' and ' + COL_NAME (OBJECT_ID (' Result '), @sch) +>>> '...
View ArticleRe: Count of lines in dynamic request
I do not understand, why it is not necessary COUNT (*)?Or really it is not necessary to consider a line with value NULL in a column?
View ArticleRe: Count of lines in dynamic request
iap wrote: I do not understand, why it is not necessary COUNT (*)?Or really it is not necessary to consider a line with value NULL in a column? Value NULL is all the same eliminated by a condition in...
View ArticleRe: Count of lines in dynamic request
Sergey Alekseevich wrote: SET @s = ' SET @cn = (SELECT Count (' + COL_NAME (OBJECT_ID (' Result '), @sch) + ') FROM Result WHERE Id_s = ' + @id_s + ' and ' + COL_NAME (OBJECT_ID (' Result '), @sch)...
View ArticleRe: Count of lines in dynamic request
hmwrld wrote: it is passed... , cunningly, I try to compare column name with Then other question: How to pull out value of a column, knowing his name in such format "COL_NAME (OBJECT_ID (' Result '),...
View ArticleRe: Count of lines in dynamic request
hmwrld wrote: I Say lies, I do not use Cost (*), to some columns, and in some value NULL is possibleFor example, Cost (Ni) = 3, Cost (Cu) = 0 and (Ni, Cu columns in one table) At first, not Cost, and...
View Article