1
I know nothing about database, I’m using one in Visual Studio (the standard SQL called "Service-based database"), I’ve integrated it into the form and made up the query fields.
But there is a field of one of the tables that would date, that date is like a 'loan', and it expires (one week from now, as an example).
Then comes the doubt (I researched and found nothing about it).
The question is:
How do I order a table of this database by the data
, showing the field records of the data
older to younger?
Another doubt (this is more advanced), but the first one is enough for me (I am humble kk), it’s like, this field of data
, as I said, it’s like loan, so I wanted to know, taking example the record:
"Nome: José", "Data do empréstimo: 23/06/2015"
In this table, as I stimulated the due date is one week, the maturity would be today, so how to take this database record and store it in a variable (to be displayed in another form)?
The other field:
"Nome: João", "Data do empréstimo: 24/06/2015"
The expiration would be tomorrow, so tomorrow he would send this record to the other form automatically, as if it were an expiration notice.
How is the structure of your table, this deadline is what type? And how are you doing to call the queries via c#?
– Maicon Carraro
The structure asks for name, contact, borrowed item.. The term is type
datetime
. The query I did according to this video -> https://www.youtube.com/watch?v=Qt0z2ySimV8 (because I really know nothing about this, practicing is what you learn)– Leonardo
then you have the loan date column and deadline? in the term you save date type loan + 1 week?
– Maicon Carraro
Yes, exactly
– Leonardo