Skip to content
Advertisement

convert date yyyy-mm-dd to mmm-yy SQL Server 2016

I want to convert date yyyy-mm-dd (stored as a date format) to mmm-yy format. There are no exact matches in the prior questions on the site. I have tried substrings and convert function, was …

SQL Query Exercise Oracle 18c

I’m trying to resolve this exercises: Visualize the actors who have had more than twice the compensation of the media of their compatriots. FILM (CODFILM,TITLE,YEAR,GENRE) –Year is NUMBER, it contains only the Year ACTOR (CODACTOR,NAME,SURNAME,NAZIONALITY) CAST (CODFILM,CODACTOR, COMPENSATION). I’ve tried this solution, but it doesn’t works Select, for each actor, the year in which he / she played the first

Problems finding out Active users due to Hire/Resign Date

In my Employee table in SQL Server I have two datetime columns: HiringDate and ResignDate. I want to create a new column Status (Active, Inactive) in a view. If HiringDate is NULL or greater than today = Inactive If HiringDate is Active but ResignDate is earlier than today then Status also have to be Inactive. Do I have to make

Advertisement