Posted By: jerryiii (Vsude dobre, v CR nejhur) on 'CZdatabases'
Title:     Re: Dlouhe transakce
Date:      Thu Jun 14 09:57:53 2001

> Od boku (a mozna Oracle-specificke):
> 
> select
>   count(r.request_id) all, count(crit.crit_id) with_crit
> from
>   request r,
>   requestcriteria crit
> where
>   r.key=crit.key(+);
> 
> v all budes mit vsechno, ve with_crit to, co ma zaznam v druhe tabulce.
> Pocet tech, co nemaji, dostanes odectenim.
> request_id a crit_id jsou nejake not NULLove sloupce v tabulkach, nejlip
> umele 
> klice (umele klice do vsech tabulek (!)) :) 

Presne to sem chtel :) tedka je problem ze to asi je oracel specific, protoze 
dokumentace k SQL Serveru o with_crit nerika vubec nic ... beeee ... No nic, 
zustanu u toho jak sem to puvodne psal ... funguje to tak to musi stacit ... 
Osobne mi to prijde jako docela dobrej napad mit moznost vypinat kriteria pro 
jednotlivy agregacni funkce ... 

>   Ray

          Jerry III

Enough said ...
http://jerryiii.home.sprynet.com/mica/index.htm

Search the boards