Posts: 192 Joined: 2/2/2002 From: Dubai United Arab Emirates Status: offline
correction in sql code. - 12/11/2006 6:06:42
Could anyone help me in correcting my sql code,
I got 2 different tables for
1) registration 2)renewals
same client will be having all the three cases filed.I want to count total no. of cases for a client . So I wrote the sql as below which gives me an eror
SUM(SELECT COUNT(id) AS Expr1 FROM renewal where client_name='::client_name::'+ SELECT COUNT(id) AS Expr1 FROM registration where client_name='::client_name::')