You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- 2. use FM to strip padding space, FM is a data type formatting function in PostgreSQL that removes leading zeros and trailing spaces that would otherwise be added to make a pattern's output fixed-width
4
+
-- 3. Day gives you the day in the week
5
+
-- 4. DD gives you the day in the month
6
+
-- 5. YYYY gives you the year
7
+
select to_char(day, 'FMDay, FMMonth FMDD, YYYY') as day from Days;
| 1978 |[Employees Whose Manager Left the Company](https://leetcode.com/problems/employees-whose-manager-left-the-company/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1978.sql)|| Easy |
11
+
| 1853 |[Convert Date Format](https://leetcode.com/problems/convert-date-format/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1853.sql)|| Easy |
11
12
| 1821 |[Find Customers With Positive Revenue this Year](https://leetcode.com/problems/find-customers-with-positive-revenue-this-year/)|[Solution](https://github.com/fishercoder1534/Leetcode/blob/master/database/_1821.sql)|| Easy |
0 commit comments