Forum

Welcome Guest! To enable all features please try to register or login.
HD_prijavio
#1 Posted: : 09 November 2009 17:49:00(UTC)
HD_prijavio

Rank: Datalab

You have been a member since:: 14/08/2009(UTC)
Objave: 1

Was thanked: 2 time(s) in 2 post(s)
Klijent zeli da pri trazenju artikla (ctrl+F) da mu se rezultat sortira od veceg ka manjem u odnosu na stanje robe na lageru. Takodje mi treba izraz koji ce pri izradi deklaracija izvaditi broj dokumenta iz kojeg se ispisuje deklaracija.
HD_odgovorio
#2 Posted: : 09 November 2009 17:49:00(UTC)
HD_odgovorio

Rank: Datalab

You have been a member since:: 14/08/2009(UTC)
Objave: 0

Was thanked: 1 time(s) in 1 post(s)
1. Kreiranje view-a

/* kreiranje view-a*/

create view _SetItemStock2 as
select si.acIdent, si.acActive, si.acSetOfItem, si.acName, s.anStock,
s.acWarehouse, si.anRTPrice, si.anWSPrice,
si.anWSPrice2, si.anPrStPrice, si.acClassif, si.acClassif2
FROM tHE_SetItem si left join tHE_Stock s
on si.acIdent=s.acIdent

2. Postavka proizvoljnog traženja

/* Upit za Administratorsk konzola|Postavke|Parametri programa|Artikli*/

SELECT acIdent, acActive, acName, anStock, acWarehouse from _SetItemStock2 order by anStock desc

Rezultat: slika2

Jedini problem koji ima ovaj način je što ovaj view vadi zalihu za sva skladišta i tako je reda. Znaći ukoliko radiš sa maloprodajnog skladišta i Veleprodajnog skladišta dole u tabeli češ imati dva zapisa sa zalihama. Pri vrhu je uvijek ona koje ima više zbig desc stavke.
Rss Feed  Atom Feed
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Orange-Grey Theme Created by Ingo Herbote (WatchersNET.de)
Powered by YAF 1.9.6.1 Under DNN | YAF © 2003-2026, Yet Another Forum.NET
This page was generated in 0,078 seconds.