Ubuntu sound not working after sleep/suspend
5,023
I just installed pavucontrol
and things started working. Checkout this qa
Related videos on Youtube
Author by
Chris Pin
Updated on September 18, 2022Comments
-
Chris Pin over 1 year
I would like to ask how do i check if the difference between two dates.
BillingDate which is a date type with an entry 'DD-MON-YYYY'
and the other date is the current date.
sys_date - BillingDate = daysFromBilled
alot of the examples i find they actually stated the second date to calculate the difference but what i am looking for is the difference between the current date so i can add it into a schedule or job.
i am using oracle btw.
Another point to add, i will continue to search, but if your could also recommend, how should i implement such a function:
- Calculate date difference from all BillingDate entries
- To trigger an alter table if the difference is more than 30 days to put Status as Late.
- If Status is more than 60 days the Service attribute will be altered and changed to Cut
here is my rough table layout
Cust Billing -------- ---------- CustID(PK) BillingID(PK) LateStatus LateStatus Service BillingDate CustID
Thanks alot.
Update
REPLACE view DateDifference as select trunc(sysdate)- trunc(BillingDate) from Billing;
seems legit.
-
a_horse_with_no_name over 11 yearsAn "alter table" is used to change the definition of a table (e.g. add or remove columns). You want to
UPDATE
the table, not "alter" it. -
hba over 8 yearsI'm running into the same problem on mint17
-
Jan Henke over 7 yearsCan you post the output of
aplay -l
from when it happens here? Sounds like the audio device is not properly reactivated after sleep. -
Hastur over 6 yearsMany question and answer about this topic on our sister-sites. You can start a search e.g. from "no sound after suspend/resume" or from "Ubuntu 16.04 changes sound device after suspend, how to fix?" on askubuntu...
-
Chris Pin over 11 yearsthanks for your reply, i understand the remarks about the update and alter table . i apologise if i ask stupid questions and statements, i am getting familiar with sql. do you think you could show me an example of how you would write the syntax for the difference in days question.
-
a_horse_with_no_name over 11 years@ChrisPin: I showed you how to calculate the difference in days.
-
a_horse_with_no_name over 11 years@ChrisPin: Don't post code in comments, edit your question. And please read the Oracle manual regarding variable assignments in PL/SQL: docs.oracle.com/cd/E11882_01/appdev.112/e25519/… See my edit for a short example.
-
Chris Pin over 11 yearsthanks a_horse_with_no_name I really appreciate your help. thanks alot for the link too.
-
Adriano Martins almost 6 yearsYou should avoid adding new answers if the question already has an accepted answer and you do not add any new piece of information (which where not present on the previous answers).