How Run Above Querry In Sql Server 2000
SELECT TO_CHAR (&start_date, 'DD MON')
|| ' TO '
|| TO_CHAR (&end_date, 'DD MON YY') AS BILL_DATE,
COUNT (DISTINCT a.bill_number || a.bill_date || a.till_number) nob,
SUM (a.net_amt) bill_value
FROM bill_detail a, bill_header b
WHERE b.bill_date BETWEEN &START_DATE AND &END_DATE
...
User Profile
Collapse
-
-
sql command error
Respected Sir,
I run once sql querry in sql 2000 but show error. pls give me soluction now.
SELECT a.BILL_DATE,
COUNT (DISTINCT a.bill_number + ' ' + a.bill_date + ' ' + a.till_number) nob,
SUM (a.net_amt) bill_value
FROM bill_detail b, bill_header a
WHERE b.bill_date='10-feb-08'
AND a.bill_date = b.bill_date
AND a.bill_number = b.bill_number...
No activity results to display
Show More
Leave a comment: