query on a totally ordered set

taraa

Senior Member
Persian
What's the difference between 'query and 'question', please?

A query on a totally ordered set S that returns a pointer to the element of S with the smallest key.
Introduction to algorithms, cormen
 
  • taraa

    Senior Member
    Persian
    A query in data processing is a data request.
    Run a query that returns all customers with an order in the current week.
    Aha, many thanks. :)
    But a question maybe something that changes the data, please, but query can't?
     

    USMeg

    Senior Member
    English/USA
    In SQL, the following is a query:
    SELECT * FROM Customers WHERE MAX (order_date) > '20210724'
    Weirdly, a query that updates is still a query :) (It's an 'update query'.)
    I don't ever "question" data.
     

    taraa

    Senior Member
    Persian
    In SQL, the following is a query:
    SELECT * FROM Customers WHERE MAX (order_date) > '20210724'
    Weirdly, a query that updates is still a query :) (It's an 'update query'.)
    I don't ever "question" data.
    Many thanks. :)
     
    Top