Thanks AP, but I got this wrong result
product_id date_c input last_date_s total_sales
001 01.09.2008 100 11.09.2008 100
001 01.09.2008 50 11.09.2008 100
Result must be
product_id date_c input last_date_s...
I have stored procedure wich select(sum) data from table1 and
insert modifyed data in table2. It is important to prevent other users of the aplication to change data(insert,update,delete) into table1, while query is in progres. How can I lock records in table1 (sql server 2000)?
Thank you
Here is SP code:
CREATE PROCEDURE [dbo].del_invoice
@minvoice_no CHAR(12)
AS
begin
SET NOCOUNT OFF
BEGIN TRANSACTION
delete from mytable
WHERE
invoice_no = @minvoice_no
IF @@error <> 0
BEGIN
ROLLBACK TRANSACTION
RETURN
END
COMMIT TRANSACTION
SELECT...
I am novice in sql2000. I call stored procedure with SQLEXEC function to delete invoice in sql2000 database. How can I see in VFP form number of deleted records ?
I am novice in sql. In my test database I have table with this structure and data:
myfield1
401
580
633
785
801
Can I get with query this output result, without usig identity column:
myfield1 recordno
401 1
580 2
633 3
785 4
801 5
Borislav ,
It do not work
I got this results for one cust_id (1):
debit credit total work_recno
2007;1;1;101;10.01.2007;100.00; 0.00; 100.00; 1
2007;1,1;101;10.01.2007; 0.00; 70.00; -70.00; 2
2007;1,1;101;10.01.2007; 0.00; 10.00; -10.00; 3
Corect results should...
There are two forms for input data:
- In first form user input values for work_year, work_tran and date_ip.
- In second form user input values for cus_id, inv_n, debit, credit.
Can be more records then one in the same work_year, work_tran and date_ip. For each recodrd I add value in the field...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.