Showing posts with the label SQL Date function

Featured Post

Python Program: JSON to CSV Conversion

JavaScript object notion is also called JSON file, it's data you can write to a CSV file. Here's a sample python logic for your ready reference.  You can write a simple python program by importing the JSON, and CSV packages. This is your first step. It is helpful to use all the JSON methods in your python logic. That means the required package is JSON. So far, so good. In the next step, I'll show you how to write a Python program. You'll also find each term explained. What is JSON File JSON is key value pair file. The popular use of JSON file is to transmit data between heterogeneous applications. Python supports JSON file. What is CSV File The CSV is comma separated file. It is popularly used to send and receive data. How to Write JSON file data to a CSV file Here the JSON data that has written to CSV file. It's simple method and you can use for CSV file conversion use. import csv, json json_string = '[{"value1": 1, "value2": 2,"value3

SQL: 8 Frequently Used DATE Functions

SQL DATE function for all Developers. DATE Function is powerful in SQL. In SQL projects, people use this Function variety of ways. All projects depends in DATE, and without it there is no way of existing of project.  The Quick tour helps you use this function effectively.  You can learn Oracle SQL step by step for all Developers. Below is the list of SQL DATE functions SYSDATE - It returns current local DATE and Time CURRENT_DATE - Return local DATE and TIME and adjusted to current session Time Zone. ROUND (DATE) - Rounds to nearest DAY TRUNC (DATE) - Truncates Time MONTHS_BETWEEN(date1,date2) - Returns number of months between date1 and date2' LAST_DAY(DATE)- Returns last of the month ADD_MONTHS(date,integer_months) - Adds specified number of months to specified date. NEXT_DAY(date, day_of_week) - Returns to next day of the week that comes after the specified DATE Also Read   The Best SQL Book for all Developers.