Hi. I am a beginner SQL user (not formally trained; OJT only) and need some assistance with a simple update statement. I would like to write an update statement that allows me to list ID's. The statement shown below is how I am currently writing it. Ideally, the statement would allow me to write it like "where plantunitid in (49-57)....
Hello,
I was working for a telecom company some years ago and I had to generate a formula which calculates duration of a call according to the following algorithm:
t1 is the first period
t2 is the recurring period
RCT is the actual call time (in seconds)
CD is the effective call duration (for billing purposes)
if RCT is less than ...
I have a database with event information, including date (in MMDDYYYY format). is it possible to write an SQL Server statement to only get rows that fall within a certain time frame?
something like this pseudo-statement:
SELECT * FROM events WHERE [current_date minus date <= 31] ORDER BY date ASC
where date is the date in the SQL Ser...