PANTHEON™ Help

 Toc
 PANTHEON Ajutor - Bun venit
[Collapse]PANTHEON
 [Collapse]Ghiduri pentru PANTHEON
  [Expand]Ghid pentru PANTHEON
  [Expand]Ghid pentru PANTHEON Retail
  [Expand]Ghid pentru PANTHEON Vet
  [Expand]Ghid pentru PANTHEON Fermă
 [Collapse]Manuale de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Retail
  [Expand]Manual de utilizare pentru PANTHEON Vet
  [Expand]Manual de utilizare pentru PANTHEON Farming
[Collapse]PANTHEON Web
 [Collapse]Ghiduri pentru PANTHEON Web
  [Expand]Ghid pentru PANTHEON Web Light
  [Expand]Ghid pentru Terminalul Web PANTHEON
  [Expand]Ghid pentru PANTHEON Web Legal
  [Expand]Arhivă produse vechi
 [Collapse]Manuale de utilizare pentru PANTHEON Web
  [Expand]Începerea PANTHEON Web
  [Expand]Manual de utilizare pentru PANTHEON Web Light
  [Expand]Manual de utilizare pentru terminalul web PANTHEON
  [Expand]Manual de utilizare pentru PANTHEON Web Legal
  [Expand]Arhivă produse vechi
[Collapse]PANTHEON Granule
 [Collapse]Ghiduri pentru granule PANTHEON
  [Expand]Granul Personal
  [Expand]Comenzi de Călătorie Granule
  [Expand]Documente și Sarcini Granul
  [Expand]Tabloul de bord Granule
  [Expand]Comenzi B2B Granule
  [Expand]Granul de Serviciu pe Teren
  [Expand]Granul Inventar Active Fixe
  [Expand]Inventar de Magazin Granule
 [Collapse]Manuale de utilizare pentru granulele PANTHEON
  [Expand]Începerea
  [Expand]Granul Personal
  [Expand]Comenzi de Călătorie Granule
  [Expand]Documente și Sarcini Granul
  [Expand]Comenzi B2B Granule
  [Expand]Tabloul de bord Granule
  [Expand]Serviciul de teren Granule
  [Expand]Granul Inventar Active Fixe
  [Expand]Inventar de Magazin Granule
  [Expand]Arhivă
[Expand]Site utilizator

Load Time: 328,0668 ms
"
  6613 | 1 | |
Label


Formula sa upotrebom SQL izraza

Formula sa upotrebom SQL izraza

010379.gif010380.gif010381.gif010411.gif010382.gif010383.gif

Formulu možemo da zapišemo i upotrebom SQL izraza pri čemu je potrebno uvažavati sledeća pravila:

  • SQL izraz uvek počinje i završava se znakom ~S~
  • u jednoj formuli možemo imati proizvoljan broj SQL izraza
  • unutara SQL izraza nije dozvoljena upotreba logičkih uslova ([.. : ..]..)
  • unutara SQL izraza nije dozvoljena upotreba temp tabela sa jednim #
  • unutara SQL izraza je dozvoljena upotreba promenljivih (# ... #)
  • u logičkim uslovima je dozvoljena upotreba SQL izraza

U SQL izrazu, mogu da se upotrebe sve matematičke funkcije, koje poznaje SQL server koji koristite. Na primer:

  • SIN ( float_expression )
    Returns the trigonometric sine of the given angle (in radians) in an approximate numeric (float) expression,

  • COS ( float_expression )
    A mathematic function that returns the trigonometric cosine of the given angle (in radians) in the given expression,

  • TAN ( float_expression )
    Returns the tangent of the input expression,

  • SQRT ( float_expression )
    Returns the square root of the given expression,

  • kao i sve ostale matematičke funkcije koje možete pronaći na sl. linku: http://msdn.microsoft.com/en-us/library/ms174077.aspx

Formulu sa uslovom, kao što je na primer.: [#KOLICINA#>20:#Cena#*0,9] [#KOLICINA#>10:#Cena#*0,95] #Cena#

možemo da zapišemo i na sledeći način, upotrebom SQL izraza:

~S~
case
  when #KOLICINA# > 20 then #Cena# * 0.9
  when #KOLICINA# > 10 then #Cena# * 0,95
  else #Cena#
end
~S~

ili pak drugačije


~S~ dbo.MojaFunkcija(#KOLICINA#, #Cena#) ~S~

U ovom slučaju potrebnama vam je vaša funkcija sa nazivom dbo.MojaFunkcija().

 

Sastavljač formula ne testira pravilnosti unutar SQL izraza.

 

 


  

     


Rate this topic
Was this topic usefull?
Comments
Comment will also bo visible in forum!