Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rotelmak
  • Order by date
  1. rotelmak

    sales between inputs

    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...
  2. rotelmak

    sales between inputs

    I have table with this data(sql 2000): product_id date_c input sales 001 01.09.2008 100 001 01.09.2008 30 001 10.09.2008 40 001 10.09.2008 10 001 11.09.2008 50 001 11.09.2008...
  3. rotelmak

    Query help

    My test table have this columns with this data cus_id inv_n date_ip debit credit 1 101 10.01.07 100.00 1 101 25.01.07 70.00 1 101 26.01.07 10.00 2 102 11.01.07 200.00 2 102 26.01.07 150.00 2 103...
  4. rotelmak

    Slow update

    Table finarh have this fields: customer_id char(9) datanal datetime nalog char(6) dokument char(12) diznos decimal(12,2) piznos decimal(12,2) datadok datetime valudok datetime oe char(4) re char(2) Also table...
  5. rotelmak

    lock table

    Thank you SQLDenis, Lamprey13
  6. rotelmak

    lock table

    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
  7. rotelmak

    Return number of deleted records from SQL 2000

    Borislav, invoice_no field is character type. Now your code works fine. Thank's
  8. rotelmak

    Return number of deleted records from SQL 2000

    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...
  9. rotelmak

    Return number of deleted records from SQL 2000

    Borislav, crsDeletedRecs return zero, not number of deleted records
  10. rotelmak

    Return number of deleted records from SQL 2000

    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 ?
  11. rotelmak

    query help

    Works fine. Thank you Alex
  12. rotelmak

    query help

    I have table with this records product_id quantity color 1 10 red 1 20 black 1 30 green 1 40 red 1 50 black 2 60 black 2...
  13. rotelmak

    query like auto increase

    Thank you SQLDenis. It works fine
  14. rotelmak

    query like auto increase

    Borislav I use Sql 2000
  15. rotelmak

    query like auto increase

    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
  16. rotelmak

    Query to catch data dynamic

    GREAT Thank you Borislav one star more
  17. rotelmak

    Query to catch data dynamic

    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...
  18. rotelmak

    Query to catch data dynamic

    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...
  19. rotelmak

    Query to catch data dynamic

    Table structure is: work_year - char(4) work_tran - char(6) work_recno - integer (not identity) cus_id - char(9) inv_n - char(9) date_ip - datetime debit - decimal(13,2) credit - decimal(13,2) table is indexed on work_year,work_tran,work_recno (uniqe index).
  20. rotelmak

    Query to catch data dynamic

    No, there is not any primary key

Part and Inventory Search

Back
Top